Ansible 2.0.1 

When I ssh into a Linux server and run:

$ ansible-playbook -vvvvvv build.yml

it runs fine. 

But if I ssh into the Linux server and run:

$ nohup ansible-playbook -vvvvvv build.yml

or

$ ansible-playbook -vvvvvv build.yml > output &

or

$ nohup ansible-playbook -vvvvvv build.yml > nohup.out

or

$ nohup ansible-playbook -vvvvvv build.yml > nohup.out 2>&1 &


it always fails on this task:

- name: wait for something to happen
  pause: seconds=15

Like this:

TASK [wait for something to happen] 
**************************************************
task path: /build.yml:94
Pausing for 15 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
An exception occurred during task execution. The full traceback is:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/ansible/executor/
task_executor.py", line 120, in run
    res = self._execute()
  File "/usr/local/lib/python2.7/site-packages/ansible/executor/
task_executor.py", line 418, in _execute
    result = self._handler.run(task_vars=variables)
  File "/usr/local/lib/python2.7/site-packages/ansible/plugins/action/pause.
py", line 123, in run
    fd = self._connection._new_stdin.fileno()
ValueError: I/O operation on closed file
fatal: [localhost]: FAILED! => {"failed": true, "msg": "Unexpected failure 
during module execution.", "stdout": ""}

I'm pretty sure it has something to do with STDOUT not being available but 
I'm not sure of the workaround. Anyone
have a suggestion?

===

-- 
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/d71a02a8-a2cd-42e1-ac93-696016e3fea9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to