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

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

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

Loading…
Cancel
Save