aeb8685
1 2 3 4 5 6
- name: 'Restart {{ service }}' become: true ansible.builtin.systemd_service: name: '{{ service }}' state: restarted when: service in ansible_facts.services