From ce89504030a92d6f6fdea011cdcd323c1ee7a0fe Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Thu, 17 Jan 2019 21:49:23 +0000 Subject: [PATCH] Revert "yum-repos: make the distro versions all cast to int, might be confusing this rhel8b deploy" This reverts commit 7693c96b6b3a893e9c2e934be8a529124c12b8ea. --- tasks/yumrepos.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/yumrepos.yml b/tasks/yumrepos.yml index 2c9122010c..2ea6ab38db 100644 --- a/tasks/yumrepos.yml +++ b/tasks/yumrepos.yml @@ -81,7 +81,7 @@ - name: add aarch64 server rpms repo copy: src="{{ files }}/common/rhel-7-aarch64-server-rpms.repo" dest="/etc/yum.repos.d/rhel-7-aarch64-server-rpms.repo" - when: (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and inventory_hostname.startswith('aarch64-c') and ansible_distribution_major_version|int = 7 + when: (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and inventory_hostname.startswith('aarch64-c') and ansible_distribution_major_version = 7 tags: - config - packages @@ -89,7 +89,7 @@ - name: add aarch64 server rpms repo copy: src="{{ files }}/common/rhel-8-aarch64-server-rpms.repo" dest="/etc/yum.repos.d/rhel-8-aarch64-server-rpms.repo" - when: (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and inventory_hostname.startswith('aarch64-c') and ansible_distribution_major_version|int = 8 + when: (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and inventory_hostname.startswith('aarch64-c') and ansible_distribution_major_version = 8 tags: - config - packages