upt playbook

This commit is contained in:
jaydee 2023-08-29 14:02:11 +02:00
parent e211222104
commit b01ce04ad4

View File

@ -98,10 +98,14 @@
X-API-Key: "ptr_DfS2M6Fj2P3fVvYpkhE0KJh2UGCzY47ePaFaLqadsjg="
timeout: 60
register: result
ignore_errors: yes
when: inventory_hostname in groups['nas']
- name: Copy archive
ansible.builtin.shell: 'scp /share/Data/dockers-{{ ansible_date_time.date }}.tar.gz admin@192.168.77.246:/share/'
ignore_errors: yes
when: inventory_hostname in groups['nas']
ansible.builtin.shell: 'scp /share/Data/dockers-{{ ansible_date_time.date }}.tar.gz admin@192.168.77.246:/tmp/'
when: inventory_hostname in groups['nas']
- name: Unpack archive
ansible.builtin.shell: 'tar -xzvf /tmp/{{ ansible_date_time.date }}.tar.gz -C /'
become: yes
when: inventory_hostname in groups['nas']