25 lines
525 B
YAML
25 lines
525 B
YAML
---
|
|
|
|
- name: Remove BaC previous version
|
|
ansible.builtin.file:
|
|
state: absent
|
|
dest: "{{ bac_app_home }}"
|
|
|
|
- name: Create app home
|
|
ansible.builtin.file:
|
|
state: directory
|
|
path: "{{ bac_app_home }}"
|
|
owner: root
|
|
group: www-data
|
|
mode: "a-rwx,u+rwX,g+rX"
|
|
|
|
- name: Install BaC application
|
|
ansible.builtin.unarchive:
|
|
remote_src: true
|
|
src: "{{ bac_url }}"
|
|
dest: "{{ bac_app_home }}"
|
|
owner: root
|
|
group: www-data
|
|
mode: "a-rwx,u+rwX,g+rX"
|
|
extra_opts: ['--strip-components=1']
|