Small fixes for disable-glean role
Don't stop glean services which are not loaded.
This commit is contained in:
parent
19e5d27984
commit
9e858dc55b
@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: Check for existing Glean systemd services
|
||||
command: systemctl list-units glean*.service --no-legend --no-pager
|
||||
command: systemctl list-units glean*.service --no-legend --no-pager --state=loaded
|
||||
register: glean_services
|
||||
changed_when: False
|
||||
|
||||
@ -10,6 +10,7 @@
|
||||
state: stopped
|
||||
enabled: no
|
||||
with_items: "{{ glean_services.stdout_lines }}"
|
||||
become: True
|
||||
|
||||
- name: Find interface configuration files created by Glean
|
||||
find:
|
||||
|
Loading…
Reference in New Issue
Block a user