ansible/roles/services/tasks/pre_deploy/writefreely.yml

22 lines
516 B
YAML
Raw Normal View History

2023-12-07 19:39:04 +00:00
# vim: ft=yaml.ansible
2024-03-01 20:30:18 +00:00
# code: language=ansible
2023-12-07 19:39:04 +00:00
---
- name: Create subfolder for MariaDB data
file:
name: "{{ services.writefreely.volume_folder }}/db"
owner: "999"
group: "999"
state: directory
- name: Create subfolder for encryption keys
file:
name: "{{ services.writefreely.volume_folder }}/keys"
owner: "2"
group: "2"
2023-12-07 19:39:04 +00:00
state: directory
- name: Upload config.ini
template:
src: "writefreely/config.ini.j2"
dest: "{{ services.writefreely.volume_folder }}/config.ini"