How to upgrade to ansible latest version? and how to solve the the following forks issue? Because i am very much struggling this issue?
ansible-playbook ssh.yml --force-handlers --forks=100
PLAY [Transfer and execute a script.] *****************************************
TASK: [Transfer the script] ***************************************************
changed: [dsrv493 → 127.0.0.1]
changed: [dsrv487 → 127.0.0.1]
changed: [dsrv486 → 127.0.0.1]
changed: [dsrv209 → 127.0.0.1]
changed: [dsrv488 → 127.0.0.1]
changed: [dsrv531 → 127.0.0.1]
Process SyncManager-1:
Traceback (most recent call last):
File “/usr/lib/python2.7/multiprocessing/process.py”, line 258, in _bootstrap
self.run()
File “/usr/lib/python2.7/multiprocessing/process.py”, line 114, in run
self._target(*self._args, **self._kwargs)
File “/usr/lib/python2.7/multiprocessing/managers.py”, line 558, in _run_server
server.serve_forever()
File “/usr/lib/python2.7/multiprocessing/managers.py”, line 184, in serve_forever
t.start()
File “/usr/lib/python2.7/threading.py”, line 745, in start
_start_new_thread(self.__bootstrap, ())
error: can’t start new thread
Traceback (most recent call last):
File “/usr/lib/pymodules/python2.7/ansible/runner/init.py”, line 85, in _executor_hook
Process Process-85:
Traceback (most recent call last):
File “/usr/lib/python2.7/multiprocessing/process.py”, line 258, in _bootstrap
Traceback (most recent call last):
File “/usr/bin/ansible-playbook”, line 324, in
self.run()
sys.exit(main(sys.argv[1:]))
File “/usr/bin/ansible-playbook”, line 264, in main
File “/usr/lib/python2.7/multiprocessing/process.py”, line 114, in run
self._target(*self._args, **self._kwargs)
File “/usr/lib/pymodules/python2.7/ansible/runner/init.py”, line 81, in _executor_hook
result_queue.put(return_data)
pb.run()
File “/usr/lib/pymodules/python2.7/ansible/playbook/init.py”, line 348, in run
File “”, line 2, in put
if not self._run_play(play):
File “/usr/lib/pymodules/python2.7/ansible/playbook/init.py”, line 789, in _run_play
File “/usr/lib/python2.7/multiprocessing/managers.py”, line 758, in _callmethod
if not self._run_task(play, task, False):
File “/usr/lib/pymodules/python2.7/ansible/playbook/init.py”, line 497, in _run_task
results = self._run_task_internal(task, include_failed=include_failed)
File “/usr/lib/pymodules/python2.7/ansible/playbook/init.py”, line 439, in _run_task_internal
results = runner.run()
File “/usr/lib/pymodules/python2.7/ansible/runner/init.py”, line 1485, in run
Process Process-86:
while not job_queue.empty():
File “”, line 2, in empty
File “/usr/lib/python2.7/multiprocessing/managers.py”, line 755, in _callmethod
conn.send((self._id, methodname, args, kwds))
results = self._parallel_exec(hosts)
File “/usr/lib/pymodules/python2.7/ansible/runner/init.py”, line 1393, in _parallel_exec
IOError: [Errno 32] Broken pipe
prc.start()
File “/usr/lib/python2.7/multiprocessing/process.py”, line 130, in start
self._connect()
File “/usr/lib/python2.7/multiprocessing/managers.py”, line 742, in _connect
conn = self._Client(self._token.address, authkey=self._authkey)
File “/usr/lib/python2.7/multiprocessing/connection.py”, line 175, in Client
Traceback (most recent call last):
self._popen = Popen(self)
File “/usr/lib/python2.7/multiprocessing/forking.py”, line 121, in init
File “/usr/lib/python2.7/multiprocessing/process.py”, line 258, in _bootstrap
changed: [dsrv449 → 127.0.0.1]
Can you please tell how to solve this issue? Because this makes me lot of issues while running in this 100 servers.