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:
parent
82c3fba9b8
commit
fcd5b3da20
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: 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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue