Refactor systemd unit files for mounting and opening LUKS devices
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
- name: Set required facts
|
||||
ansible.builtin.set_fact:
|
||||
gitea_home: "/var/lib/gitea"
|
||||
gitea_config_dir: "/a13labs/gitea"
|
||||
gitea_mysql_home: "/var/lib/mysql.gitea"
|
||||
gitea_user_id: 1000
|
||||
gitea_group_id: 1000
|
||||
@@ -57,6 +58,18 @@
|
||||
- tasks
|
||||
- tasks::folders
|
||||
|
||||
- name: Create required gitea config folder
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
path: "{{ gitea_config_dir }}"
|
||||
mode: "0750"
|
||||
owner: "{{ gitea_user_id }}"
|
||||
group: "{{ gitea_group_id }}"
|
||||
tags:
|
||||
- tasks
|
||||
- tasks::folders
|
||||
|
||||
- name: Create required mysql data folder
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
|
||||
Reference in New Issue
Block a user