🔥: remove webapps role
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
fastcgi_cache_path
|
||||
/dev/shm/nginx
|
||||
levels=1:2
|
||||
keys_zone=wpdojo:25m
|
||||
inactive=1h
|
||||
max_size=250m;
|
||||
|
@@ -1,6 +0,0 @@
|
||||
---
|
||||
|
||||
- name: Restart nginx
|
||||
ansible.builtin.service:
|
||||
name: nginx
|
||||
state: restarted
|
@@ -1,11 +0,0 @@
|
||||
---
|
||||
|
||||
- name: WP for NintendojoFR
|
||||
ansible.builtin.include_tasks: wp_dojo.yml
|
||||
when: inventory_hostname == 'web2.dmz.mateu.be'
|
||||
- name: WP dev for NintendojoFR
|
||||
ansible.builtin.include_tasks: wpdev_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']
|
@@ -1,42 +0,0 @@
|
||||
---
|
||||
|
||||
- name: Create the directory for oolatoocs
|
||||
ansible.builtin.file:
|
||||
name: "{{ webapps_oolatoocs_db_dir }}"
|
||||
state: directory
|
||||
owner: www-data
|
||||
group: www-data
|
||||
mode: "0o755"
|
||||
|
||||
- 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: "0o755"
|
||||
|
||||
- name: Put conf file
|
||||
ansible.builtin.template:
|
||||
src: oolatoocs.toml.j2
|
||||
dest: /usr/local/etc/oolatoocs.toml
|
||||
owner: www-data
|
||||
group: www-data
|
||||
mode: "0o640"
|
||||
|
||||
- name: Init oolatoocs DB
|
||||
ansible.builtin.command:
|
||||
cmd: "{{ webapps_oolatoocs_local_bin_path }} init"
|
||||
creates: "{{ webapps_oolatoocs_db_dir }}/db"
|
||||
|
||||
- name: Migrate oolatoocs DB
|
||||
ansible.builtin.command:
|
||||
cmd: "{{ webapps_oolatoocs_local_bin_path }} migrate"
|
||||
changed_when: false
|
||||
|
||||
- name: Cron for oolatoocs
|
||||
ansible.builtin.cron:
|
||||
name: Oolatoocs
|
||||
user: www-data
|
||||
minute: "*/5"
|
||||
job: "{{ webapps_oolatoocs_local_bin_path }}"
|
@@ -1,16 +0,0 @@
|
||||
---
|
||||
|
||||
- name: Put nginx cache configuration file
|
||||
ansible.builtin.copy:
|
||||
src: files/fastcgi_cache.conf
|
||||
dest: /etc/nginx/conf.d/fastcgi_cache.conf
|
||||
mode: "0o644"
|
||||
notify:
|
||||
- Restart nginx
|
||||
|
||||
- name: Cron for wordpress
|
||||
ansible.builtin.cron:
|
||||
name: "WP Twitter refresh"
|
||||
user: www-data
|
||||
minute: "*/2"
|
||||
job: "/usr/bin/wget -q -O - https://www.nintendojo.fr/wp-cron.php &> /dev/null"
|
@@ -1,9 +0,0 @@
|
||||
---
|
||||
|
||||
- name: Put htpasswd file
|
||||
ansible.builtin.template:
|
||||
src: wwwdev.htpasswd.j2
|
||||
dest: /etc/nginx/wwwdev.htpasswd
|
||||
owner: www-data
|
||||
group: www-data
|
||||
mode: "0o600"
|
@@ -1,14 +0,0 @@
|
||||
[oolatoocs]
|
||||
db_path = "{{ webapps_oolatoocs_db_dir }}/db"
|
||||
|
||||
[mastodon]
|
||||
base = "https://m.nintendojo.fr"
|
||||
client_id = "{{ oolatoocs_mastodon_client_id }}"
|
||||
client_secret = "{{ oolatoocs_mastodon_client_secret }}"
|
||||
redirect = "urn:ietf:wg:oauth:2.0:oob"
|
||||
token = "{{ oolatoocs_mastodon_token }}"
|
||||
|
||||
[bluesky]
|
||||
handle = "nintendojofr.bsky.social"
|
||||
password = "{{ oolatoocs_bluesky_password }}"
|
||||
config_path = "{{ webapps_oolatoocs_db_dir }}/bsky.json"
|
@@ -1 +0,0 @@
|
||||
editeurs:{{ webapps_htpasswd_editeurs }}
|
@@ -1,6 +0,0 @@
|
||||
---
|
||||
|
||||
webapps_oolatoocs_db_dir: /var/lib/oolatoocs
|
||||
webapps_oolatoocs_url: https://r.mateu.be/oolatoocs/oolatoocs
|
||||
webapps_oolatoocs_version: v4.2.0
|
||||
webapps_oolatoocs_local_bin_path: /usr/local/bin/oolatoocs
|
Reference in New Issue
Block a user