Hi,
I am using Ansible 1.9 and during the execution on playbook I am getting below error message:
PLAY [Setup mysql] ************************************************************
TASK: [installing_galera | Fix expire_logs_days value in my.cnf] *******************
<192.168.0.43> ESTABLISH CONNECTION FOR USER: root
<192.168.0.43> REMOTE_MODULE lineinfile insertbefore=wsrep_sst_receive_address line=expire_logs_days=2 dest=/etc/mysql/my.cnf
<192.168.0.43> EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=1800s -o TCPKeepAlive=yes -o ServerAliveInterval=5 -o ServerAliveCountMax=15 -o ControlPath=“/root/.ansible/cp/ansible-ssh-%h-%p-%r” -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=120 192.168.0.43 /bin/sh -c ‘sudo -k && sudo -H -S -p “[sudo via ansible, key=grnlctfqtlwrwgzqhmhhzybjbjaomwut] password: " -u root /bin/sh -c '”’“‘echo BECOME-SUCCESS-grnlctfqtlwrwgzqhmhhzybjbjaomwut; LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python’”‘"’’
EXEC previous known host file not found for 192.168.0.43
fatal: [cic-1] => Traceback (most recent call last):
File “/usr/lib/python2.7/site-packages/ansible/runner/init.py”, line 586, in _executor
exec_rc = self._executor_internal(host, new_stdin)
File “/usr/lib/python2.7/site-packages/ansible/runner/init.py”, line 789, in _executor_internal
return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)
File “/usr/lib/python2.7/site-packages/ansible/runner/init.py”, line 1036, in _executor_internal_inner
result = handler.run(conn, tmp, module_name, module_args, inject, complex_args)
File “/usr/lib/python2.7/site-packages/ansible/runner/action_plugins/normal.py”, line 62, in run
return self.runner._execute_module(conn, tmp, module_name, module_args, inject=inject, complex_args=complex_args)
File “/usr/lib/python2.7/site-packages/ansible/runner/init.py”, line 551, in _execute_module
res = self._low_level_exec_command(conn, cmd, tmp, become=self.become, sudoable=sudoable, in_data=in_data)
File “/usr/lib/python2.7/site-packages/ansible/runner/init.py”, line 1174, in _low_level_exec_command
in_data=in_data)
File “/usr/lib/python2.7/site-packages/ansible/runner/connection_plugins/ssh.py”, line 362, in exec_command
(returncode, stdout, stderr) = self._communicate(p, stdin, in_data, sudoable=sudoable, prompt=prompt)
File “/usr/lib/python2.7/site-packages/ansible/runner/connection_plugins/ssh.py”, line 162, in _communicate
rfd, wfd, efd = select.select(rpipes, , rpipes, 1)
ValueError: filedescriptor out of range in select()
Can anyone please help in fixing this?
BR,
Varun