- name: Restart Hermes dashboard community.general.launchd: name: "{{ hermes_dashboard_label }}" state: restarted # Nothing to restart in a dry run (on the first deploy the plist isn't there). when: not ansible_check_mode # Lets running turns finish first (unlike launchctl kickstart -k). - name: Restart Hermes gateway ansible.builtin.command: argv: ["{{ hermes_cli }}", gateway, restart] when: not ansible_check_mode