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:
Travis Truman 2016-06-15 12:46:36 -04:00
parent 04a12c6b31
commit 271d642148
5 changed files with 5 additions and 7 deletions

View File

@ -29,4 +29,4 @@
until: install_barbican_apt_packages |success
retries: 5
delay: 2
with_items: barbican_apt_packages
with_items: "{{ barbican_apt_packages }}"

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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: |