Small fixes for disable-glean role

Don't stop glean services which are not loaded.
This commit is contained in:
Mark Goddard 2017-05-29 16:55:54 +01:00
parent 19e5d27984
commit 9e858dc55b
1 changed files with 2 additions and 1 deletions

View File

@ -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: