diff --git a/gemserv/stop_gemserv.yml b/gemserv/stop_gemserv.yml index 4658203..5cffdeb 100644 --- a/gemserv/stop_gemserv.yml +++ b/gemserv/stop_gemserv.yml @@ -2,7 +2,7 @@ - name: Start gemserv hosts: gemserv tasks: - - name: Start gemserv - ansible.builtin.command: whoami - sudo: true - sudo_user: root + - name: Elevate permissions + ansible.builtin.sudo: + - name: Stop gemserv + ansible.builtin.command: sv stop gemserv