aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/roles/systemd_depend_iface/handlers/main.yml
blob: 2782200e4f88ac9f22e4fda2e09588cb6a6cb6b8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                                                                              
- 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 }}"