1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

Need to create root directory before user

This commit is contained in:
Aidan Fitzgerald 2019-03-04 21:23:54 -05:00
parent 7169072dd9
commit a089778d0b

View file

@ -1,5 +1,12 @@
# Prepare to install Gitea: create user and directory structure
- name: Ensure Gitea root directory exists
file:
name: "{{ gitea_root_directory }}"
state: directory
tags:
- pre-install
- name: Ensure group gitea exists
group:
name: gitea
@ -16,6 +23,14 @@
tags:
- pre-install
- name: Ensure Gitea root directory is owned by user gitea:gitea
file:
name: "{{ gitea_root_directory }}"
owner: gitea
group: gitea
tags:
- pre-install
- name: Create Gitea directory structure
file:
path: "{{ gitea_root_directory }}/{{ item }}"