From c8cf80e2814510790687487b46c1c905404009a1 Mon Sep 17 00:00:00 2001 From: alecsandruchirosca Date: Thu, 2 May 2024 21:33:35 +0300 Subject: [PATCH] become taks --- create_deployment_user.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/create_deployment_user.yml b/create_deployment_user.yml index f4eccd1..7632e89 100644 --- a/create_deployment_user.yml +++ b/create_deployment_user.yml @@ -1,12 +1,10 @@ - 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 - + become: yes user: name: ansible # Username groups: sudo