2023-07-21 13:34:12 +02:00
|
|
|
- name: Ensure dolibar folder exist
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "/opt/dolibarr"
|
|
|
|
owner: "www-data"
|
|
|
|
group: "www-data"
|
|
|
|
mode: "755"
|
|
|
|
state: directory
|
|
|
|
|
2023-07-21 13:21:16 +02:00
|
|
|
- name: Download and unzip dolibarr
|
|
|
|
ansible.builtin.unarchive:
|
|
|
|
remote_src: true
|
|
|
|
src: "{{ dolibarr_dowload_url }}"
|
2023-07-21 13:27:38 +02:00
|
|
|
dest: "/opt/dolibarr"
|
2023-07-21 13:21:16 +02:00
|
|
|
owner: "www-data"
|
|
|
|
group: "www-data"
|
2023-07-21 13:37:56 +02:00
|
|
|
extra_opts:
|
|
|
|
- --strip-components=1
|