2016-04-18 16:00:02 +00:00
|
|
|
---
|
|
|
|
|
2018-01-23 17:56:59 +00:00
|
|
|
|
2017-12-07 16:32:28 +00:00
|
|
|
- name:
|
|
|
|
block:
|
2018-01-23 17:56:59 +00:00
|
|
|
- name: get list of enabled modules
|
|
|
|
shell: apache2ctl -M | sort
|
|
|
|
register: modules_before
|
2017-12-07 16:32:28 +00:00
|
|
|
- name: include only on supported systems
|
|
|
|
include: actualtest.yml
|
|
|
|
always:
|
2018-01-23 17:56:59 +00:00
|
|
|
- name: get list of enabled modules
|
|
|
|
shell: apache2ctl -M | sort
|
|
|
|
register: modules_after
|
|
|
|
- debug: var=modules_before
|
|
|
|
- debug: var=modules_after
|
|
|
|
- name: ensure that all test modules are disabled again
|
|
|
|
assert:
|
|
|
|
that: modules_before.stdout == modules_after.stdout
|
2016-04-18 16:00:02 +00:00
|
|
|
when: ansible_os_family in ['Debian', 'Suse']
|
|
|
|
# centos/RHEL does not have a2enmod/a2dismod
|