Closed
Description
I want to ssh as non-root. This user is in the wheel group and does sudo auth via ssh agent. See http://blather.michaelwlucas.com/archives/1106
I want commands run on the host to be invoked with sudo
I want ssh to the host to be invoked with: ssh -A
At present, I have this:
[plain-instance:tallboy] host = tallboy.example.org user = REDACTED fingerprint = REDACTED [ez-master:tallboy-jailhost] instance = tallboy roles = jails_host sudo = true
/root/.ssh/config contains
Host tallboy.example.org Hostname tallboy.example.org ForwardAgent yes
But:
[root@ansible:/usr/local/etc/bsdploy] # ploy configure tallboy-jailhost PLAY [tallboy-jailhost] ******************************************************* GATHERING FACTS *************************************************************** fatal: [tallboy-jailhost] => Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the remote directory. Consider changing the remote temp path in ansible.cfg to a path rooted in "/tmp". Failed command was: mkdir -p $HOME/.ansible/tmp/ansible-tmp-1424378947.15-112924443990356 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1424378947.15-112924443990356 && echo $HOME/.ansible/tmp/ansible-tmp-1424378947.15-112924443990356, exited with result 1 TASK: [jails_host | bind host sshd to primary ip] ***************************** FATAL: no hosts matched or all hosts have already failed -- aborting [root@ansible:/usr/local/etc/bsdploy] #
Metadata
Metadata
Assignees
Labels
No labels