From 4d7f53387baa4fbbaac469c475075d294497dbcd Mon Sep 17 00:00:00 2001 From: Troy W Date: Mon, 13 Nov 2023 00:16:12 -0500 Subject: [PATCH] Removed dependency of mysql group definition (#1125) --- changelogs/fragments/pymysql.yml | 2 ++ roles/zabbix_proxy/tasks/mysql.yml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/pymysql.yml diff --git a/changelogs/fragments/pymysql.yml b/changelogs/fragments/pymysql.yml new file mode 100644 index 000000000..8b21912e9 --- /dev/null +++ b/changelogs/fragments/pymysql.yml @@ -0,0 +1,2 @@ +bugfixes: + - proxy role - Removed requirement for mysql group definition. diff --git a/roles/zabbix_proxy/tasks/mysql.yml b/roles/zabbix_proxy/tasks/mysql.yml index b6dcb1363..dde847a53 100644 --- a/roles/zabbix_proxy/tasks/mysql.yml +++ b/roles/zabbix_proxy/tasks/mysql.yml @@ -28,8 +28,8 @@ name: PyMySQL register: installation_dependencies until: installation_dependencies is succeeded - when: - - inventory_hostname in groups['mysql'] + tags: + - database - name: "MySQL | Create database" community.mysql.mysql_db: