Unclear. I don't have one of these systems around to debug with.
Possibly play around with connection_plugins/ssh.py and you may be able to
learn a bit more.
Sorry for deferring this, but Raspberry Pis -- despite being amazingly
awesome - really aren't in our test matrix :)
I would like to see
I have tried with
sudo: no
And the output is:
failed: [192.168.1.104] => {"failed": true, "parsed": false}
invalid output was: Kille
I am checking output with -v, -vvv, - but anything show enough
information, any recommended flag?
El martes, 15 de julio de 2014 19:38:40 UTC+2, Michael DeH
While it may not be a factor, the latest version of Ansible is 1.6.6 -
please check with the latest if you don't mind, but I suspect it's the
sudoers response from Raspbian (or the SSH prompts) that is the problem,
given it's a bit non-standish.
Previously we did some work to deal with dropbear, f
Ansible 1.6
Host machine: Ubuntu 14.04 LTS, kernel: 3.13.0-24-generic.
paco@paco-K53SD:~$ lsb_release -a
No LSB modules are available.
Distributor ID:Ubuntu
Description:Ubuntu 14.04 LTS
Release:14.04
Codename:trusty
Server machine: Raspbian
pi@raspberrypi /etc/owncloud $ lsb_re
Right, you're not going to get that particular error because of shell vs
command. Though you should use shell for the shell operations.
What versions of Ansible are you running, what OSes are you connecting from
and to?
Anything particularly interesting about the sudoers configuration?
On Tue
I continued following the same issue:
<192.168.1.104> ESTABLISH CONNECTION FOR USER: pi
<192.168.1.104> REMOTE_MODULE command yes | bundle exec rake gitlab:setup
RAILS_ENV=production chdir=/home/gitlab/hd/gitlab #USE_SHELL
<192.168.1.104> EXEC ['ssh', '-C', '-tt', '-vvv', '-o',
'ControlMaster=au
You'll need to use the "shell:" version of the module for the piping of
commands:
- name: execute script
shell: "yes | bash /tmp/a.sh"
On Mon, Jul 14, 2014 at 9:05 AM, Paco p wrote:
> Hello, I need interact with a script, so I have a script as(/tmp/a.sh):
>
>
> read var
>
> if [[ $var ==
Hello, I need interact with a script, so I have a script as(/tmp/a.sh):
read var
if [[ $var == "y" ]];
then
exit 0;
else
exit 1;
fi
And in my playbook
- name: execute script
command: "yes | bash /tmp/a.sh"
And I am getting the following:
failed: [192.168.1.104] => {"failed": true,