From b3f553e3397172cfefc588f817f1dad09695add8 Mon Sep 17 00:00:00 2001 From: Marc Gariepy Date: Wed, 10 Aug 2016 09:46:23 -0400 Subject: [PATCH] Fix deprecation warning for ceph_client role. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- handlers/main.yml | 2 +- tasks/ceph_auth.yml | 2 +- tasks/ceph_install_apt.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index 326cfd96..8e31053 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -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 diff --git a/tasks/ceph_auth.yml b/tasks/ceph_auth.yml index b85c5e0..a291b07 100644 --- a/tasks/ceph_auth.yml +++ b/tasks/ceph_auth.yml @@ -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 diff --git a/tasks/ceph_install_apt.yml b/tasks/ceph_install_apt.yml index 3fadbb9..ee7ea89 100644 --- a/tasks/ceph_install_apt.yml +++ b/tasks/ceph_install_apt.yml @@ -39,7 +39,7 @@ retries: 5 delay: 2 with_subelements: - - ceph_components + - "{{ ceph_components }}" - package when: inventory_hostname in groups[item.0.component] notify: