Add Amazon conditonal to RHEL/Centos

This commit is contained in:
Jose M 2019-11-05 16:51:41 +01:00
parent 5fb65306b7
commit 27c332183d

View File

@ -8,7 +8,7 @@
gpgcheck: true gpgcheck: true
changed_when: false changed_when: false
when: when:
- (ansible_facts['os_family']|lower == 'redhat') - (ansible_facts['os_family']|lower == 'redhat') and (ansible_distribution|lower != 'amazon')
- (ansible_distribution_major_version|int <= 5) - (ansible_distribution_major_version|int <= 5)
register: repo_v5_installed register: repo_v5_installed