dnf-automatic: Add a check to make sure there is any stdout before looking at it.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2018-12-30 18:38:58 +00:00
parent 82c3fba9b8
commit fcd5b3da20

View file

@ -45,7 +45,7 @@
command: systemctl enable dnf-automatic-install.timer
when: ansible_distribution_major_version|int >= 26
register: dnf-automatic-enable
changed_when: "'Created symlink ' in dnf-automatic-enable.stdout"
changed_when: dnf-automatic-enable.stdout is defined and "'Created symlink ' in dnf-automatic-enable.stdout"
tags:
- config