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
|
@ -155,10 +155,15 @@
|
|||
</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