fix host to sync and path

This commit is contained in:
Antonio J. Delgado 2022-10-14 09:11:16 +03:00
parent d93d12211e
commit 4c5105d999

View file

@ -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