browbeat/ansible/install/collectd-generic.yml
Charles Short 8bd21961e6 Use epel when approiate
Don't install epel7 when using rhel8, only for rhel7.
Remove this patch once Centos 8 becaomes available.

Change-Id: I10a35c6201c0282f7de8fb969b608a1604581e5e
Signed-off-by: Charles Short <chucks@redhat.com>
2019-06-28 13:59:49 -04:00

42 lines
1.1 KiB
YAML

---
#
# Generic Playbook to install collectd on generic machine types, use tags to separate machine type:
#
# Examples:
#
# ansible-playbook -i hosts install/collectd-generic.yml --tags="baremetal"
# ansible-playbook -i hosts install/collectd-generic.yml --tags="guest"
# ansible-playbook -i hosts install/collectd-generic.yml --tags="graphite"
# ansible-playbook -i hosts install/collectd-generic.yml --tags="baremetal,guest"
#
- hosts: baremetal
remote_user: root
vars:
config_type: baremetal
roles:
- {role: epel, when: ansible_distribution_major_version == '7'}
- collectd-generic
tags: baremetal
environment: "{{proxy_env}}"
- hosts: guest
remote_user: root
vars:
config_type: guest
roles:
- {role: epel, when: ansible_distribution_major_version == '7'}
- collectd-generic
tags: guest
environment: "{{proxy_env}}"
- hosts: graphite
remote_user: root
vars:
config_type: graphite
roles:
- {role: epel, when: ansible_distribution_major_version == '7'}
- collectd-generic
tags: graphite
environment: "{{proxy_env}}"