| --- |
| - name: Configure telegraf |
| hosts: "{{ target_hosts }}" |
| gather_facts: no |
| tags: ['telegraf'] |
| vars_files: |
| - ~/.apigee-secure/credentials.yml |
| - ~/.apigee/custom-properties.yml |
| roles: |
| - { role: apigee-opdk-setup-component-install, component: 'apigee-telegraf', tags: ['telegraf'] } |
| - { role: apigee-opdk-monitoring-telegraf-config, component: 'apigee-telegraf', tags: ['telegraf'] } |
| - { role: apigee-opdk-setup-component-setup, component: 'apigee-telegraf', config: "{{ telegraf_response_file }}", tags: ['telegraf'] } |
| - { role: apigee-opdk-stop-components, tags: ['apigee-component'] } |
| - { role: apigee-opdk-start-components, tags: ['apigee-component'] } |
| - { role: apigee-opdk-setup-status, tags: ['status'] } |