re-enable zabbix_host integration tests and add cleanup handlers

pull/64744/head
Dusan Matejka 5 years ago committed by Matt Clay
parent 47bf5deb54
commit fadf7a426f

@ -0,0 +1,15 @@
- name: remove zabbix repository
apt_repository:
repo: "{{ zabbix_apt_repository }}"
filename: zabbix
state: absent
- name: remove zabbix packages
apt:
name: "{{ zabbix_packages }}"
state: absent
- name: remove zabbix pip packages
pip:
name: zabbix-api
state: absent

@ -10,6 +10,7 @@
repo: "{{ zabbix_apt_repository }}"
filename: zabbix
state: present
notify: remove zabbix repository
- name: check if dpkg is set to exclude specific destinations
stat:
@ -29,11 +30,13 @@
name: "{{ zabbix_packages }}"
state: latest
update_cache: yes
notify: remove zabbix packages
- name: install zabbix-api python package
pip:
name: zabbix-api
state: latest
notify: remove zabbix pip packages
- name: create mysql user {{ db_user }}
mysql_user:

@ -3,4 +3,3 @@ shippable/posix/group1
skip/osx
skip/freebsd
skip/rhel
disabled

@ -14,4 +14,3 @@
when:
- ansible_distribution == 'Ubuntu'
- ansible_distribution_release == 'bionic'

Loading…
Cancel
Save