delete backup folder always
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
989f79c35e
commit
5fc1d55a1c
@ -41,12 +41,6 @@
|
||||
delegate_to: "{{ inventory_hostname }}"
|
||||
when: __zigbee_datadir.stat.exists
|
||||
|
||||
- name: Delete backup data directory
|
||||
file:
|
||||
path: "/tmp/zigbee_data"
|
||||
state: absent
|
||||
when: __zigbee2mqtt_install.changed
|
||||
|
||||
- name: Delete existing node_modules folder
|
||||
file:
|
||||
path: "{{ zigbee2mqtt_base_dir }}/node_modules"
|
||||
|
@ -1,9 +1,15 @@
|
||||
---
|
||||
- block:
|
||||
- name: Ensure zigbee2mqtt service is up and running
|
||||
systemd:
|
||||
state: started
|
||||
daemon_reload: yes
|
||||
enabled: yes
|
||||
name: zigbee2mqtt
|
||||
|
||||
- name: Delete backup data directory
|
||||
file:
|
||||
path: "/tmp/zigbee_data"
|
||||
state: absent
|
||||
become: True
|
||||
become_user: root
|
||||
|
Loading…
Reference in New Issue
Block a user