diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 786939ed7280f0117cb6928f158afc166f5499ff..4026a583b8a247558ba6098b14051a9680ee1190 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,6 +14,7 @@ variables:
   ANSIBLE_FORCE_COLOR: "1"
   ANSIBLE_REMOTE_TMP: "/tmp"
   ANSIBLE_SHELL_ALLOW_WORLD_READABLE_TEMP: "1"
+  DEFAULT_MANAGED_STR: "Ansible managed"
   MOLECULE_VERBOSITY: "0"
   PY_COLORS: "1"
   USER: "root"
diff --git a/tasks/conf_templated.yml b/tasks/conf_templated.yml
index 6748db240b38f7b1853b51371b31ae62998058d1..353898dee20ed4a4ce0d68b81466957c87bc3e1c 100644
--- a/tasks/conf_templated.yml
+++ b/tasks/conf_templated.yml
@@ -32,6 +32,7 @@
         mode: "{{ mariadb_cnf.mode | default('0644') }}"
         owner: "{{ mariadb_cnf.owner | default('root') }}"
         group: "{{ mariadb_cnf.group | default('root') }}"
+      no_log: "{% if mariadb_cnf.path is regex(mariadb_regex.config_path) %}false{% else %}true{% endif %}"
       register: mariadb_cnf_file_templated
 
     - name: Notify handler to restart MariaDB