~nka/ansible-role-grocy

5316dae8556fc96a8c9907cf69652d9f97aec006 — Nicolas KAROLAK 2 months ago de2fb20
create app dir after update removal
2 files changed, 5 insertions(+), 6 deletions(-)

M defaults/main.yml
M tasks/main.yml
M defaults/main.yml => defaults/main.yml +0 -1
@@ 1,6 1,5 @@
---


grocy_apache_mods:
  - 'rewrite'
grocy_apache_remoteip: |

M tasks/main.yml => tasks/main.yml +5 -5
@@ 9,11 9,6 @@

# APPLICATION

- name: 'create application directory'
  file:
    path: '{{ grocy_app_path }}'
    state: 'directory'

- name: 'download archive'
  register: 'grocy_download'
  get_url:


@@ 32,6 27,11 @@
    path: '{{ grocy_app_path }}'
    state: absent

- name: 'create application directory'
  file:
    path: '{{ grocy_app_path }}'
    state: 'directory'

- name: 'extract archive'
  when: 'grocy_download is changed'
  unarchive: