From 3e23d1e62ea8f31a42eaa1fafafe45b8ff23001a Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 24 Nov 2023 14:32:26 +0100 Subject: [PATCH] set aliases for root (#611) Reviewed-on: https://git.mgrote.net/mg/homeserver/pulls/611 Co-authored-by: Michael Grote Co-committed-by: Michael Grote --- roles/mgrote_dotfiles/tasks/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/roles/mgrote_dotfiles/tasks/main.yml b/roles/mgrote_dotfiles/tasks/main.yml index df3e99fc..5efe7397 100644 --- a/roles/mgrote_dotfiles/tasks/main.yml +++ b/roles/mgrote_dotfiles/tasks/main.yml @@ -1,5 +1,5 @@ --- -- name: install acl package +- name: Ensure package acl is installed become: true ansible.builtin.package: name: acl @@ -55,3 +55,9 @@ path: /home/{{ dotfiles_owner }}/.bashrc line: "source {{ dotfiles_repo_path }}/.bash_extra" state: present + +- name: root - add .bash_extra to .bashrc + ansible.builtin.lineinfile: + path: /root/.bashrc + line: "source {{ dotfiles_repo_path }}/.bash_extra" + state: present