2020-03-09 10:11:07 +01:00
|
|
|
---
|
2020-09-25 09:04:59 +02:00
|
|
|
####################################################################
|
|
|
|
# WARNING: These are designed specifically for Ansible tests #
|
|
|
|
# and should not be used as examples of how to write Ansible roles #
|
|
|
|
####################################################################
|
|
|
|
|
2020-03-09 10:11:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
- name:
|
|
|
|
block:
|
|
|
|
- name: get list of enabled modules
|
|
|
|
shell: apache2ctl -M | sort
|
|
|
|
register: modules_before
|
|
|
|
- name: include only on supported systems
|
|
|
|
include: actualtest.yml
|
|
|
|
always:
|
|
|
|
- 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
|
|
|
|
when: ansible_os_family in ['Debian', 'Suse']
|
|
|
|
# centos/RHEL does not have a2enmod/a2dismod
|