]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
testnode: fixes a bug keeping apt repos from being added 57/head
authorAndrew Schoen <aschoen@redhat.com>
Tue, 23 Jun 2015 21:07:46 +0000 (16:07 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 23 Jun 2015 21:07:46 +0000 (16:07 -0500)
I needed to cast ansible_distribution_major_version to an int for the
comparsion to work.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/testnode/tasks/apt_systems.yml

index 02fd62e5d72f5972326463d1de9d8a8c2e697e3b..fb8235b157caca262d384702aa24bdc51190ee58 100644 (file)
@@ -3,14 +3,14 @@
 # For anything ubuntu < 15.04 or debian <=7 we still do.
 - name: Setup local repo files.
   include: apt/repos.yml
-  when: ansible_distribution_major_version < 15
+  when: ansible_distribution_major_version|int < 15
   tags:
     - repos
 
 - name: Update apt cache.
   apt:
     update_cache: yes
-  when: ansible_distribution_major_version >= 15 and
+  when: ansible_distribution_major_version|int >= 15 and
         ansible_distribution == "Ubuntu"
   tags:
     - repos