Some mistakes
This commit is contained in:
parent
9a4c4b7510
commit
f2f2b5440a
|
@ -9,8 +9,8 @@ munin_hosts:
|
|||
munin_admin_user: "{{ vault_munin_admin_user }}"
|
||||
munin_admin_password: "{{ vault_munin_admin_password }}"
|
||||
|
||||
private_key_munin_user_host: "{{ vault_private_key_munin_async_user_host }}"
|
||||
public_key_munin__user_host: "{{ vault_public_key_munin_async_user_host }}"
|
||||
private_key_munin_user_host: "{{ vault_private_key_munin_user_host }}"
|
||||
public_key_munin_user_host: "{{ vault_public_key_munin_user_host }}"
|
||||
|
||||
munin_alerts: []
|
||||
|
||||
|
|
|
@ -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 a new issue