25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

apache.yaml 525B

1234567891011121314151617181920
  1. ---
  2. - name: find apache php modules which are not of the selected version
  3. find:
  4. path: /etc/apache2/mods-enabled/
  5. file_type: link
  6. patterns: php*
  7. excludes: "php{{php_version}}*"
  8. register: _find_php_apache_mods
  9. - name: disable apache php modules which are not of the selected version
  10. file:
  11. path: "{{item}}"
  12. state: absent
  13. with_items: "{{ _find_php_apache_mods | json_query('files[].path') }}"
  14. - name: enable php apache module
  15. apache2_module:
  16. name: "php{{php_version}}"
  17. state: present