Create application volume mounts manually
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Luke Murphy 2020-04-15 16:54:01 +02:00
parent 42e4220b5f
commit 2c7bd98f32
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -13,6 +13,18 @@
ssh_key_file: .ssh/id_rsa
state: present
- name: Create gitea application directories
become: true
file:
path: "{{ item }}"
state: directory
owner: git
group: git
with_items:
- /app
- /app/gitea
- /var/lib/gitea
- name: Get uid/guid of the git user
become: true
getent:
@ -31,14 +43,3 @@
- name: Store gitea git user uid/guid in config.env dictionary
set_fact:
config: "{{ config | update_env(git_user_info) }}"
- name: Create extra application directories
become: true
file:
path: "{{ item }}"
state: directory
owner: git
group: git
with_items:
- /app
- /app/gitea