Sai Sindhur Malleni 30552a359e Make Gather Playbook work in venv
Having local_action causes gather playbook to fail in a venv. We would need it
to work in a venv as we start to call Ansible programatically from browbeat.
This change helps the playbook to run in a venv.

Change-Id: I6834e83fa22edb0a5ff5551defb4a572eb50058c
2016-08-27 11:08:41 -04:00

34 lines
653 B
YAML

---
- hosts: compute
remote_user: "{{ host_remote_user }}"
become: true
roles:
- compute
- hosts: controller
remote_user: "{{ host_remote_user }}"
become: true
roles:
- nova
- neutron
- keystone
- ceilometer
- cinder
- heat
- mysql
- rabbitmq
- hosts: undercloud
remote_user: "{{ local_remote_user }}"
become: true
roles:
- undercloud
- hosts: undercloud
tasks:
- name: Dump all vars
template: src=dump_facts.j2 dest={{ browbeat_path }}/metadata/machine_facts.json
- name: Generate metadata jsons
shell : python {{ browbeat_path }}/lib/Metadata.py {{ browbeat_path }}/metadata