Use ansible version to perform the version compare
This commit is contained in:
parent
adc37067c7
commit
cf0ccf3489
@ -32,7 +32,7 @@
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
- ansible_distribution == 'Fedora'
|
||||
- ansible_distribution_major_version >= 21
|
||||
- ansible_distribution_major_version is version('21', '>=')
|
||||
package:
|
||||
name:
|
||||
- 'dnf-automatic'
|
||||
@ -44,7 +44,7 @@
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
- ansible_distribution == 'Fedora'
|
||||
- ansible_distribution_major_version >= 21
|
||||
- ansible_distribution_major_version is version('21', '>=')
|
||||
service:
|
||||
enabled: 'yes'
|
||||
name: 'dnf-automatic-install.timer'
|
||||
|
Loading…
x
Reference in New Issue
Block a user