And some more
This commit is contained in:
parent
d2594ae2f9
commit
f89ce31b91
1 changed files with 10 additions and 2 deletions
|
@ -6,6 +6,14 @@
|
||||||
yum: name=collectd state=present
|
yum: name=collectd state=present
|
||||||
tags:
|
tags:
|
||||||
- collectd
|
- collectd
|
||||||
|
when: ansible_distribution_major_version|int < 22
|
||||||
|
|
||||||
|
# install pkg
|
||||||
|
- name: install collectd
|
||||||
|
dnf: name=collectd state=present
|
||||||
|
tags:
|
||||||
|
- collectd
|
||||||
|
when: ansible_distribution_major_version|int > 21
|
||||||
|
|
||||||
# enable collectd
|
# enable collectd
|
||||||
- name: enable collectd svc
|
- name: enable collectd svc
|
||||||
|
@ -41,7 +49,7 @@
|
||||||
|
|
||||||
# apache - localhost only - pretty much any apache server
|
# apache - localhost only - pretty much any apache server
|
||||||
- name: install collectd-apache
|
- name: install collectd-apache
|
||||||
yum: state=present name=collectd-apache
|
yum: state=present name=collectd-apache and ansible_distribution_major_version|int < 22
|
||||||
tags:
|
tags:
|
||||||
- collectd
|
- collectd
|
||||||
notify:
|
notify:
|
||||||
|
@ -70,7 +78,7 @@
|
||||||
yum: name=libsemanage-python state=present
|
yum: name=libsemanage-python state=present
|
||||||
tags:
|
tags:
|
||||||
- collectd
|
- collectd
|
||||||
when: collectd_apache is defined
|
when: collectd_apache is defined and ansible_distribution_major_version|int < 22
|
||||||
|
|
||||||
- name: Let collectd talk to things over tcp
|
- name: Let collectd talk to things over tcp
|
||||||
seboolean: name=collectd_tcp_network_connect state=yes persistent=yes
|
seboolean: name=collectd_tcp_network_connect state=yes persistent=yes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue