dnf-automatic: Change the way enabling dnf-automatic detects changes.
For some reason on some hosts it creates the wants in basic target and in others multi-user target, so the creates won't work on all machines. Instead we just run it all the time and check the output to see if it did something or not. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
8830d2ad1a
commit
82c3fba9b8
1 changed files with 2 additions and 2 deletions
|
@ -44,8 +44,8 @@
|
|||
- name: enable and start dnf-automatic f26+
|
||||
command: systemctl enable dnf-automatic-install.timer
|
||||
when: ansible_distribution_major_version|int >= 26
|
||||
args:
|
||||
creates: /etc/systemd/system/multi-user.target.wants/dnf-automatic-install.timer
|
||||
register: dnf-automatic-enable
|
||||
changed_when: "'Created symlink ' in dnf-automatic-enable.stdout"
|
||||
tags:
|
||||
- config
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue