fix conditional
This commit is contained in:
parent
def29b08c7
commit
4f3501db0e
1 changed files with 3 additions and 3 deletions
|
@ -43,7 +43,7 @@
|
|||
|
||||
- name: enable and start dnf-automatic f26+
|
||||
command: systemctl enable dnf-automatic-install.timer
|
||||
when: ansible_distribution_major_version|int < 26
|
||||
when: ansible_distribution_major_version|int > 26
|
||||
args:
|
||||
creates: /etc/systemd/system/basic.target.wants/dnf-automatic-install.timer
|
||||
tags:
|
||||
|
@ -55,10 +55,10 @@
|
|||
check_mode: no
|
||||
changed_when: 1 != 1
|
||||
ignore_errors: true
|
||||
when: ansible_distribution_major_version|int < 26
|
||||
when: ansible_distribution_major_version|int > 26
|
||||
|
||||
- name: start dnf-automatic-install.timer if it is not active
|
||||
command: systemctl start dnf-automatic-install.timer
|
||||
when: automaticative|failed and ansible_distribution_major_version|int < 26
|
||||
when: automaticative|failed and ansible_distribution_major_version|int > 26
|
||||
|
||||
when: ansible_pkg_mgr == 'dnf'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue