mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-24 04:49: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/'
|
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']
|
when: inventory_hostname in groups['nas']
|
||||||
|
|
||||||
- name: Unpack archive
|
#- name: Unpack archive
|
||||||
ansible.builtin.shell: 'tar -xzvf /tmp/dockers-{{ ansible_date_time.date }}.tar.gz -C /'
|
# ansible.builtin.shell: 'tar -xzvf /tmp/dockers-{{ ansible_date_time.date }}.tar.gz -C /'
|
||||||
become: true
|
# become: true
|
||||||
when: inventory_hostname in groups['raspberry']
|
# when: inventory_hostname in groups['raspberry']
|
||||||
|
|
||||||
|
- name: Extract
|
||||||
|
become: true
|
||||||
|
ansible.builtin.unarchive:
|
||||||
|
src: /tmp/dockers-{{ ansible_date_time.date }}.tar.gz
|
||||||
|
dest: /
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user