fix: reorder handler for right execution order

This commit is contained in:
Leo Drachenfeuer 2023-04-27 10:57:30 +00:00
parent fc26ec4745
commit f6e152c313
Signed by: dragonleo
GPG Key ID: A8338FC081137CF0

View File

@ -1,11 +1,12 @@
--- ---
- name: "Restart Teleport"
ansible.builtin.service:
name: teleport
state: restarted
when: ansible_service_mgr == "systemd"
- name: "Reload systemd" - name: "Reload systemd"
ansible.builtin.systemd: ansible.builtin.systemd:
daemon_reload: true daemon_reload: true
when: ansible_service_mgr == "systemd" when: ansible_service_mgr == "systemd"
- name: "Restart Teleport"
ansible.builtin.service:
name: teleport
state: restarted
failed_when: false
when: ansible_service_mgr == "systemd"