kolla-ansible/ansible/post-deploy.yml
Marcin Juszkiewicz c207520ca5 post-deploy: honour --config-dir argument
kolla-ansible can take globals.yml from any directory by using
--config-dir argument. So store admin credentials there as well.

Not everyone runs kolla-ansible as a root.

Change-Id: I0709482ead4b7a67e82796e17f85bde151e71bc0
2017-10-12 16:35:56 +02:00

10 lines
268 B
YAML

---
- name: Creating admin openrc file on the deploy node
hosts: localhost
become: true
tasks:
- template:
src: "roles/common/templates/admin-openrc.sh.j2"
dest: "{{ CONFIG_DIR | default('/etc/kolla') }}/admin-openrc.sh"
run_once: True