I am on server A logged in as user A with sudo permissions. I am attempting 
to run a privileged command on server b as user A. User A on server b also 
has sudo permissions. However I am getting permission errors:


[rhershkow@if21d0002 ansible]$ ansible-playbook example.yml

PLAY [New user is created] 
**************************************************************************************

TASK [Gathering Facts] 
******************************************************************************************
 
ok: [if21d0001]

TASK [User gets created] 
****************************************************************************************
 
fatal: [if21d0001]: FAILED! => {"changed": false, "msg": "useradd: 
Permission denied.\nuseradd: cannot lock /etc/passwd; try again later.\n", 
"name": "test", "rc": 1} to retry, use: --limit 
@/home/rhershkow/demo/ansible/example.retry

PLAY RECAP 
******************************************************************************************************
 
if21d0001 : ok=1 changed=0 unreachable=0 failed=1

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8429193f-99da-4b98-a831-827edf3046a7n%40googlegroups.com.

Reply via email to