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
e211222104
commit
b01ce04ad4
@ -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']
|
||||
|
Loading…
x
Reference in New Issue
Block a user