From c17ae75c06248f3d796b2163b5c95d4a59666029 Mon Sep 17 00:00:00 2001 From: alecsandruchirosca Date: Thu, 2 May 2024 21:32:23 +0300 Subject: [PATCH] sudo 2 --- create_deployment_user.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/create_deployment_user.yml b/create_deployment_user.yml index 18da22b..f4eccd1 100644 --- a/create_deployment_user.yml +++ b/create_deployment_user.yml @@ -1,11 +1,12 @@ - name: Create required deployment users hosts: all become: yes # Run tasks with root/sudo privileges + sudo: yes # Run tasks with sudo privileges tasks: - name: Create Ansible user become_user: root - sudo: yes + user: name: ansible # Username groups: sudo