From f6786b02cfdd96de04d36de25e7c7ce51d25469a Mon Sep 17 00:00:00 2001 From: core Date: Wed, 21 Jun 2023 20:03:16 -0400 Subject: [PATCH] try fix 8 --- gemserv/stop_gemserv.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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