Skip to content
Snippets Groups Projects
Commit 7e2c3ec2 authored by Yotaro Konishi's avatar Yotaro Konishi
Browse files

Fix an invalid variable name

According to [1], Ansible variable names should not include hyphens.
Kolla-Ansible fails with a wrong variable name 'barbican-api' when
deploying Barbican.

This patch fixes the issue that was recently introduced in [2].

[1] http://docs.ansible.com/ansible/playbooks_variables.html#id15
[2] 08ab3d8e

Change-Id: Ib962e31ad93316e56130c9fc38dabfc918de17ce
Closes-Bug: #1703287
parent f2a19a48
No related branches found
No related tags found
No related merge requests found
...@@ -39,12 +39,12 @@ ...@@ -39,12 +39,12 @@
- name: Checking whether barbican-api-paste.ini file exists - name: Checking whether barbican-api-paste.ini file exists
vars: vars:
barbican-api: "{{ barbican_services['barbican-api'] }}" service: "{{ barbican_services['barbican-api'] }}"
local_action: stat path="{{ node_custom_config }}/barbican/barbican-api-paste.ini" local_action: stat path="{{ node_custom_config }}/barbican/barbican-api-paste.ini"
run_once: True run_once: True
register: check_barbican_api_paste_ini register: check_barbican_api_paste_ini
when: when:
- barbican-api.enabled | bool - service.enabled | bool
- name: Copying over barbican-api-paste.ini - name: Copying over barbican-api-paste.ini
vars: vars:
......
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