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
e211222104
commit
b01ce04ad4
@ -98,10 +98,14 @@
|
|||||||
X-API-Key: "ptr_DfS2M6Fj2P3fVvYpkhE0KJh2UGCzY47ePaFaLqadsjg="
|
X-API-Key: "ptr_DfS2M6Fj2P3fVvYpkhE0KJh2UGCzY47ePaFaLqadsjg="
|
||||||
timeout: 60
|
timeout: 60
|
||||||
register: result
|
register: result
|
||||||
ignore_errors: yes
|
|
||||||
when: inventory_hostname in groups['nas']
|
when: inventory_hostname in groups['nas']
|
||||||
|
|
||||||
- name: Copy archive
|
- name: Copy archive
|
||||||
ansible.builtin.shell: 'scp /share/Data/dockers-{{ ansible_date_time.date }}.tar.gz admin@192.168.77.246:/share/'
|
ansible.builtin.shell: 'scp /share/Data/dockers-{{ ansible_date_time.date }}.tar.gz admin@192.168.77.246:/tmp/'
|
||||||
ignore_errors: yes
|
|
||||||
when: inventory_hostname in groups['nas']
|
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']
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user