mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-25 02:50:15 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user