First commit

This commit is contained in:
VC
2019-09-04 09:06:55 +02:00
commit dded46ff64
144 changed files with 7495 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
- name: install pip3
package:
name: python3-pip
state: present
- name: install feed2toot
pip:
name: feed2toot
state: present
- name: cron for feed2toot
cron:
name: F2T Dojo
user: www-data
minute: "*/15"
job: "/usr/local/bin/feed2toot -c /srv/docker/m.nintendojo.fr/feed2toot/feed2toot.ini"
- name: config dir for feed2toot
file:
path: /var/www/.config
owner: www-data
group: www-data
state: directory

View File

@@ -0,0 +1,18 @@
- name: include ttrss for web1
include_tasks: ttrss.yml
when: inventory_hostname == 'web1.dmz.mateu.be'
- name: include php flag for NextCloud
include_tasks: nextcloud.yml
when: inventory_hostname == 'web1.dmz.mateu.be'
- name: include matomo for web2
include_tasks: matomo.yml
when: inventory_hostname == 'web2.dmz.mateu.be'
- name: WP for NintendojoFR
include_tasks: wp_dojo.yml
when: inventory_hostname == 'web2.dmz.mateu.be'
- name: feed2toot for Mastodon
include_tasks: feed2toot.yml
when: inventory_hostname == 'ror.dmz.mateu.be'
- name: tootctl for mastodon
include_tasks: tootctl.yml
when: inventory_hostname == 'ror.dmz.mateu.be'

View File

@@ -0,0 +1,6 @@
- name: crontab for matomo
cron:
name: Matomo reports
user: www-data
minute: "5"
job: "/usr/bin/php /srv/nginx/nintendojo.fr/analyse/console core:archive > /dev/null"

View File

@@ -0,0 +1,6 @@
- name: php-fpm nextcloud specific configuration
copy:
src: files/oc.conf
dest: "/etc/php/{{ php_version }}/fpm/pool.d/oc.conf"
notify:
- restart php-fpm

View File

@@ -0,0 +1,7 @@
- name: cron for tootctl
cron:
name: Mastodon tootctl
minute: "0"
hour: "19"
weekday: "5"
job: "docker-compose -f /srv/docker/m.nintendojo.fr/docker-compose.yml run --rm web bin/tootctl media remove"

View File

@@ -0,0 +1,16 @@
- name: systemd file for backend
copy:
src: files/ttrss_backend.service
dest: /etc/systemd/system/ttrss_backend.service
- name: enable and start service ttrss_backend
service:
name: ttrss_backend
enabled: true
state: started
- name: install git
package:
name: git
state: present

View File

@@ -0,0 +1,13 @@
- name: nginx cache
copy:
src: files/fastcgi_cache.conf
dest: /etc/nginx/conf.d/fastcgi_cache.conf
notify:
- restart nginx
- name: wordpress cron
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"