1
0
Fork 0

Fixed authorized_keys configuration drift, and change repo directory from hostname to fqdn

This commit is contained in:
Julien Dessaux 2022-07-05 21:15:26 +02:00
parent 42790f21cd
commit f084bd976c
Signed by: adyxax
GPG key ID: F92E51B86E07177E
8 changed files with 36 additions and 26 deletions

View file

@ -29,7 +29,7 @@ class ActionModule(ActionBase):
}
for hostname, hostvars in task_vars['hostvars'].items() :
if 'borg_server' in hostvars.keys() and hostvars['borg_server'] == task_vars['ansible_host']:
server['clients'].append(hostname)
server['clients'].append({'hostname': hostname, 'pubkey': hostvars['ansible_local']['borg']['pubkey']})
### Borg client variables ############################################
client = {