This commit is contained in:
ladislav.dusa 2023-12-09 20:53:51 +01:00
parent 78bb785e0d
commit acb2550e97
2 changed files with 6 additions and 6 deletions

View File

@ -63,8 +63,8 @@ datacenter:
192.168.77.1 192.168.77.1
vars: vars:
ansible_python_interpreter: /opt/bin/python ansible_python_interpreter: /opt/bin/python
ansible_user: admin ansible_ssh_user: admin
ansible_pass: l4c1!j4yd33?Du5lo ansible_ssh_pass: l4c1!j4yd33?Du5lo
raspberry: raspberry:
hosts: hosts:
192.168.77.246 192.168.77.246
@ -87,6 +87,6 @@ datacenter:
hosts: hosts:
192.168.77.106: 192.168.77.106:
vars: vars:
ansible_user: admin ansible_ssh_user: admin
ansible_pass: l4c1!j4yd33?Du5lo ansible_ssh_pass: l4c1!j4yd33?Du5lo
ansible_python_interpreter: /share/ZFS530_DATA/.qpkg/QPython39/bin/python3 ansible_python_interpreter: /share/ZFS530_DATA/.qpkg/QPython39/bin/python3

View File

@ -3,7 +3,7 @@
become: true become: true
when: inventory_hostname in groups['raspberry'] or inventory_hostname in groups['raspberrypi5'] when: inventory_hostname in groups['raspberry'] or inventory_hostname in groups['raspberrypi5']
- name: Syncing all - name: Syncing all
#ansible.builtin.shell: 'rsync -avh --delete /share/docker_data/{mailu2,ha,gitlab,semaphore,webhub,nginx,heimdall} admin@192.168.77.238:/share/docker_data/ --exclude="home-assistant.log*" --exclude="gitlab/logs/*"' ansible.builtin.shell: 'rsync -avh --delete /share/docker_data/{mailu2,ha,gitlab,semaphore,webhub,nginx,heimdall} admin@192.168.77.238:/share/docker_data/ --exclude="home-assistant.log*" --exclude="gitlab/logs/*"'
ansible.builtin.shell: 'rsync -avh --delete /share/docker_data/{mailu2,webhub,nginx,heimdall} admin@192.168.77.238:/share/docker_data/ --exclude="home-assistant.log*" --exclude="gitlab/logs/*"' #ansible.builtin.shell: 'rsync -avh --delete /share/docker_data/{mailu2,webhub,nginx,heimdall} admin@192.168.77.238:/share/docker_data/ --exclude="home-assistant.log*" --exclude="gitlab/logs/*"'
#ansible.builtin.shell: 'ls -la' #ansible.builtin.shell: 'ls -la'
when: inventory_hostname in groups['nas'] when: inventory_hostname in groups['nas']