Gather facts for openstack_openrc role

The openstack_openrc role need to make use of variables
only available if facts are gathered.

In this patch we ensure that facts are gathered for both
times the role is executed.

Change-Id: I327e7e127d4f9022d3fe0643122df37828e9f17d
This commit is contained in:
Jesse Pretorius 2018-08-20 17:01:19 +01:00
parent 62d794d042
commit 7f8ee6d2fd
2 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,7 @@
# clouds.yaml file is useless until keystone is in place.
- name: Implement openrc/clouds.yaml on the designated service host
hosts: "{{ openstack_service_setup_host | default('localhost') }}"
gather_facts: no
gather_facts: "{{ osa_gather_facts | default(True) }}"
become: yes
tags:
- openrc

View File

@ -16,6 +16,7 @@
- name: Setup the utility location(s)
hosts: utility_all
user: root
gather_facts: "{{ osa_gather_facts | default(True) }}"
environment: "{{ deployment_environment_variables | default({}) }}"
vars_files:
- "defaults/{{ install_method }}_install.yml"