From 24b2e0e273e900a36dc56b25ed1fd92607d729cb Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 11 Dec 2024 17:32:17 +0100 Subject: [PATCH] Ubuntu 24.04 does not have 'mytop'. --- defaults/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 611552e..547a6a2 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -16,7 +16,8 @@ mysql_letsencrypt_certificates: True mysql_packages_list: - mysql-server - mysql-client - - mytop + - "{% if ansible_distribution_version is version_compare('24.04', '<') %}mytop{% else %}{% endif %}" + - "{% if ansible_distribution_version is version_compare('24.04', '>=') %}mycli{% else %}{% endif %}" - "{% if ansible_distribution_version is version_compare('20.04', '>=') %}python3-mysqldb{% else %}python-mysqldb{% endif %}" - "{% if ansible_distribution_version is version_compare('20.04', '>=') %}python3-pymysql{% else %}python-pymysql{% endif %}" - "{% if ansible_distribution_version is version_compare('20.04', '>=') %}python3-mysql.connector{% else %}python-mysql.connector{% endif %}"