blob: 2782200e4f88ac9f22e4fda2e09588cb6a6cb6b8 (
plain) (
tree)
|
|
- name: Reload systemd daemon
become: true
ansible.builtin.systemd_service:
daemon_reload: true
listen: systemd_depend_iface_restart
- name: Restart systemd services
become: true
ansible.builtin.systemd_service:
name: '{{ item }}'
state: restarted
listen: systemd_depend_iface_restart
loop: "{{ systemd_depend_iface_result.results | selectattr('changed', 'equalto', true) | map(attribute='service') | list }}"
|