Uanble to install couchdb using ansible.

Hi all,

I’m trying to install couchdb using ansible but it fails mid way. I get the below error

TASK [Stop CouchDB] ****************************************************************************************************************************
fatal: [couchdbXX.XXX.com]: FAILED! => {“changed”: false, “failed”: true, “msg”: “Could not find the requested service couchdb: host”}
…ignoring

TASK [Kill CouchDB] ****************************************************************************************************************************
fatal: [couchdbXX.XXX.com]: FAILED! => {“changed”: true, “cmd”: “pkill -9 -u id -u couchdb”, “delta”: “0:00:00.002576”, “end”: “2017-10-05 15:40:15.816317”, “failed”: true, “rc”: 1, “start”: “2017-10-05 15:40:15.813741”, “stderr”: “”, “stderr_lines”: , “stdout”: “”, “stdout_lines”: }
…ignoring

TASK [Set the Soft ulimit for CouchDB user] ****************************************************************************************************
fatal: [couchdbXX.XXX.com]: FAILED! => {“changed”: false, “failed”: true, “module_stderr”: “Shared connection to couchdbXX.XXX.com closed.\r\n”, “module_stdout”: “sudo: unable to resolve host couchdbXX\r\n\r\nTraceback (most recent call last):\r\n File "/tmp/ansible_nnos08w2/ansible_module_pam_limits.py", line 292, in \r\n main()\r\n File "/tmp/ansible_nnos08w2/ansible_module_pam_limits.py", line 185, in main\r\n nf.write(line)\r\n File "/usr/lib/python3.5/tempfile.py", line 622, in func_wrapper\r\n return func(*args, **kwargs)\r\nTypeError: a bytes-like object is required, not ‘str’\r\n”, “msg”: “MODULE FAILURE”, “rc”: 0}
to retry, use: --limit @/etc/ansible/playbooks/install-couchdbXX_.retry

PLAY RECAP *************************************************************************************************************************************
couchdbXX.XXX.com : ok=69 changed=23 unreachable=0 failed=1

Kindly assist