condensed directory creation; fixed permissions
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 23s
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 23s
This commit is contained in:
parent
c28214c517
commit
50e6c10349
@ -16,24 +16,17 @@
|
|||||||
state: directory
|
state: directory
|
||||||
owner: root
|
owner: root
|
||||||
mode: "755"
|
mode: "755"
|
||||||
recurse: yes
|
|
||||||
with_items: ["/opt/gitea", "/var/lib/gitea"]
|
with_items: ["/opt/gitea", "/var/lib/gitea"]
|
||||||
|
|
||||||
- name: Ensure data directory exists
|
- name: Ensure data and config directories exist
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "/var/lib/gitea/data"
|
path: "/var/lib/gitea/{{ item }}"
|
||||||
state: directory
|
|
||||||
owner: "{{ git_user.uid }}"
|
|
||||||
group: "{{ git_user.group }}"
|
|
||||||
mode: "700"
|
|
||||||
|
|
||||||
- name: Ensure config directory exists
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "/var/lib/gitea/config"
|
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ git_user.uid }}"
|
owner: "{{ git_user.uid }}"
|
||||||
group: "{{ git_user.group }}"
|
group: "{{ git_user.group }}"
|
||||||
mode: "700"
|
mode: "700"
|
||||||
|
recurse: true
|
||||||
|
with_items: ["data", "config"]
|
||||||
|
|
||||||
- name: Ensure docker daemon is started
|
- name: Ensure docker daemon is started
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
|
Loading…
Reference in New Issue
Block a user