dnf-automatic: stdout seems to always be defined, even if empty. Switch to looking at the return code.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
1d9890e102
commit
43c318a288
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@
|
|||
command: systemctl enable dnf-automatic-install.timer
|
||||
when: ansible_distribution_major_version|int >= 26
|
||||
register: dnfautomaticenable
|
||||
changed_when: dnfautomaticenable.stdout is defined
|
||||
changed_when: dnfautomaticenable.rc != 0
|
||||
tags:
|
||||
- config
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue