diff --git a/hosts.yml b/hosts.yml index ae30af7..32aea02 100644 --- a/hosts.yml +++ b/hosts.yml @@ -64,7 +64,7 @@ datacenter: vars: ansible_python_interpreter: /opt/bin/python ansible_user: admin - ansible_pass: l4c1j4yd33Du5lo + ansible_pass: l4c1!j4yd33?Du5lo raspberry: hosts: 192.168.77.246 @@ -88,5 +88,5 @@ datacenter: 192.168.77.106: vars: ansible_user: admin - ansible_pass: l4c1j4yd33Du5lo + ansible_pass: l4c1!j4yd33?Du5lo ansible_python_interpreter: /share/ZFS530_DATA/.qpkg/QPython39/bin/python3 \ No newline at end of file diff --git a/playbooks/mailu_switch_to_second2.yaml b/playbooks/mailu_switch_to_second2.yaml index 8f7ad3b..e8bc53a 100644 --- a/playbooks/mailu_switch_to_second2.yaml +++ b/playbooks/mailu_switch_to_second2.yaml @@ -68,6 +68,11 @@ - name: Restart firewall command: service restart_firewall when: inventory_hostname in groups['router'] + - name: Stop containers + command: "docker stop {{ containers | join(' ') }}" + become: true + ignore_errors: true + when: inventory_hostname in groups['nas']