Prefix module with "ansible.builtin."
This commit is contained in:
parent
c651541614
commit
c9e7eec59f
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
### Fix
|
### Fix
|
||||||
* Use flatten to manage packages list.
|
* Use flatten to manage packages list.
|
||||||
|
* Prefix module with "ansible.builtin.".
|
||||||
|
|
||||||
## v1.0.0
|
## v1.0.0
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
# Manage base system packages [[[1
|
# Manage base system packages [[[1
|
||||||
- name: Ensure base packages are in there desired state
|
- name: Ensure base packages are in there desired state
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: '{{ netdata__base_packages | flatten }}'
|
name: '{{ netdata__base_packages | flatten }}'
|
||||||
state: '{{ "present" if (netdata__deploy_state == "present") else "absent" }}'
|
state: '{{ "present" if (netdata__deploy_state == "present") else "absent" }}'
|
||||||
install_recommends: '{{ netdata__install_recommends | bool }}'
|
install_recommends: '{{ netdata__install_recommends | bool }}'
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
# Server Manage /etc configuration files [[[1
|
# Server Manage /etc configuration files [[[1
|
||||||
- name: Ensure Netdata directory structure exists
|
- name: Ensure Netdata directory structure exists
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: '/etc/netdata/{{ item.path }}'
|
path: '/etc/netdata/{{ item.path }}'
|
||||||
state: directory
|
state: directory
|
||||||
owner: 'root'
|
owner: 'root'
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
notify: ['Restart Netdata service']
|
notify: ['Restart Netdata service']
|
||||||
|
|
||||||
- name: Generate Netdata configuration files
|
- name: Generate Netdata configuration files
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: '{{ item.src }}'
|
src: '{{ item.src }}'
|
||||||
dest: "/etc/netdata/{{ item.path | replace('.j2','') }}"
|
dest: "/etc/netdata/{{ item.path | replace('.j2','') }}"
|
||||||
owner: 'root'
|
owner: 'root'
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
notify: ['Restart Netdata service']
|
notify: ['Restart Netdata service']
|
||||||
|
|
||||||
- name: Generate Netdata configuration symlinks
|
- name: Generate Netdata configuration symlinks
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: '{{ item.src }}'
|
src: '{{ item.src }}'
|
||||||
dest: "/etc/netdata/{{ item.path | replace('.j2','') }}"
|
dest: "/etc/netdata/{{ item.path | replace('.j2','') }}"
|
||||||
state: 'link'
|
state: 'link'
|
||||||
|
|
Loading…
Reference in New Issue