summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed AbdelHalim <[email protected]>2026-01-17 18:11:28 +0100
committerAhmed AbdelHalim <[email protected]>2026-01-19 10:31:03 +0100
commitc27da710ceda51d55db93442ce296d53d6fcde00 (patch)
tree98a1c60c429238a70e3640442533cf1efc1aa5a7
parenta9e87992cb4cec66d76ddf3ea85469a6aa3650a6 (diff)
Update bash role to ensure all rc files created
-rw-r--r--roles/bash/tasks/main.yml4
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"