f349038b1d
The epel-release package provides a yum repository configuration for EPEL, and points to the upstream EPEL mirrors. In some cases this is undesirable, such as when a local EPEL mirror is available, or access to the public repositories is not possible. This change makes it possible to skip installation of epel-release, by setting 'yum_install_epel' to 'false'. Change-Id: Ib685b0c3e21df01c4dd177771f019fae4bb90e66 Story: 2003277 Task: 24218
23 lines
821 B
YAML
23 lines
821 B
YAML
---
|
|
- name: Ensure user SSH keypair is registered with Nova
|
|
hosts: controllers[0]
|
|
vars:
|
|
public_key_path: "{{ ssh_public_key_path }}"
|
|
os_shade_venv: "{{ virtualenv_path }}/shade"
|
|
roles:
|
|
- role: stackhpc.os-shade
|
|
os_shade_install_epel: "{{ yum_install_epel }}"
|
|
tasks:
|
|
# Note that setting this via a play or task variable seems to not
|
|
# evaluate the Jinja variable reference, so we use set_fact.
|
|
- name: Update the Ansible python interpreter fact to point to the shade virtualenv
|
|
set_fact:
|
|
ansible_python_interpreter: "{{ os_shade_venv }}/bin/python"
|
|
|
|
- name: Ensure a test SSH key pair is registered with Nova
|
|
os_keypair:
|
|
auth: "{{ openstack_auth }}"
|
|
name: test
|
|
public_key: "{{ lookup('file', public_key_path) }}"
|
|
state: present
|