Skip to content

Commit

Permalink
Install necessary packages for mysql on RHEL8 (#343)
Browse files Browse the repository at this point in the history
Install necessary packages for mysql on RHEL8
  • Loading branch information
ChandlerSwift authored Mar 13, 2021
1 parent 331c3c4 commit 3278881
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions roles/zabbix_server/tasks/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,24 @@
tags:
- zabbix-server

- name: "RedHat | Install Mysql Client packages RHEL8"
yum:
name:
- mysql
- python3-PyMySQL
state: present
environment:
http_proxy: "{{ zabbix_http_proxy | default(None) | default(omit) }}"
https_proxy: "{{ zabbix_https_proxy | default(None) | default(omit) }}"
register: zabbix_server_dependencies_installed
until: zabbix_server_dependencies_installed is succeeded
become: yes
when:
- zabbix_server_database == 'mysql'
- ansible_distribution_major_version == "8"
tags:
- zabbix-server

- name: "RedHat | Install Mysql Client package RHEL7"
yum:
name:
Expand Down

0 comments on commit 3278881

Please sign in to comment.