Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/setup_apache2/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: Install apache via apt
12 apt:
13 name: "{{item}}"
14 state: present
15 when: "ansible_facts.os_family == 'Debian'"
16 with_items:
17 - apache2
18 - libapache2-mod-evasive
19
20 - name: Install apache via zypper
21 community.general.zypper:
22 name: apache2
23 state: present
24 when: "ansible_facts.os_family == 'Suse'"
25
26 - name: Enable mod_slotmem_shm on SuSE
27 apache2_module:
28 name: slotmem_shm
29 state: present
30 when: "ansible_facts.os_family == 'Suse'"