delete backup folder always
continuous-integration/drone/push Build is passing Details

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

View File

@ -1,9 +1,15 @@
---
- name: Ensure zigbee2mqtt service is up and running
systemd:
state: started
daemon_reload: yes
enabled: yes
name: zigbee2mqtt
- 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