From 90b6c8184577ed1a84987d937504d86d6f50a57c Mon Sep 17 00:00:00 2001
From: Andrea Dell'Amico <andrea.dellamico@isti.cnr.it>
Date: Thu, 6 Feb 2025 19:40:18 +0100
Subject: [PATCH] Fix the ini_file task.

---
 tasks/mysql-conf.yml | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/tasks/mysql-conf.yml b/tasks/mysql-conf.yml
index 4c58f15..2c62a5c 100644
--- a/tasks/mysql-conf.yml
+++ b/tasks/mysql-conf.yml
@@ -92,11 +92,14 @@
   tags: ['mysql', 'mariadb', 'mysql_conf']
   block:
     - name: mysql-conf | Configure MariaDB server options
-      ansible.builtin.ini_file:
-        - section: "{{ item.section }}"
-          option: "{{ item.option }}"
-          value: "{{ item.value }}"
-          state: "{{ item.state }}"
-          dest: "{{ mariadb_server_conf_file }}"
-          backup: false
+      community.general.ini_file:
+        section: "{{ item.section }}"
+        option: "{{ item.option }}"
+        value: "{{ item.value }}"
+        state: "{{ item.state }}"
+        dest: "{{ mariadb_server_conf_file }}"
+        backup: false
+        owner: root
+        group: root
+        mode: "0644"
       loop: "{{ mariadb_server_conf_params }}"