Fix deprecation warning for ceph_client role.

Bare variables in with_ loops should instead use the “{{ var }}” syntax,
which helps eliminate ambiguity.
https://docs.ansible.com/ansible/porting_guide_2.0.html#deprecated

Change-Id: I6d54aca88c6f2bf0e60ee6cc89d5f06fb8d680c1
This commit is contained in:
Marc Gariepy 2016-08-10 09:46:23 -04:00 committed by Jesse Pretorius (odyssey4me)
parent e0a928c9a9
commit b3f553e339
3 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@
state: restarted
pattern: "{{ item.1 }}"
with_subelements:
- ceph_components
- "{{ ceph_components }}"
- service
when: inventory_hostname in groups[item.0.component]
failed_when: false

View File

@ -24,7 +24,7 @@
# output to put in a keyring; ceph admin should have already created the user
shell: ceph auth get client.{{ item.1 }} >/dev/null && ceph auth get-or-create client.{{ item.1 }}
with_subelements:
- ceph_components
- "{{ ceph_components }}"
- client
when: >
inventory_hostname in groups[item.0.component] and

View File

@ -39,7 +39,7 @@
retries: 5
delay: 2
with_subelements:
- ceph_components
- "{{ ceph_components }}"
- package
when: inventory_hostname in groups[item.0.component]
notify: