mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-23 20:39:26 +00:00
upt playbook
This commit is contained in:
parent
c9a8910a88
commit
a54f6cb12a
@ -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: /
|
||||
|
Loading…
x
Reference in New Issue
Block a user