Some mistakes

This commit is contained in:
Nemo 2020-07-11 00:17:08 +02:00
parent 9a4c4b7510
commit f2f2b5440a
2 changed files with 7 additions and 7 deletions

View file

@ -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: []

View file

@ -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' }}"