check if rmlpr.timer is installed before disabling
This commit is contained in:
parent
50e88b0b65
commit
f7c7eb1901
1 changed files with 6 additions and 1 deletions
|
@ -154,11 +154,16 @@
|
|||
><not><or><user>root</user><user>ansible</user><user>Debian-gdm</user><user>sddm</user><user>{{ localuser }}</user></or></not>
|
||||
</volume>
|
||||
state: absent
|
||||
|
||||
|
||||
- name: check if rmlpr.timer is installed
|
||||
stat: path=/etc/systemd/system/rmlpr.timer
|
||||
register: rmlpr
|
||||
|
||||
- name: disable rmlpr.timer
|
||||
systemd:
|
||||
name: rmlpr.timer
|
||||
enabled: false
|
||||
when: rmlpr.stat.exists
|
||||
|
||||
- name: Remove deprecated files and directories
|
||||
file:
|
||||
|
|
Loading…
Add table
Reference in a new issue