Skip to content
Snippets Groups Projects
Commit c7197f9f authored by Mark Goddard's avatar Mark Goddard
Browse files

Use vars: to pass variables to roles included via an include_role task

Passing variables inline with the role name appears not to work.
parent e7e43445
No related branches found
No related tags found
No related merge requests found
...@@ -80,7 +80,8 @@ ...@@ -80,7 +80,8 @@
# Register the new flavors. # Register the new flavors.
- name: Include the stackhpc.os-flavors role - name: Include the stackhpc.os-flavors role
include_role: include_role:
role: stackhpc.os-flavors name: stackhpc.os-flavors
vars:
os_flavors_venv: "{{ venv }}" os_flavors_venv: "{{ venv }}"
os_flavors_auth_type: "{{ openstack_auth_type }}" os_flavors_auth_type: "{{ openstack_auth_type }}"
os_flavors_auth: "{{ openstack_auth }}" os_flavors_auth: "{{ openstack_auth }}"
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
- name: Ensure the openstack client is installed - name: Ensure the openstack client is installed
include_role: include_role:
name: stackhpc.os-openstackclient name: stackhpc.os-openstackclient
vars:
os_openstackclient_venv: "{{ venv }}" os_openstackclient_venv: "{{ venv }}"
- name: Retrieve the IPA kernel Glance image UUID - name: Retrieve the IPA kernel Glance image UUID
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
- name: Ensure Ironic Python Agent images are built - name: Ensure Ironic Python Agent images are built
include_role: include_role:
name: stackhpc.os-images name: stackhpc.os-images
vars:
os_images_venv: "{{ virtualenv_path }}/ipa-build-dib" os_images_venv: "{{ virtualenv_path }}/ipa-build-dib"
os_images_cache: "{{ image_cache_path }}" os_images_cache: "{{ image_cache_path }}"
os_images_common: "" os_images_common: ""
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
- name: Ensure Ironic Python Agent images are built - name: Ensure Ironic Python Agent images are built
include_role: include_role:
name: stackhpc.os-images name: stackhpc.os-images
vars:
os_images_venv: "{{ virtualenv_path }}/ipa-build-dib" os_images_venv: "{{ virtualenv_path }}/ipa-build-dib"
os_images_cache: "{{ image_cache_path }}" os_images_cache: "{{ image_cache_path }}"
os_images_common: "" os_images_common: ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment