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