2015-11-04 13:03:43 -05:00
|
|
|
---
|
|
|
|
- name: Creating admin openrc file on the deploy node
|
2017-02-22 16:57:42 +08:00
|
|
|
hosts: localhost
|
2015-11-04 13:03:43 -05:00
|
|
|
tasks:
|
2020-04-20 10:00:51 +02:00
|
|
|
- name: Template out admin-openrc.sh
|
2020-08-06 14:12:44 +08:00
|
|
|
become: true
|
2020-04-20 10:00:51 +02:00
|
|
|
template:
|
2015-11-04 13:03:43 -05:00
|
|
|
src: "roles/common/templates/admin-openrc.sh.j2"
|
2018-03-20 20:31:24 +08:00
|
|
|
dest: "{{ node_config }}/admin-openrc.sh"
|
2020-08-06 14:12:44 +08:00
|
|
|
owner: "{{ ansible_user_uid }}"
|
|
|
|
group: "{{ ansible_user_gid }}"
|
|
|
|
mode: 0600
|
2020-08-11 14:35:26 +08:00
|
|
|
|
|
|
|
- import_role:
|
|
|
|
name: octavia
|
|
|
|
tasks_from: openrc.yml
|
|
|
|
when: enable_octavia | bool
|