|
1234567891011121314151617181920 |
- ---
-
- - name: find apache php modules which are not of the selected version
- find:
- path: /etc/apache2/mods-enabled/
- file_type: link
- patterns: php*
- excludes: "php{{php_version}}*"
- register: _find_php_apache_mods
-
- - name: disable apache php modules which are not of the selected version
- file:
- path: "{{item}}"
- state: absent
- with_items: "{{ _find_php_apache_mods | json_query('files[].path') }}"
-
- - name: enable php apache module
- apache2_module:
- name: "php{{php_version}}"
- state: present
|