delete backup folder always
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-03-09 17:12:30 +01:00
parent 989f79c35e
commit 5fc1d55a1c
2 changed files with 12 additions and 12 deletions

View File

@ -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"

View File

@ -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