From b87b07ab8a220faec8d0aeb0cbcfb59508174b27 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Tue, 23 Jun 2015 16:07:46 -0500 Subject: [PATCH] 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 --- roles/testnode/tasks/apt_systems.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/testnode/tasks/apt_systems.yml b/roles/testnode/tasks/apt_systems.yml index 02fd62e..fb8235b 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 -- 2.39.5