aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/roles/linux_status/handlers/main.yml
blob: 9c8b01984ad4d3f7c509aface5e1e7db0e245674 (plain) (tree)
1
2
3
4
5
6
7
8




                                 


                                  






                                                                                                                          

                      
                                 
- name: Collect service facts
  ansible.builtin.service_facts:
  listen: linux_status_configured

- name: Reload systemd daemon
  become: true
  ansible.builtin.systemd_service:
    daemon_reload: true
  listen: linux_status_configured

- name: Restart linux-status service
  become: true
  when: |
    'linux-status.service' in ansible_facts.services and ansible_facts.services['linux-status.service'].state == 'running'
  ansible.builtin.systemd_service:
    name: linux-status
    state: restarted
  listen: linux_status_configured