]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
use proper syntax for expanding variables 468/head
authorBen England <bengland@redhat.com>
Fri, 8 Jan 2016 13:54:00 +0000 (08:54 -0500)
committerBen England <bengland@redhat.com>
Fri, 8 Jan 2016 13:54:00 +0000 (08:54 -0500)
roles/ceph-common/tasks/checks/check_system.yml

index f12c930ef543284c04d45d8715f7e1166db004ef..1cedfdbdb890a69e2da25070d084528650d6c309 100644 (file)
@@ -2,17 +2,17 @@
 - name: fail on unsupported system
   fail:
     msg: "System not supported {{ ansible_system }}"
-  when: "ansible_system not in ['Linux']"
+  when: "'{{ ansible_system }}' not in ['Linux']"
 
 - name: fail on unsupported architecture
   fail:
     msg: "Architecture not supported {{ ansible_architecture }}"
-  when: "ansible_architecture not in ['x86_64']"
+  when: "'{{ ansible_architecture }}' not in ['x86_64']"
 
 - name: fail on unsupported distribution
   fail:
     msg: "Distribution not supported {{ ansible_os_family }}"
-  when: "ansible_os_family not in ['Debian', 'RedHat']"
+  when: "'{{ ansible_os_family }}' not in ['Debian', 'RedHat']"
 
 - name: fail on unsupported distribution for red hat storage
   fail: