From 5a0ae87d7e60c2223ca853cd675233e17d982505 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 11 Dec 2024 17:42:40 +0100 Subject: [PATCH] We cannot leave empty lists elements. --- defaults/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 547a6a2..c522871 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -16,8 +16,7 @@ mysql_letsencrypt_certificates: True mysql_packages_list: - mysql-server - mysql-client - - "{% 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('24.04', '<') %}mytop{% else %}mycli{% 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 %}"