Srikanth Vavilapalli | a7ae651 | 2017-02-13 02:29:21 +0000 | [diff] [blame] | 1 | --- |
| 2 | # monitoringagent-infra-install-config.yml |
| 3 | # Generates the inventory file to be used to run the monitoringagent-infra-install.yml playbook |
| 4 | # should be run with /etc/maas/ansible/pod-inventory as inventory file |
| 5 | # ansible-playbook -i /etc/maas/ansible/pod-inventory --extra-vars=@/opt/cord/build/genconfig/config.yml monitoringagent-infra-install-config.yml |
| 6 | |
| 7 | - name: Include vars |
| 8 | hosts: all |
| 9 | tasks: |
| 10 | - name: Include variables |
| 11 | include_vars: "{{ item }}" |
| 12 | with_items: |
| 13 | - "profile_manifests/{{ cord_profile }}.yml" |
| 14 | - profile_manifests/local_vars.yml |
| 15 | |
| 16 | - name: Create monitoringagent config |
| 17 | hosts: head |
| 18 | roles: |
| 19 | - monitoringagent-infra-install-config |