--- - name: Start gemserv hosts: gemserv tasks: - name: Elevate permissions ansible.builtin.sudo: - name: Stop gemserv ansible.builtin.command: sv stop gemserv