feat: add oolatoocs to masto1

This commit is contained in:
VC
2024-07-05 11:53:45 +02:00
parent 9455f23ad0
commit 07a4f21cc9
6 changed files with 107 additions and 52 deletions

View File

@@ -9,6 +9,9 @@
- name: WP for NintendojoFR
ansible.builtin.include_tasks: wp_dojo.yml
when: inventory_hostname == 'web2.dmz.mateu.be'
- name: Oolatoocs for NintendojoFR
ansible.builtin.include_tasks: oolatoocs.yml
when: inventory_hostname in groups['mastodonservers']
# Scootaloo
- name: Tootctl (docker) for mastodon

View File

@@ -0,0 +1,32 @@
---
- name: Create the directory for oolatoocs
ansible.builtin.file:
name: "{{ webapps_oolatoocs_db_dir }}"
state: directory
owner: www-data
group: www-data
mode: 0755
- name: Download oolatoocs exec
ansible.builtin.get_url:
url: "{{ webapps_oolatoocs_url }}.{{ webapps_oolatoocs_version }}"
dest: "{{ webapps_oolatoocs_local_bin_path }}"
owner: root
group: root
mode: 0755
- name: Put conf file
ansible.builtin.template:
src: oolatoocs.toml.j2
dest: /usr/local/etc/oolatoocs.toml
owner: www-data
group: www-data
mode: 0640
- name: Cron for oolatoocs
ansible.builtin.cron:
name: Oolatoocs
user: www-data
minute: "*/5"
job: "{{ webapps_oolatoocs_local_bin_path }}"