From 5045c8ad4d0b72d98f35b4b6a27505d00cf3db18 Mon Sep 17 00:00:00 2001
From: Nicolas KAROLAK <nicolas@karolak.fr>
Date: Tue, 14 Apr 2020 12:34:24 +0000
Subject: [PATCH] better syntax

---
 roles/ceph-rbd/tasks/main.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/roles/ceph-rbd/tasks/main.yml b/roles/ceph-rbd/tasks/main.yml
index 08498e83..fa5b17fe 100644
--- a/roles/ceph-rbd/tasks/main.yml
+++ b/roles/ceph-rbd/tasks/main.yml
@@ -26,10 +26,10 @@
 
 - name: create rbd image
   when:
-    - ceph_check_image.changed
+    - ceph_check_image is changed
     - inventory_hostname == play_hosts[0]
   command:
-    cmd: rbd -n client.{{ ceph_login }} create {{ ceph_pool_name }}/{{ ceph_image_name }} {% for param in ceph_parameters %}{{ param }} {% endfor %}
+    cmd: rbd -n client.{{ ceph_login }} create {{ ceph_pool_name }}/{{ ceph_image_name }} {{ ceph_parameters | join(' ') }}
 
 - name: map rbd image to device
   command:
-- 
GitLab