Files
browbeat/ansible/gather/stockpile.yml
Sai Sindhur Malleni 1b9718b51e Use ansible_python.executable isntead of hardcoding python
Change-Id: Id264de1fd64b52fc0ca256e8eba9ad975879002e
2019-11-05 14:17:19 -05:00

36 lines
901 B
YAML

---
#
# For podman containers change "container_cli" configuration to podman
#
- hosts: stockpile
tasks:
- name: setting facts needed
set_fact:
md_output_path: "{{ browbeat_path }}/metadata/machine_facts.json"
stockpile_user: "{{ browbeat_user }}"
- hosts: overcloud
tasks:
- name: setting facts
set_fact:
overcloud_user: "{{ host_remote_user }}"
container_cli: "{{ container_cli }}"
- hosts: undercloud
tasks:
- name: setting facts
set_fact:
undercloud_user: "{{ local_remote_user }}"
container_cli: "{{ container_cli }}"
- import_playbook: stockpile/config/featureset001.yml
vars:
stockpile_output_path: "{{ md_output_path }}"
- hosts: stockpile
tasks:
- name: run prescribe
command: '"{{ ansible_python.executable }}" {{ browbeat_path }}/browbeat/prescribe.py {{ browbeat_path }}/metadata'