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
ff955f6f16
commit
a2993fad4e
@ -35,7 +35,6 @@
|
|||||||
- name: Restart firewall
|
- name: Restart firewall
|
||||||
command: service restart_firewall
|
command: service restart_firewall
|
||||||
when: inventory_hostname in groups['router']
|
when: inventory_hostname in groups['router']
|
||||||
warn: false
|
|
||||||
|
|
||||||
- name: Stop mailu main
|
- name: Stop mailu main
|
||||||
uri:
|
uri:
|
||||||
@ -55,7 +54,6 @@
|
|||||||
#ansible.builtin.shell: 'tar -czf /share/Data/dockers.tar.gz /share/docker_data/{mailu2,webhub,ha} --exclude="/ha/backups/*" --exclude="home-assistant.log*"'
|
#ansible.builtin.shell: 'tar -czf /share/Data/dockers.tar.gz /share/docker_data/{mailu2,webhub,ha} --exclude="/ha/backups/*" --exclude="home-assistant.log*"'
|
||||||
ansible.builtin.shell: 'tar -czf /share/Data/dockers-{{ ansible_date_time.date }}.tar.gz /share/docker_data/mailu2 --exclude="/ha/backups/*" --exclude="home-assistant.log*"'
|
ansible.builtin.shell: 'tar -czf /share/Data/dockers-{{ ansible_date_time.date }}.tar.gz /share/docker_data/mailu2 --exclude="/ha/backups/*" --exclude="home-assistant.log*"'
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
warn: false
|
|
||||||
when: inventory_hostname in groups['nas']
|
when: inventory_hostname in groups['nas']
|
||||||
|
|
||||||
- name: Start mailu main
|
- name: Start mailu main
|
||||||
@ -88,7 +86,6 @@
|
|||||||
- name: Restart firewall
|
- name: Restart firewall
|
||||||
command: service restart_firewall
|
command: service restart_firewall
|
||||||
when: inventory_hostname in groups['router']
|
when: inventory_hostname in groups['router']
|
||||||
warn: false
|
|
||||||
|
|
||||||
- name: Stop mailu rhasp
|
- name: Stop mailu rhasp
|
||||||
uri:
|
uri:
|
||||||
@ -108,7 +105,7 @@
|
|||||||
when: inventory_hostname in groups['nas']
|
when: inventory_hostname in groups['nas']
|
||||||
|
|
||||||
- name: Unpack archive
|
- name: Unpack archive
|
||||||
ansible.builtin.shell: 'tar -xzf /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']
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user