mirror of
https://github.com/roles-ansible/ansible_role_etebase.git
synced 2024-08-16 10:19:52 +02:00
improve directory permissions
This commit is contained in:
parent
29588c79a0
commit
e8570dcd3b
2 changed files with 25 additions and 4 deletions
|
@ -9,8 +9,19 @@
|
||||||
owner: "{{ etebase__user }}"
|
owner: "{{ etebase__user }}"
|
||||||
register: _etebase_config
|
register: _etebase_config
|
||||||
|
|
||||||
|
|
||||||
- name: "Create static data directorys"
|
- name: "Create static data directorys"
|
||||||
|
become: true
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: directory
|
||||||
|
group: "{{ etebase__group }}"
|
||||||
|
owner: "{{ etebase__user }}"
|
||||||
|
recurse: true
|
||||||
|
mode: 'u=rwX,g=rX,o=rX'
|
||||||
|
with_items:
|
||||||
|
- "{{ etebase__global_static_root }}"
|
||||||
|
|
||||||
|
- name: "Create mediac data directorys"
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
|
@ -20,6 +31,5 @@
|
||||||
recurse: true
|
recurse: true
|
||||||
mode: 'u=rwX,g=rX,o='
|
mode: 'u=rwX,g=rX,o='
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ etebase__global_static_root }}"
|
|
||||||
- "{{ etebase__global_media_root }}"
|
- "{{ etebase__global_media_root }}"
|
||||||
- "{{ etebase__secrets_dir }}"
|
- "{{ etebase__secrets_dir }}"
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
cmd: "{{ etebase__venv }}/bin/python3 ./manage.py collectstatic"
|
cmd: "{{ etebase__venv }}/bin/python3 ./manage.py collectstatic"
|
||||||
creates: "{{ etebase__global_static_root }}/admin"
|
creates: "{{ etebase__global_static_root }}/admin"
|
||||||
|
|
||||||
- name: "Fix File Permissions for static data directorys"
|
- name: "Fix File Permissions for secret directory"
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
|
@ -23,5 +23,16 @@
|
||||||
recurse: true
|
recurse: true
|
||||||
mode: 'u=rwX,g=rX,o='
|
mode: 'u=rwX,g=rX,o='
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ etebase__global_static_root }}"
|
|
||||||
- "{{ etebase__secrets_dir }}"
|
- "{{ etebase__secrets_dir }}"
|
||||||
|
|
||||||
|
- name: "Fix File Permissions for static data directory"
|
||||||
|
become: true
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: directory
|
||||||
|
group: "{{ etebase__group }}"
|
||||||
|
owner: "{{ etebase__user }}"
|
||||||
|
recurse: true
|
||||||
|
mode: 'u=rwX,g=rX,o=rX'
|
||||||
|
with_items:
|
||||||
|
- "{{ etebase__global_static_root }}"
|
||||||
|
|
Loading…
Reference in a new issue