kayobe/ansible/roles/public-openrc/tasks/main.yml
Will Szumski 73cb007ab9 Do not fail when admin openrc file does not exist
Change-Id: If89bb28fa2e8cc615da21893201cc438d5b6ff05
Story: 2009323
Task: 43745
2022-01-05 09:53:19 +01:00

13 lines
409 B
YAML

---
- name: Read the admin OpenStack API environment file
slurp:
src: "{{ kolla_config_path }}/admin-openrc.sh"
register: admin_openrc
when: (kolla_config_path ~ '/admin-openrc.sh') is exists
- name: Ensure a public OpenStack API environment file exists
template:
src: public-openrc.sh.j2
dest: "{{ public_openrc_kolla_config_path }}/public-openrc.sh"
when: admin_openrc is not skipped