This commit is contained in:
ladislav.dusa 2023-12-07 08:59:21 +01:00
parent 9cc98053c1
commit 78bb785e0d
2 changed files with 7 additions and 2 deletions

View File

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

View File

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