browbeat/ansible/install/collectd-generic.yml
lidong 7520f995b6 [Trivial] Fix a typo in browbeat
Change-Id: I29f9d6e7df2cb533eff512bcf8578644ca2ea10e
2017-01-18 01:47:42 -08:00

39 lines
822 B
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:
- epel
- collectd-generic
tags: baremetal
- hosts: guest
remote_user: root
vars:
config_type: guest
roles:
- epel
- collectd-generic
tags: guest
- hosts: graphite
remote_user: root
vars:
config_type: graphite
roles:
- epel
- collectd-generic
tags: graphite