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:
Kevin Fenzi 2019-04-06 21:56:33 +00:00
parent 1d9890e102
commit 43c318a288

View file

@ -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