parent
9a4c4b7510
commit
f2f2b5440a
@ -1,22 +1,22 @@
|
||||
---
|
||||
- name: Create SSH directory for Munin user
|
||||
file:
|
||||
path: "{{ /var/lib/munin }}"/.ssh
|
||||
path: "{{ munin_home_directory + '/.ssh' }}"
|
||||
state: directory
|
||||
owner: "{{ munin_user }}"
|
||||
group: "{{ munin_user }}"
|
||||
mode: '0700'
|
||||
- name: Deploy private key to access other Munin node
|
||||
copy:
|
||||
dest: "{{ /var/lib/munin }}"/.ssh/id_rsa
|
||||
dest: "{{ munin_home_directory + '/.ssh/id_rsa' }}"
|
||||
owner: "{{ munin_user }}"
|
||||
group: "{{ munin_user }}"
|
||||
mode: '0600'
|
||||
content: "{{ private_key_munin_async_user_host }}"
|
||||
content: "{{ private_key_munin_user_host }}"
|
||||
- name: Deploy public key to access other Munin node
|
||||
copy:
|
||||
dest: "{{ /var/lib/munin }}"/.ssh/id_rsa.pub
|
||||
dest: "{{ munin_home_directory + '/.ssh/id_rsa.pub' }}"
|
||||
owner: "{{ munin_user }}"
|
||||
group: "{{ munin_user }}"
|
||||
mode: '0644'
|
||||
content: "{{ public_key_munin_async_user_host + '\n' }}"
|
||||
content: "{{ public_key_munin_user_host + '\n' }}"
|
||||
|
Loading…
Reference in new issue