mirror of
https://github.com/roles-ansible/ansible_role_etesync_dav.git
synced 2024-08-16 10:09:54 +02:00
Create directory if needed
Make sure the directory for the executable is present
This commit is contained in:
parent
0b9d7c40e5
commit
f6afade90d
1 changed files with 12 additions and 2 deletions
|
@ -1,10 +1,20 @@
|
||||||
---
|
---
|
||||||
|
- name: "Make sure etesync-dav directory exist"
|
||||||
|
become: true
|
||||||
|
ansible.builtin.file:
|
||||||
|
state: directory
|
||||||
|
path: "{{ etesync_dav__executable }}"
|
||||||
|
mode: '0755'
|
||||||
|
owner: 'root'
|
||||||
|
group: 'root'
|
||||||
|
recurse: true
|
||||||
|
|
||||||
- name: "Download etesync-dav version v{{ etesync_dav__version_target }}"
|
- name: "Download etesync-dav version v{{ etesync_dav__version_target }}"
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
url: "{{ etesync_dav__dl_url }}"
|
url: "{{ etesync_dav__dl_url }}"
|
||||||
dest: "{{ etesync_dav__executable }}"
|
dest: "{{ etesync_dav__executable }}"
|
||||||
owner: root
|
owner: 'root'
|
||||||
group: root
|
group: 'root'
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
notify: 'Run systemctl restart etesync-dav.service'
|
notify: 'Run systemctl restart etesync-dav.service'
|
||||||
|
|
Loading…
Reference in a new issue