# Issue with Ansible 1.4.3, user in combination with sudo\_user

**URL:** <https://forum.ansible.com/t/issue-with-ansible-1-4-3-user-in-combination-with-sudo-user/14456>\
**Category:** Ansible Project\
**Tags:** fedora\
**Created:** [January 29, 2014, 9:04pm UTC](https://forum.ansible.com/t/issue-with-ansible-1-4-3-user-in-combination-with-sudo-user/14456 "2014-01-29T21:04:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emmanuel\_Pinault](https://avatars.discourse-cdn.com/v4/letter/e/82dd89/32.png) [@Emmanuel\_Pinault](https://forum.ansible.com/u/Emmanuel_Pinault)\
**Post date:** [January 29, 2014, 9:04pm UTC](https://forum.ansible.com/t/issue-with-ansible-1-4-3-user-in-combination-with-sudo-user/14456/1 "2014-01-29T21:04:54Z")

</div>

I am trying to install git client package on Fedora 18 as a target from OSX.

I am running the following

ansible-playbook -i hosts install.yml -u preseed -K -U preseed -vvv

where the ssh user and the sudo user are the same… Unfortunately… No sudo command is issue and the installation failed. If I don t specify the sudo user, it tries root but then hangs…

See output below when I run with sudo user specified. what am I doing wrong?

TASK: [git-client | Install git client] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

\<192.168.222.131\> ESTABLISH CONNECTION FOR USER: preseed

\<192.168.222.131\> EXEC [‘ssh’, ‘-tt’, ‘-q’, ‘-o’, ‘ControlMaster=auto’, ‘-o’, ‘ControlPersist=60s’, ‘-o’, ‘ControlPath=/Users/Emmanuel/.ansible/cp/ansible-ssh-%h-%p-%r’, ‘-o’, ‘Port=22’, ‘-o’, ‘KbdInteractiveAuthentication=no’, ‘-o’, ‘PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey’, ‘-o’, ‘PasswordAuthentication=no’, ‘-o’, ‘User=preseed’, ‘-o’, ‘ConnectTimeout=10’, ‘192.168.222.131’, “/bin/sh -c ‘mkdir -p /tmp/ansible-1391028001.48-186959529265981 && chmod a+rx /tmp/ansible-1391028001.48-186959529265981 && echo /tmp/ansible-1391028001.48-186959529265981’”]

\<192.168.222.131\> REMOTE\_MODULE yum pkg=git state=latest

\<192.168.222.131\> PUT /var/folders/p3/05g7th9x4vzf\_198t01mdtcr0000gp/T/tmpCDxr5c TO /tmp/ansible-1391028001.48-186959529265981/yum

\<192.168.222.131\> EXEC [‘ssh’, ‘-tt’, ‘-q’, ‘-o’, ‘ControlMaster=auto’, ‘-o’, ‘ControlPersist=60s’, ‘-o’, ‘ControlPath=/Users/Emmanuel/.ansible/cp/ansible-ssh-%h-%p-%r’, ‘-o’, ‘Port=22’, ‘-o’, ‘KbdInteractiveAuthentication=no’, ‘-o’, ‘PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey’, ‘-o’, ‘PasswordAuthentication=no’, ‘-o’, ‘User=preseed’, ‘-o’, ‘ConnectTimeout=10’, ‘192.168.222.131’, “/bin/sh -c ‘chmod a+r /tmp/ansible-1391028001.48-186959529265981/yum’”]

\<192.168.222.131\> EXEC [‘ssh’, ‘-tt’, ‘-q’, ‘-o’, ‘ControlMaster=auto’, ‘-o’, ‘ControlPersist=60s’, ‘-o’, ‘ControlPath=/Users/Emmanuel/.ansible/cp/ansible-ssh-%h-%p-%r’, ‘-o’, ‘Port=22’, ‘-o’, ‘KbdInteractiveAuthentication=no’, ‘-o’, ‘PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey’, ‘-o’, ‘PasswordAuthentication=no’, ‘-o’, ‘User=preseed’, ‘-o’, ‘ConnectTimeout=10’, ‘192.168.222.131’, “/bin/sh -c ‘/usr/bin/python -tt /tmp/ansible-1391028001.48-186959529265981/yum’”]

\<192.168.222.131\> EXEC [‘ssh’, ‘-tt’, ‘-q’, ‘-o’, ‘ControlMaster=auto’, ‘-o’, ‘ControlPersist=60s’, ‘-o’, ‘ControlPath=/Users/Emmanuel/.ansible/cp/ansible-ssh-%h-%p-%r’, ‘-o’, ‘Port=22’, ‘-o’, ‘KbdInteractiveAuthentication=no’, ‘-o’, ‘PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey’, ‘-o’, ‘PasswordAuthentication=no’, ‘-o’, ‘User=preseed’, ‘-o’, ‘ConnectTimeout=10’, ‘192.168.222.131’, “/bin/sh -c ‘rm -rf /tmp/ansible-1391028001.48-186959529265981/ \>/dev/null 2\>&1’”]

failed: [192.168.222.131] =\> {“changed”: false, “failed”: true, “item”: “”, “rc”: 1, “results”: [“Loaded plugins: langpacks, presto\n”]}

msg: You need to be root to perform this command.
