mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
changes to Matomo role to record state
This commit is contained in:
parent
1f2bd60002
commit
30620a8034
2 changed files with 9 additions and 0 deletions
|
@ -139,3 +139,11 @@
|
||||||
job: "{{ matomo_cronjob }}"
|
job: "{{ matomo_cronjob }}"
|
||||||
user: root
|
user: root
|
||||||
cron_file: "matomo_daily"
|
cron_file: "matomo_daily"
|
||||||
|
- name: Set Matomo state variable
|
||||||
|
set_fact:
|
||||||
|
matomo_installed: True
|
||||||
|
- name: Set Matomo state variable in IIAB state file
|
||||||
|
lineinfile:
|
||||||
|
path: "{{ iiab_state_file }}"
|
||||||
|
regexp: '^matomo_installed'
|
||||||
|
line: 'matomo_installed: True'
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
- name: Install Matomo main
|
- name: Install Matomo main
|
||||||
include_tasks: install.yml
|
include_tasks: install.yml
|
||||||
|
when: matomo_installed is undefined
|
||||||
vars:
|
vars:
|
||||||
mdb_dbname: "matomodb"
|
mdb_dbname: "matomodb"
|
||||||
mdb_username: "iiab-admin"
|
mdb_username: "iiab-admin"
|
||||||
|
|
Loading…
Reference in a new issue