From: Andrew Schoen Date: Tue, 23 Jun 2015 21:07:46 +0000 (-0500) Subject: testnode: fixes a bug keeping apt repos from being added X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F57%2Fhead;p=ceph-cm-ansible.git testnode: fixes a bug keeping apt repos from being added I needed to cast ansible_distribution_major_version to an int for the comparsion to work. Signed-off-by: Andrew Schoen --- diff --git a/roles/testnode/tasks/apt_systems.yml b/roles/testnode/tasks/apt_systems.yml index 02fd62e5..fb8235b1 100644 --- a/roles/testnode/tasks/apt_systems.yml +++ b/roles/testnode/tasks/apt_systems.yml @@ -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