Hello

 

it is failing because of the password, to solve this problem please follow 
these steps:

 

Add these lines in ansible.cfg file:

 

[defaults]

sudo_user      = root

ask_pass      = True

 

After saving this file export ask sudo password 

export ANSIBLE_ASK_SUDO_PASS=true




On Tuesday, September 19, 2017 at 12:15:57 PM UTC+5:30, Sreekuttan Sree 
wrote:
>
>
> Hi,
>
> playbook is 
> - hosts: servers
>   remote_user: ubuntu
>   become: yes
>   become_user: root
>   become_method: sudo
>   tasks:
>     - name: Install tmux
>       apt: name=tmux state=present
>
>
> error:fatal: [192.168.80.129]: FAILED! => {"changed": false, "failed": 
> true, "module_stderr": "Shared connection to 192.168.80.129 closed.\r\n", 
> "module_stdout": "sudo: a password is required\r\n", "msg": "MODULE 
> FAILURE", "rc": 1}
>
> Thanks
>
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5a753f47-4b06-4508-a216-0a3c94c1076f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to