Address Ansible bare variable usage
When executing the role with Ansible 2.1, the following deprecation warning is issued in the output for some tasks. [DEPRECATION WARNING]: Using bare variables is deprecated. This patch addresses the tasks to fix the behaviour appropriately. Change-Id: Id61f978d9848626a9e3e9ca84228780bb9fc067d
This commit is contained in:
parent
04a12c6b31
commit
271d642148
|
@ -29,4 +29,4 @@
|
|||
until: install_barbican_apt_packages |success
|
||||
retries: 5
|
||||
delay: 2
|
||||
with_items: barbican_apt_packages
|
||||
with_items: "{{ barbican_apt_packages }}"
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
until: install_barbican_pip_packages |success
|
||||
retries: 5
|
||||
delay: 2
|
||||
with_items: barbican_pip_packages
|
||||
with_items: "{{ barbican_pip_packages }}"
|
||||
tags:
|
||||
- barbican-install
|
||||
- barbican-pip-packages
|
||||
|
|
|
@ -44,10 +44,8 @@
|
|||
|
||||
- name: Restart Barbican Services
|
||||
service:
|
||||
name: "{{ item }}"
|
||||
name: "{{ barbican_uwsgi_program_name }}"
|
||||
state: "restarted"
|
||||
with_items:
|
||||
- "{{ barbican_uwsgi_program_name }}"
|
||||
|
||||
- name: Flush handlers
|
||||
meta: flush_handlers
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
until: ensure_barbican_roles |success
|
||||
retries: 5
|
||||
delay: 2
|
||||
with_items: barbican_service_role_names
|
||||
with_items: "{{ barbican_service_role_names }}"
|
||||
tags:
|
||||
- barbican-api-setup
|
||||
- barbican-role-setup
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
- name: Register secret location
|
||||
set_fact:
|
||||
secret_ref: "{{ item.split('|')[2] }}"
|
||||
with_items: barbican_secret_store.stdout_lines
|
||||
with_items: "{{ barbican_secret_store.stdout_lines }}"
|
||||
when: item.find('Secret href') != -1
|
||||
- name: Retrieve test secret
|
||||
shell: |
|
||||
|
|
Loading…
Reference in New Issue