upt playbook

This commit is contained in:
jaydee 2023-08-29 14:54:06 +02:00
parent c9a8910a88
commit a54f6cb12a

View File

@ -104,8 +104,14 @@
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/dockers-{{ ansible_date_time.date }}.tar.gz -C /'
#- name: Unpack archive
# ansible.builtin.shell: 'tar -xzvf /tmp/dockers-{{ ansible_date_time.date }}.tar.gz -C /'
# become: true
# when: inventory_hostname in groups['raspberry']
- name: Extract
become: true
when: inventory_hostname in groups['raspberry']
ansible.builtin.unarchive:
src: /tmp/dockers-{{ ansible_date_time.date }}.tar.gz
dest: /