pull/83192/head
Brian Coca 1 month ago
parent 2f480effd4
commit 8013c73523

@ -49,7 +49,7 @@ EXAMPLES = r'''
- name: show only existing systemd services
debug: msg={{existing_systemd_services}}
vars:
existing_systemd_services: '{{ ansible_facts['services'] | selectattr('status', 'defined') | rejectattr('status', 'equalto', 'not-found') }}'
existing_systemd_services: "{{ ansible_facts['services'] | selectattr('status', 'defined') | rejectattr('status', 'equalto', 'not-found') }}"
- name: restart systemd service if it exists
service:

Loading…
Cancel
Save