diff --git a/tasks/yumrepos.yml b/tasks/yumrepos.yml index 05044e3875..50b06448e1 100644 --- a/tasks/yumrepos.yml +++ b/tasks/yumrepos.yml @@ -5,7 +5,7 @@ with_items: - epel6.repo - rhel6.repo - only_if: '$is_rhel' + when: is_rhel == 'True' tags: - config - packages @@ -16,7 +16,7 @@ - fedora.repo - fedora-updates.repo - fedora-updates-testing.repo - only_if: "$is_fedora and '${ansible_architecture}'.startswith('x86_64')" + when: is_fedora and {{ ansible_architecture }}.startswith('x86_64') tags: - config - packages @@ -27,7 +27,7 @@ - fedora.repo - fedora-updates.repo - fedora-updates-testing.repo - only_if: "$is_fedora and '${ansible_architecture}'.startswith('armv7l')" + when: is_fedora and {{ ansible_architecture }}.startswith('armv7l') tags: - config - packages