From c9e7eec59f624feb0a73e2856f7332eb03b3591a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Tue, 24 Jan 2023 11:15:41 +0100 Subject: [PATCH] Prefix module with "ansible.builtin." --- CHANGELOG.md | 1 + tasks/main.yml | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b45af01..d910163 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ### Fix * Use flatten to manage packages list. +* Prefix module with "ansible.builtin.". ## v1.0.0 diff --git a/tasks/main.yml b/tasks/main.yml index 0632e38..8aa9c36 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -5,7 +5,7 @@ # Manage base system packages [[[1 - name: Ensure base packages are in there desired state - package: + ansible.builtin.package: name: '{{ netdata__base_packages | flatten }}' state: '{{ "present" if (netdata__deploy_state == "present") else "absent" }}' install_recommends: '{{ netdata__install_recommends | bool }}' @@ -14,7 +14,7 @@ # Server Manage /etc configuration files [[[1 - name: Ensure Netdata directory structure exists - file: + ansible.builtin.file: path: '/etc/netdata/{{ item.path }}' state: directory owner: 'root' @@ -29,7 +29,7 @@ notify: ['Restart Netdata service'] - name: Generate Netdata configuration files - template: + ansible.builtin.template: src: '{{ item.src }}' dest: "/etc/netdata/{{ item.path | replace('.j2','') }}" owner: 'root' @@ -44,7 +44,7 @@ notify: ['Restart Netdata service'] - name: Generate Netdata configuration symlinks - template: + ansible.builtin.template: src: '{{ item.src }}' dest: "/etc/netdata/{{ item.path | replace('.j2','') }}" state: 'link'