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