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
2023-10-29 14:43:07 +01:00

33 lines
962 B
YAML

---
- name: Set git configuration for safe.directory # noqa: H1901
community.general.git_config:
scope: global
name: safe.directory
value: "{{ etebase__user_home }}/etebase_{{ etebase_version_target }}"
- 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 }}"
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 }}"