feat: adapt scootaloo config to multi env
This commit is contained in:
@@ -14,6 +14,9 @@
|
|||||||
when: inventory_hostname == 'web2.dmz.mateu.be'
|
when: inventory_hostname == 'web2.dmz.mateu.be'
|
||||||
- name: Scootaloo for Mastodon
|
- name: Scootaloo for Mastodon
|
||||||
include_tasks: scootaloo.yml
|
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'
|
when: inventory_hostname == 'ror1.dmz.mateu.be'
|
||||||
- name: tootctl for mastodon
|
- name: tootctl for mastodon
|
||||||
include_tasks: tootctl.yml
|
include_tasks: tootctl.yml
|
||||||
|
@@ -8,14 +8,6 @@
|
|||||||
group: www-data
|
group: www-data
|
||||||
mode: 0750
|
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
|
- name: create scootaloo config dir
|
||||||
file:
|
file:
|
||||||
path: "{{ scootaloo_db_path }}"
|
path: "{{ scootaloo_db_path }}"
|
||||||
|
9
roles/webapps/tasks/scootaloo_config.yml
Normal file
9
roles/webapps/tasks/scootaloo_config.yml
Normal 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
|
Reference in New Issue
Block a user