diff --git a/gemserv/stop_gemserv.yml b/gemserv/stop_gemserv.yml index 5cffdeb..10c1803 100644 --- a/gemserv/stop_gemserv.yml +++ b/gemserv/stop_gemserv.yml @@ -2,7 +2,8 @@ - name: Start gemserv hosts: gemserv tasks: - - name: Elevate permissions - ansible.builtin.sudo: - name: Stop gemserv ansible.builtin.command: sv stop gemserv + become: true + become_method: sudo + become_user: root