feat: adapt scootaloo config to multi env

This commit is contained in:
VC
2024-07-05 11:53:22 +02:00
parent 23b0d6c704
commit e9ec01a4ff
3 changed files with 12 additions and 8 deletions

View File

@@ -14,6 +14,9 @@
when: inventory_hostname == 'web2.dmz.mateu.be'
- name: Scootaloo for Mastodon
include_tasks: scootaloo.yml
when: inventory_hostname in groups['rorservers']
- name: Scootaloo config for m.nintendojo.fr
include_tasks: scootaloo_config.yml
when: inventory_hostname == 'ror1.dmz.mateu.be'
- name: tootctl for mastodon
include_tasks: tootctl.yml

View File

@@ -8,14 +8,6 @@
group: www-data
mode: 0750
- name: put configuration file
template:
src: scootaloo.toml.j2
dest: /usr/local/etc/scootaloo.toml
owner: root
group: www-data
mode: 0640
- name: create scootaloo config dir
file:
path: "{{ scootaloo_db_path }}"

View File

@@ -0,0 +1,9 @@
---
- name: put configuration file
template:
src: scootaloo.toml.j2
dest: /usr/local/etc/scootaloo.toml
owner: root
group: www-data
mode: 0640