Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/apache2_module/tasks/main.yml

raw
1 ---
2 ####################################################################
3 # WARNING: These are designed specifically for Ansible tests #
4 # and should not be used as examples of how to write Ansible roles #
5 ####################################################################
6
7 # Copyright (c) Ansible Project
8 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
9 # SPDX-License-Identifier: GPL-3.0-or-later
10
11 - name: test apache2_module
12 block:
13 - name: get list of enabled modules
14 shell: apache2ctl -M | sort
15 register: modules_before
16 - name: include only on supported systems
17 include_tasks: actualtest.yml
18 always:
19 - name: get list of enabled modules
20 shell: apache2ctl -M | sort
21 register: modules_after
22 - name: modules_before
23 debug:
24 var: modules_before
25 - name: modules_after
26 debug:
27 var: modules_after
28 - name: ensure that all test modules are disabled again
29 assert:
30 that: modules_before.stdout == modules_after.stdout
31 when: ansible_facts.os_family in ['Debian', 'Suse']
32 # CentOS/RHEL does not have a2enmod/a2dismod
33
34 - name: include misleading warning test
35 include_tasks: 635-apache2-misleading-warning.yml
36 when: ansible_facts.os_family in ['Debian']
37 # Suse has mpm_event module compiled within the base apache2