Compare commits
2 Commits
a2c7412cfe
...
c9e7eec59f
Author | SHA1 | Date |
---|---|---|
Jeremy Gardais | c9e7eec59f | |
Jeremy Gardais | c651541614 |
|
@ -1,3 +1,8 @@
|
|||
## v1.0.1
|
||||
|
||||
### Fix
|
||||
* Use flatten to manage packages list.
|
||||
* Prefix module with "ansible.builtin.".
|
||||
|
||||
## v1.0.0
|
||||
|
||||
|
|
|
@ -5,18 +5,16 @@
|
|||
|
||||
# Manage base system packages [[[1
|
||||
- name: Ensure base packages are in there desired state
|
||||
package:
|
||||
name: '{{ item }}'
|
||||
ansible.builtin.package:
|
||||
name: '{{ netdata__base_packages | flatten }}'
|
||||
state: '{{ "present" if (netdata__deploy_state == "present") else "absent" }}'
|
||||
install_recommends: '{{ netdata__install_recommends | bool }}'
|
||||
with_flattened:
|
||||
- '{{ netdata__base_packages | to_nice_json }}'
|
||||
register: pkg_result
|
||||
until: pkg_result is success
|
||||
|
||||
# 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'
|
||||
|
@ -31,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'
|
||||
|
@ -46,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'
|
||||
|
|
Loading…
Reference in New Issue