From 0d16ab44e51657abf66b1ae4e787b5d3baad0ddf Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Sat, 13 Dec 2025 18:22:36 +0100 Subject: [PATCH] feat(role): Create ~/.bashrc if it doesn't exist --- tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/main.yml b/tasks/main.yml index 64f3d17..b60642c 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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: |