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:
parent
b968fd40f5
commit
4823353dd9
1 changed files with 12 additions and 14 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue