feat(role): Create ~/.bashrc if it doesn't exist

This commit is contained in:
2025-12-13 18:22:36 +01:00
parent 310b1d1eab
commit 0d16ab44e5

View File

@@ -64,6 +64,7 @@
label: 'For local account ''{{ local_account }}'' source ''.bashrc'' file'
ansible.builtin.blockinfile:
path: '{% if local_account != ''root'' %}/home{% endif %}/{{ local_account }}/.bashrc'
create: true
append_newline: true
prepend_newline: true
block: |