Skip to content

Commit

Permalink
do not set mysql group if matomo_add_mysql_to_matomo_group is used (b…
Browse files Browse the repository at this point in the history
…ecause then matomo_group should always be used
  • Loading branch information
alexandermeindl committed Aug 2, 2024
1 parent 1a7f3b4 commit 1fa549f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion roles/matomo/tasks/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,12 @@
when: matomo_add_mysql_to_matomo_group and matomo_with_mysql

# required for mysql mysql_secure_file_priv
# NOTE: if matomo_add_mysql_to_matomo_group group should be always matomo-group
- name: Secure matomo directory
ansible.builtin.file:
path: '{{ matomo_dir }}'
owner: '{{ matomo_user }}'
group: "{{ 'mysql' if matomo_with_mysql else matomo_group }}"
group: "{{ 'mysql' if matomo_with_mysql and matomo_add_mysql_to_matomo_group else matomo_group }}"
mode: '0750'

- name: Install robots.txt
Expand Down

0 comments on commit 1fa549f

Please sign in to comment.