2020-07-10 22:32:32 +02:00
|
|
|
---
|
2020-07-10 22:44:15 +02:00
|
|
|
- name: Create SSH directory for munin-async user
|
|
|
|
file:
|
|
|
|
path: /var/spool/munin-async/.ssh
|
|
|
|
state: directory
|
|
|
|
mode: '0755'
|
2020-07-10 22:32:32 +02:00
|
|
|
- name: Deploy private key to access other Munin async node
|
|
|
|
copy:
|
2020-07-10 22:44:15 +02:00
|
|
|
dest: /var/spool/munin-async/.ssh/id_rsa
|
2020-07-10 22:32:32 +02:00
|
|
|
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:
|
2020-07-10 22:44:15 +02:00
|
|
|
dest: /var/spool/munin-async/.ssh/id_rsa.pub
|
2020-07-10 22:32:32 +02:00
|
|
|
owner: munin-async
|
|
|
|
group: munin-async
|
|
|
|
mode: '0644'
|
|
|
|
content: "{{ public_key_munin_async_user_host + '\n' }}"
|