mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-06 08:51:37 +01:00
37 lines
769 B
YAML
37 lines
769 B
YAML
- name: install packages
|
|
apt:
|
|
pkg:
|
|
- php-apcu
|
|
|
|
- name: Add slapd script to cron
|
|
cron:
|
|
minute: "*/4"
|
|
hour: "*"
|
|
name: Nextcloud cron-cleanup
|
|
job: /usr/bin/sudo -u www-data /usr/bin/php -f /var/www/nextcloud/cron.php
|
|
user: root
|
|
|
|
- name: Template nextcloud php conf
|
|
template:
|
|
src: "nextcloud-config.php"
|
|
dest: "/var/www/nextcloud/config/config.php"
|
|
owner: www-data
|
|
group: www-data
|
|
|
|
- name: Template nginx base conf
|
|
template:
|
|
src: "{{ item }}"
|
|
dest: "/etc/nginx/{{ item }}"
|
|
with_items:
|
|
- nginx.conf
|
|
- mime.types
|
|
notify:
|
|
- reload nginx
|
|
|
|
- name: Template nginx nextcloud conf
|
|
template:
|
|
src: nginx-nextcloud.conf
|
|
dest: /etc/nginx/sites-enabled/nextcloud.conf
|
|
notify:
|
|
- reload nginx
|