1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Replace shell commands with ansible

This commit is contained in:
cwivagg 2022-12-24 10:30:47 -05:00 committed by GitHub
parent b968fd40f5
commit 4823353dd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -180,13 +180,6 @@
body_format: form-urlencoded
status_code: 302
- name: Set Matomo Directory Permissions
file:
path: "{{ matomo_path }}/matomo"
recurse: yes
owner: "{{ apache_user }}" # e.g. www-data
group: "{{ apache_user }}"
- name: Start Collecting Matomo Data
cron:
name: "MatomoDataIngestionOnReboot"
@ -204,14 +197,19 @@
user: root
cron_file: "matomo_daily"
- name: Set Permissions for token.php
copy:
content: ""
dest: "{{ matomo_path }}/matomo/tmp/cache/token.php"
group: "{{ apache_user }}"
owner: "{{ apache_user }}"
- name: Start Collecting Matomo Data
cron:
name: "MatomoDataIngestionOnReboot2"
special_time: reboot
job: "sudo touch /library/www/matomo/tmp/cache/token.php && sudo mkdir /library/www/matomo/tmp/cache/tracker && sudo chown -R www-data:www-data /library/www/matomo"
user: root
cron_file: "matomo_reboot2"
- name: Set Permissions for tracker Directory
file:
path: "{{ matomo_path }}/matomo/tmp/cache/tracker"
state: directory
owner: "{{ apache_user }}"
group: "{{ apache_user }}"
# RECORD Matomo AS INSTALLED