1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_etebase.git synced 2024-08-16 10:19:52 +02:00
ansible_role_etebase/tasks/download.yml

28 lines
747 B
YAML
Raw Normal View History

---
- name: Download etebase git Repository
become: true
ansible.builtin.git:
repo: "{{ etebase__repo }}"
dest: "{{ etebase__user_home }}/etebase_{{ etebase_version_target }}"
single_branch: true
depth: 4
force: false
track_submodules: true
umask: "0027"
update: false
version: "{{ etebase_version_target }}"
2022-11-12 16:25:43 +01:00
register: _etebase_download
notify:
- "Systemctl restart etebase.service"
- "Systemctl restart webserver"
- name: Fix venv File owner/group
become: true
ansible.builtin.file:
path: "{{ etebase__user_home }}/etebase_{{ etebase_version_target }}"
state: directory
mode: 'u=rwX,g=rX,o='
recurse: true
group: "{{ etebase__group }}"
owner: "{{ etebase__user }}"