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

Switch from lineinfile to ini_file

lineinfile was really struggling to handle a k/v value with "=" in it. ini_file is built for precisely this file format and handles the issue effortlessly.
This commit is contained in:
cwivagg 2022-12-27 15:56:14 -05:00 committed by GitHub
parent 7fb4bdde88
commit 424f15c4d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -212,10 +212,11 @@
group: "{{ apache_user }}"
- name: Don't Check for Trusted Host
ansible.builtin.lineinfile:
ini_file:
path: "{{ matomo_path }}/matomo/config/config.ini.php"
line: "enable_trusted_host_check\=0"
insertafter: "^\[General\]$"
section: General
option: enable_trusted_host_check
value: 0
# RECORD Matomo AS INSTALLED