From 0e99212daf7409980f3c2e0869fdfc894f48229a Mon Sep 17 00:00:00 2001 From: Nemo Date: Fri, 10 Jul 2020 22:44:15 +0200 Subject: [PATCH] Change path for Munin async SSH keys and create directory --- roles/munin_async_server/tasks/user.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/roles/munin_async_server/tasks/user.yml b/roles/munin_async_server/tasks/user.yml index 7c2f4c7..3820c2c 100644 --- a/roles/munin_async_server/tasks/user.yml +++ b/roles/munin_async_server/tasks/user.yml @@ -1,14 +1,19 @@ --- +- name: Create SSH directory for munin-async user + file: + path: /var/spool/munin-async/.ssh + state: directory + mode: '0755' - name: Deploy private key to access other Munin async node copy: - dest: /home/munin-async/.ssh/id_rsa + dest: /var/spool/munin-async/.ssh/id_rsa owner: munin-async group: munin-async mode: '0600' content: "{{ private_key_munin_async_user_host }}" - name: Deploy public key to access other Munin async node copy: - dest: /home/munin-async/.ssh/id_rsa.pub + dest: /var/spool/munin-async/.ssh/id_rsa.pub owner: munin-async group: munin-async mode: '0644'