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 }}"
|
delegate_to: "{{ inventory_hostname }}"
|
||||||
when: __zigbee_datadir.stat.exists
|
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
|
- name: Delete existing node_modules folder
|
||||||
file:
|
file:
|
||||||
path: "{{ zigbee2mqtt_base_dir }}/node_modules"
|
path: "{{ zigbee2mqtt_base_dir }}/node_modules"
|
||||||
|
@ -1,9 +1,15 @@
|
|||||||
---
|
---
|
||||||
- name: Ensure zigbee2mqtt service is up and running
|
- block:
|
||||||
systemd:
|
- name: Ensure zigbee2mqtt service is up and running
|
||||||
state: started
|
systemd:
|
||||||
daemon_reload: yes
|
state: started
|
||||||
enabled: yes
|
daemon_reload: yes
|
||||||
name: zigbee2mqtt
|
enabled: yes
|
||||||
|
name: zigbee2mqtt
|
||||||
|
|
||||||
|
- name: Delete backup data directory
|
||||||
|
file:
|
||||||
|
path: "/tmp/zigbee_data"
|
||||||
|
state: absent
|
||||||
become: True
|
become: True
|
||||||
become_user: root
|
become_user: root
|
||||||
|
Loading…
Reference in New Issue
Block a user