diff options
| author | Ahmed AbdelHalim <[email protected]> | 2026-01-17 18:11:28 +0100 |
|---|---|---|
| committer | Ahmed AbdelHalim <[email protected]> | 2026-01-19 10:31:03 +0100 |
| commit | c27da710ceda51d55db93442ce296d53d6fcde00 (patch) | |
| tree | 98a1c60c429238a70e3640442533cf1efc1aa5a7 /roles | |
| parent | a9e87992cb4cec66d76ddf3ea85469a6aa3650a6 (diff) | |
Update bash role to ensure all rc files created
Diffstat (limited to 'roles')
| -rw-r--r-- | roles/bash/tasks/main.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/roles/bash/tasks/main.yml b/roles/bash/tasks/main.yml index 12ff6982..475581ee 100644 --- a/roles/bash/tasks/main.yml +++ b/roles/bash/tasks/main.yml @@ -5,7 +5,8 @@ name: "bash" state: "present" -- name: "Ensure .bashrc/.profile exists" +- name: "Ensure .bash(rc|_profile) and .profile exists" + # This is used by different setup scripts adding their init in one of these ansible.builtin.file: path: "{{ item }}" state: "touch" @@ -14,4 +15,5 @@ access_time: "preserve" loop: - "{{ ansible_env.HOME }}/.bashrc" + - "{{ ansible_env.HOME }}/.bash_profile" - "{{ ansible_env.HOME }}/.profile" |
