blob: 813a65157cf5855e9d48866e4ca73408dd6b8856 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
- name: Reload systemd daemon
become: true
ansible.builtin.systemd_service:
daemon_reload: true
listen: systemd_depend_iface_restart
- name: Collect installed services
ansible.builtin.service_facts:
listen: systemd_depend_iface_restart
- name: Restart systemd services
ansible.builtin.include_tasks: service.yml
listen: systemd_depend_iface_restart
loop: "{{ systemd_depend_iface_result.results | selectattr('changed', 'equalto', true) | map(attribute='service') | list }}"
loop_control:
loop_var: service
|