Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
|
15e1ba5685 | |
|
c9e7eec59f | |
|
c651541614 |
|
@ -1,3 +1,8 @@
|
||||||
|
## v1.0.1
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
* Use flatten to manage packages list.
|
||||||
|
* Prefix module with "ansible.builtin.".
|
||||||
|
|
||||||
## v1.0.0
|
## v1.0.0
|
||||||
|
|
||||||
|
|
|
@ -116,7 +116,7 @@ Jérémy Gardais
|
||||||
* [IPR][ipr website] (Institut de Physique de Rennes)
|
* [IPR][ipr website] (Institut de Physique de Rennes)
|
||||||
|
|
||||||
[gogs to github hook]: https://stackoverflow.com/a/21998477
|
[gogs to github hook]: https://stackoverflow.com/a/21998477
|
||||||
[netdata source]: https://git.ipr.univ-rennes1.fr/cellinfo/ansible.netdata
|
[netdata source]: https://git.ipr.univ-rennes.fr/cellinfo/ansible.netdata
|
||||||
[netdata github]: https://github.com/ipr-cnrs/netdata
|
[netdata github]: https://github.com/ipr-cnrs/netdata
|
||||||
[wtfpl website]: http://www.wtfpl.net/about/
|
[wtfpl website]: http://www.wtfpl.net/about/
|
||||||
[ipr website]: https://ipr.univ-rennes1.fr/
|
[ipr website]: https://ipr.univ-rennes1.fr/
|
||||||
|
|
|
@ -7,7 +7,7 @@ galaxy_info:
|
||||||
description: "Manage Netdata configuration"
|
description: "Manage Netdata configuration"
|
||||||
license: WTFPL
|
license: WTFPL
|
||||||
company: IPR
|
company: IPR
|
||||||
issue_tracker_url: https://git.ipr.univ-rennes1.fr/cellinfo/ansible.netadata/issues
|
issue_tracker_url: https://git.ipr.univ-rennes.fr/cellinfo/ansible.netadata/issues
|
||||||
min_ansible_version: 2.6
|
min_ansible_version: 2.6
|
||||||
platforms:
|
platforms:
|
||||||
- name: Debian
|
- name: Debian
|
||||||
|
|
|
@ -5,18 +5,16 @@
|
||||||
|
|
||||||
# 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: '{{ item }}'
|
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 }}'
|
||||||
with_flattened:
|
|
||||||
- '{{ netdata__base_packages | to_nice_json }}'
|
|
||||||
register: pkg_result
|
register: pkg_result
|
||||||
until: pkg_result is success
|
until: pkg_result is success
|
||||||
|
|
||||||
# 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'
|
||||||
|
@ -31,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'
|
||||||
|
@ -46,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