You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- ---
-
- - 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
|