I was using ansible-1.5-1

I updated to ansible (from epel-testing) 

Version     : 1.5.3
Release     : 1.el6

Error still occurs.


Traceback (most recent call last):
  File "/usr/bin/ansible", line 226, in <module>
    (runner, results) = cli.run(options, args)
  File "/usr/bin/ansible", line 200, in run
    results = runner.run()
  File "/usr/lib/python2.6/site-packages/ansible/runner/__init__.py", line 
1184, in run
    results = self._parallel_exec(hosts)
  File "/usr/lib/python2.6/site-packages/ansible/runner/__init__.py", line 
1095, in _parallel_exec
    new_stdin = os.fdopen(os.dup(sys.stdin.fileno()))
OSError: [Errno 22] Invalid argument


If you want I can create a bug on github.

Op maandag 24 maart 2014 16:21:21 UTC+1 schreef Michael DeHaan:
>
> What version of ansible are you using?
>
> We fixed some dup issues previously for people calling Ansible from 
> various programs, so am curious.
>
> (If this still occurs in 1.5.3 or later, please file a bug on github so we 
> can take care of it)
>
>
>
> On Mon, Mar 24, 2014 at 7:20 AM, Lee Van Steerthem 
> <[email protected]<javascript:>
> > wrote:
>
>> Hello,
>>
>> I want to use the command "nohup" together with ansible or 
>> ansible-playbook command so that the process would be detached form the 
>> current session.
>>
>> Unfortunately it doens't work (I think it has problems with the stdout).
>>
>>
>> w/o nohup :
>>
>> *$ ansible -i hosts.rackspace -m ping proxy*
>> ukproxy | success >> {
>>     "changed": false,
>>     "ping": "pong"
>> }
>>
>>
>>
>> with nohup:
>>
>> *$ nohup ansible -i hosts.rackspace -m ping proxy*
>> nohup: ignoring input and appending output to `nohup.out'
>>
>> *$ cat nohup.out*
>> Traceback (most recent call last):
>>   File "/usr/bin/ansible", line 226, in <module>
>>     (runner, results) = cli.run(options, args)
>>   File "/usr/bin/ansible", line 200, in run
>>     results = runner.run()
>>   File "/usr/lib/python2.6/site-packages/ansible/runner/__init__.py", 
>> line 1181, in run
>>     results = self._parallel_exec(hosts)
>>   File "/usr/lib/python2.6/site-packages/ansible/runner/__init__.py", 
>> line 1092, in _parallel_exec
>>     new_stdin = os.fdopen(os.dup(sys.stdin.fileno()))
>> OSError: [Errno 22] Invalid argument
>>
>>
>>
>> Is there a way to solve this or maybe a workaround ?
>>
>> Regards,
>> Lee
>>
>>
>>  -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/aa6bed3f-e24c-4613-ae1a-fc04eecca302%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/aa6bed3f-e24c-4613-ae1a-fc04eecca302%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f9d29540-cc23-4d55-8928-e62cd263d516%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to