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 | b5a5128cffe90f06709cb1011d6afc87c59fc8e9 (patch) | |
| tree | 98a1c60c429238a70e3640442533cf1efc1aa5a7 /roles | |
| parent | d2dd84c71283a77b7fe691850dc314b3096b3f63 (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" |
