blob: 207c2039ec32076eb2e49a02b97d67bc7d7a0cd3 (
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_mount_restart
- name: Collect installed services
ansible.builtin.service_facts:
listen: systemd_depend_mount_restart
- name: Restart systemd services
ansible.builtin.include_tasks: service.yml
listen: systemd_depend_mount_restart
loop: "{{ systemd_depend_mount_result.results | selectattr('changed', 'equalto', true) | map(attribute='service') | list }}"
loop_control:
loop_var: service
|