Add Amazon conditonal to RHEL/Centos
This commit is contained in:
parent
5fb65306b7
commit
27c332183d
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user