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>
|
</volume>
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
|
- name: check if rmlpr.timer is installed
|
||||||
|
stat: path=/etc/systemd/system/rmlpr.timer
|
||||||
|
register: rmlpr
|
||||||
|
|
||||||
- name: disable rmlpr.timer
|
- name: disable rmlpr.timer
|
||||||
systemd:
|
systemd:
|
||||||
name: rmlpr.timer
|
name: rmlpr.timer
|
||||||
enabled: false
|
enabled: false
|
||||||
|
when: rmlpr.stat.exists
|
||||||
|
|
||||||
- name: Remove deprecated files and directories
|
- name: Remove deprecated files and directories
|
||||||
file:
|
file:
|
||||||
|
|
Loading…
Add table
Reference in a new issue