Bug when only removing config
This config:
- name: PHP 8.2 JIT configuration
path: /etc/php/8.2/mods-available/opcache.ini
state: edited
conf_absent:
"opcache.jit": "0"
Causes an error:
task path: /roles/php/tasks/file_edited.yml:129
fatal: [example.org]: FAILED! =>
msg: |-
The task includes an option with an undefined variable.. list object has no element 0
The error appears to be in '/roles/php/tasks/file_edited.yml': line 129, column 11, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: Set a fact to indicate that the proposed PHP configuration file has sections
^ here
This config works, the above needs fixing rather than working around.
- name: PHP 8.2 JIT configuration
path: /etc/php/8.2/mods-available/opcache.ini
state: templated
# conf_absent:
# "opcache.jit": "0"
conf:
"zend_extension": "opcache.so"