195269d758
we use octavia user to upload image currently, so it is better to create a octavia openrc file for user Implements: blueprint implement-automatic-deploy-of-octavia Change-Id: Ib53d00fa4a6ee59b8a0b2245f83786a6af0cbf53
18 lines
475 B
YAML
18 lines
475 B
YAML
---
|
|
- name: Creating admin openrc file on the deploy node
|
|
hosts: localhost
|
|
tasks:
|
|
- name: Template out admin-openrc.sh
|
|
become: true
|
|
template:
|
|
src: "roles/common/templates/admin-openrc.sh.j2"
|
|
dest: "{{ node_config }}/admin-openrc.sh"
|
|
owner: "{{ ansible_user_uid }}"
|
|
group: "{{ ansible_user_gid }}"
|
|
mode: 0600
|
|
|
|
- import_role:
|
|
name: octavia
|
|
tasks_from: openrc.yml
|
|
when: enable_octavia | bool
|