fix host to sync and path
This commit is contained in:
parent
d93d12211e
commit
4c5105d999
1 changed files with 2 additions and 2 deletions
|
@ -77,5 +77,5 @@
|
||||||
loop: "{{ lookup('file', '/tmp/pubkeys') | split('\n') }}"
|
loop: "{{ lookup('file', '/tmp/pubkeys') | split('\n') }}"
|
||||||
|
|
||||||
- name: Synchronize certificates
|
- name: Synchronize certificates
|
||||||
shell: "rsync -ar -e 'ssh -p 7227 -o StrictHostKeyChecking=no' {{ ansible_play_hosts[0] }}:/etc/letsencrypt /etc/letsencrypt"
|
shell: "rsync -ar -e 'ssh -p 7227 -o StrictHostKeyChecking=no' {{ mail_server_fqdn_ip }}:/etc/letsencrypt /etc/"
|
||||||
when: inventory_hostname != ansible_play_hosts[0]
|
when: mail_server_fqdn_ip != node_external_ip
|
Loading…
Reference in a new issue