From 526a192018ea34c5941a706f9e3e20d1ed55cfb4 Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Thu, 27 Aug 2020 18:47:49 +0000 Subject: [PATCH] ansible-host: Make sure that ssh-agent is running for root --- roles/ansible-host/tasks/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/ansible-host/tasks/main.yml b/roles/ansible-host/tasks/main.yml index 5770b72..72f7a3e 100644 --- a/roles/ansible-host/tasks/main.yml +++ b/roles/ansible-host/tasks/main.yml @@ -35,3 +35,11 @@ dest: /srv/ansible repo: https://git.foo.sh/ansible.git update: false + +- name: add custom .bashrc for root + copy: + dest: /root/.bashrc + src: root-bashrc.sh + owner: root + group: "{{ ansible_wheel }}" + mode: 0600