zabbix_host: fix integration tests only working individually (#33630)
* remove mod_evasive which is potentially installed by apache2_module integration test and add zabbix_host to CI
This commit is contained in:
parent
a7e49cde3b
commit
31e3b8197f
3 changed files with 28 additions and 2 deletions
20
test/integration/targets/apache2_module/tasks/cleanup.yml
Normal file
20
test/integration/targets/apache2_module/tasks/cleanup.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
# This file is part of Ansible
|
||||
#
|
||||
# Ansible is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# Ansible is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
- name: uninstall libapache2-mod-evasive via apt
|
||||
apt:
|
||||
name: libapache2-mod-evasive
|
||||
state: absent
|
||||
when: "ansible_os_family == 'Debian'"
|
|
@ -1,6 +1,11 @@
|
|||
---
|
||||
|
||||
- name:
|
||||
block:
|
||||
- name: include only on supported systems
|
||||
include: actualtest.yml
|
||||
always:
|
||||
- name: cleanup installed modules
|
||||
include: cleanup.yml
|
||||
when: ansible_os_family in ['Debian', 'Suse']
|
||||
# centos/RHEL does not have a2enmod/a2dismod
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
destructive
|
||||
posix/ci/group1
|
||||
skip/osx
|
||||
skip/freebsd
|
||||
skip/rhel
|
||||
|
|
Loading…
Reference in a new issue