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

View File

@ -1,6 +1,6 @@
--- ---
- name: Check for existing Glean systemd services - 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 register: glean_services
changed_when: False changed_when: False
@ -10,6 +10,7 @@
state: stopped state: stopped
enabled: no enabled: no
with_items: "{{ glean_services.stdout_lines }}" with_items: "{{ glean_services.stdout_lines }}"
become: True
- name: Find interface configuration files created by Glean - name: Find interface configuration files created by Glean
find: find: