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:
parent
4dad6177ec
commit
0d1c6ecd40
@ -18,7 +18,7 @@
|
|||||||
state: restarted
|
state: restarted
|
||||||
pattern: "{{ item.1 }}"
|
pattern: "{{ item.1 }}"
|
||||||
with_subelements:
|
with_subelements:
|
||||||
- ceph_components
|
- "{{ ceph_components }}"
|
||||||
- service
|
- service
|
||||||
when: inventory_hostname in groups[item.0.component]
|
when: inventory_hostname in groups[item.0.component]
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
# output to put in a keyring; ceph admin should have already created the user
|
# 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 }}
|
shell: ceph auth get client.{{ item.1 }} >/dev/null && ceph auth get-or-create client.{{ item.1 }}
|
||||||
with_subelements:
|
with_subelements:
|
||||||
- ceph_components
|
- "{{ ceph_components }}"
|
||||||
- client
|
- client
|
||||||
when: >
|
when: >
|
||||||
inventory_hostname in groups[item.0.component] and
|
inventory_hostname in groups[item.0.component] and
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
retries: 5
|
retries: 5
|
||||||
delay: 2
|
delay: 2
|
||||||
with_subelements:
|
with_subelements:
|
||||||
- ceph_components
|
- "{{ ceph_components }}"
|
||||||
- package
|
- package
|
||||||
when: inventory_hostname in groups[item.0.component]
|
when: inventory_hostname in groups[item.0.component]
|
||||||
notify:
|
notify:
|
||||||
|
Loading…
Reference in New Issue
Block a user