2016-04-18 18:00:02 +02:00
|
|
|
---
|
|
|
|
|
2018-01-23 18:56:59 +01:00
|
|
|
|
2017-12-07 17:32:28 +01:00
|
|
|
- name:
|
|
|
|
block:
|
2018-01-23 18:56:59 +01:00
|
|
|
- name: get list of enabled modules
|
|
|
|
shell: apache2ctl -M | sort
|
|
|
|
register: modules_before
|
2017-12-07 17:32:28 +01:00
|
|
|
- name: include only on supported systems
|
|
|
|
include: actualtest.yml
|
|
|
|
always:
|
2018-01-23 18:56:59 +01: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 18:00:02 +02:00
|
|
|
when: ansible_os_family in ['Debian', 'Suse']
|
|
|
|
# centos/RHEL does not have a2enmod/a2dismod
|