IBM-Cloud / ansible-collection-ibm

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs
Mozilla Public License 2.0
70 stars 73 forks source link

Execution hangs #35

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hi,

Maybe you can help me as I can't make it work.

ansible --version
ansible 2.10.4
  config file = None
  configured module search path = ['/Users/wojtekt/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/wojtekt/Documents/GitHub/vagrant/ansible/venv/lib/python3.8/site-packages/ansible
  executable location = /Users/wojtekt/Documents/GitHub/vagrant/ansible/venv/bin/ansible
  python version = 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)]

terraform version
Terraform v0.12.20

Your version of Terraform is out of date! The latest version
is 0.14.4. You can update by downloading from https://www.terraform.io/downloads.html

Example playbook I try to run:

- name: Clusters
  hosts: localhost
  collections:
    - ibm.cloudcollection
  vars_files:
    - vars/accounts.yaml
    - vars/clusters.yaml
  tasks:
  - name: Get cluster info
    ibm_container_cluster_info:
      name: "{{ batch_infra[0] }}"
      ibmcloud_api_key: "{{ crosstower }}"

it just hans at this:

ansible-playbook 2.10.4
  config file = None
  configured module search path = ['/Users/wojtekt/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/wojtekt/Documents/GitHub/vagrant/ansible/venv/lib/python3.8/site-packages/ansible
  executable location = /Users/wojtekt/Documents/GitHub/vagrant/ansible/venv/bin/ansible-playbook
  python version = 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)]
No config file found; using defaults
setting up inventory plugins
host_list declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
Skipping due to inventory source not existing or not being readable by the current user
script declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
auto declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
Skipping due to inventory source not existing or not being readable by the current user
yaml declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
Skipping due to inventory source not existing or not being readable by the current user
ini declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
Skipping due to inventory source not existing or not being readable by the current user
toml declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
Loading collection ibm.cloudcollection from /Users/wojtekt/.ansible/collections/ansible_collections/ibm/cloudcollection
Loading callback plugin default of type stdout, v2.0 from /Users/wojtekt/Documents/GitHub/vagrant/ansible/venv/lib/python3.8/site-packages/ansible/plugins/callback/default.py
Attempting to use 'default' callback.
Skipping callback 'default', as we already have a stdout callback.
Attempting to use 'junit' callback.
Attempting to use 'minimal' callback.
Skipping callback 'minimal', as we already have a stdout callback.
Attempting to use 'oneline' callback.
Skipping callback 'oneline', as we already have a stdout callback.
Attempting to use 'tree' callback.

PLAYBOOK: test.yaml ******************************************************************************************************************************************************************************************************************************************
Positional arguments: ansible/test.yaml
verbosity: 18
connection: smart
timeout: 10
become_method: sudo
tags: ('all',)
inventory: ('/etc/ansible/hosts',)
forks: 5
1 plays in ansible/test.yaml
Read vars_file 'vars/accounts.yaml'
Read vars_file 'vars/clusters.yaml'
Read vars_file 'vars/accounts.yaml'
Read vars_file 'vars/clusters.yaml'
Read vars_file 'vars/accounts.yaml'
Read vars_file 'vars/clusters.yaml'

PLAY [Testing modules] ***************************************************************************************************************************************************************************************************************************************
Read vars_file 'vars/accounts.yaml'
Read vars_file 'vars/clusters.yaml'

TASK [Gathering Facts] ***************************************************************************************************************************************************************************************************************************************
task path: /Users/wojtekt/Documents/GitHub/vagrant/ansible/ansible/test.yaml:2
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: wojtekt
<127.0.0.1> EXEC /bin/sh -c 'echo ~wojtekt && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /Users/wojtekt/.ansible/tmp `"&& mkdir "` echo /Users/wojtekt/.ansible/tmp/ansible-tmp-1610639768.828555-90141-173824334083156 `" && echo ansible-tmp-1610639768.828555-90141-173824334083156="` echo /Users/wojtekt/.ansible/tmp/ansible-tmp-1610639768.828555-90141-173824334083156 `" ) && sleep 0'
Including module_utils file ansible/__init__.py
Including module_utils file ansible/module_utils/__init__.py
Including module_utils file ansible/module_utils/basic.py
Including module_utils file ansible/module_utils/_text.py
Including module_utils file ansible/module_utils/common/_collections_compat.py
Including module_utils file ansible/module_utils/common/__init__.py
Including module_utils file ansible/module_utils/common/_json_compat.py
Including module_utils file ansible/module_utils/common/_utils.py
Including module_utils file ansible/module_utils/common/file.py
Including module_utils file ansible/module_utils/common/parameters.py
Including module_utils file ansible/module_utils/common/collections.py
Including module_utils file ansible/module_utils/common/process.py
Including module_utils file ansible/module_utils/common/sys_info.py
Including module_utils file ansible/module_utils/common/text/converters.py
Including module_utils file ansible/module_utils/common/text/__init__.py
Including module_utils file ansible/module_utils/common/text/formatters.py
Including module_utils file ansible/module_utils/common/validation.py
Including module_utils file ansible/module_utils/common/warnings.py
Including module_utils file ansible/module_utils/compat/selectors.py
Including module_utils file ansible/module_utils/compat/__init__.py
Including module_utils file ansible/module_utils/compat/_selectors2.py
Including module_utils file ansible/module_utils/distro/__init__.py
Including module_utils file ansible/module_utils/distro/_distro.py
Including module_utils file ansible/module_utils/facts/ansible_collector.py
Including module_utils file ansible/module_utils/facts/__init__.py
Including module_utils file ansible/module_utils/facts/collector.py
Including module_utils file ansible/module_utils/facts/compat.py
Including module_utils file ansible/module_utils/facts/default_collectors.py
Including module_utils file ansible/module_utils/facts/hardware/aix.py
Including module_utils file ansible/module_utils/facts/hardware/__init__.py
Including module_utils file ansible/module_utils/facts/hardware/base.py
Including module_utils file ansible/module_utils/facts/hardware/darwin.py
Including module_utils file ansible/module_utils/facts/hardware/dragonfly.py
Including module_utils file ansible/module_utils/facts/hardware/freebsd.py
Including module_utils file ansible/module_utils/facts/hardware/hpux.py
Including module_utils file ansible/module_utils/facts/hardware/hurd.py
Including module_utils file ansible/module_utils/facts/hardware/linux.py
Including module_utils file ansible/module_utils/facts/hardware/netbsd.py
Including module_utils file ansible/module_utils/facts/hardware/openbsd.py
Including module_utils file ansible/module_utils/facts/hardware/sunos.py
Including module_utils file ansible/module_utils/facts/namespace.py
Including module_utils file ansible/module_utils/facts/network/aix.py
Including module_utils file ansible/module_utils/facts/network/__init__.py
Including module_utils file ansible/module_utils/facts/network/base.py
Including module_utils file ansible/module_utils/facts/network/darwin.py
Including module_utils file ansible/module_utils/facts/network/dragonfly.py
Including module_utils file ansible/module_utils/facts/network/fc_wwn.py
Including module_utils file ansible/module_utils/facts/network/freebsd.py
Including module_utils file ansible/module_utils/facts/network/generic_bsd.py
Including module_utils file ansible/module_utils/facts/network/hpux.py
Including module_utils file ansible/module_utils/facts/network/hurd.py
Including module_utils file ansible/module_utils/facts/network/iscsi.py
Including module_utils file ansible/module_utils/facts/network/linux.py
Including module_utils file ansible/module_utils/facts/network/netbsd.py
Including module_utils file ansible/module_utils/facts/network/nvme.py
Including module_utils file ansible/module_utils/facts/network/openbsd.py
Including module_utils file ansible/module_utils/facts/network/sunos.py
Including module_utils file ansible/module_utils/facts/other/facter.py
Including module_utils file ansible/module_utils/facts/other/__init__.py
Including module_utils file ansible/module_utils/facts/other/ohai.py
Including module_utils file ansible/module_utils/facts/sysctl.py
Including module_utils file ansible/module_utils/facts/system/apparmor.py
Including module_utils file ansible/module_utils/facts/system/__init__.py
Including module_utils file ansible/module_utils/facts/system/caps.py
Including module_utils file ansible/module_utils/facts/system/chroot.py
Including module_utils file ansible/module_utils/facts/system/cmdline.py
Including module_utils file ansible/module_utils/facts/system/date_time.py
Including module_utils file ansible/module_utils/facts/system/distribution.py
Including module_utils file ansible/module_utils/facts/system/dns.py
Including module_utils file ansible/module_utils/facts/system/env.py
Including module_utils file ansible/module_utils/facts/system/fips.py
Including module_utils file ansible/module_utils/facts/system/local.py
Including module_utils file ansible/module_utils/facts/system/lsb.py
Including module_utils file ansible/module_utils/facts/system/pkg_mgr.py
Including module_utils file ansible/module_utils/facts/system/platform.py
Including module_utils file ansible/module_utils/facts/system/python.py
Including module_utils file ansible/module_utils/facts/system/selinux.py
Including module_utils file ansible/module_utils/facts/system/service_mgr.py
Including module_utils file ansible/module_utils/facts/system/ssh_pub_keys.py
Including module_utils file ansible/module_utils/facts/system/user.py
Including module_utils file ansible/module_utils/facts/timeout.py
Including module_utils file ansible/module_utils/facts/utils.py
Including module_utils file ansible/module_utils/facts/virtual/base.py
Including module_utils file ansible/module_utils/facts/virtual/__init__.py
Including module_utils file ansible/module_utils/facts/virtual/dragonfly.py
Including module_utils file ansible/module_utils/facts/virtual/freebsd.py
Including module_utils file ansible/module_utils/facts/virtual/hpux.py
Including module_utils file ansible/module_utils/facts/virtual/linux.py
Including module_utils file ansible/module_utils/facts/virtual/netbsd.py
Including module_utils file ansible/module_utils/facts/virtual/openbsd.py
Including module_utils file ansible/module_utils/facts/virtual/sunos.py
Including module_utils file ansible/module_utils/facts/virtual/sysctl.py
Including module_utils file ansible/module_utils/parsing/convert_bool.py
Including module_utils file ansible/module_utils/parsing/__init__.py
Including module_utils file ansible/module_utils/pycompat24.py
Including module_utils file ansible/module_utils/six/__init__.py
Using module file /Users/wojtekt/Documents/GitHub/vagrant/ansible/venv/lib/python3.8/site-packages/ansible/modules/setup.py
<127.0.0.1> PUT /Users/wojtekt/.ansible/tmp/ansible-local-90137jjm8zmkj/tmp1x1dx_1n TO /Users/wojtekt/.ansible/tmp/ansible-tmp-1610639768.828555-90141-173824334083156/AnsiballZ_setup.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /Users/wojtekt/.ansible/tmp/ansible-tmp-1610639768.828555-90141-173824334083156/ /Users/wojtekt/.ansible/tmp/ansible-tmp-1610639768.828555-90141-173824334083156/AnsiballZ_setup.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/Users/wojtekt/Documents/GitHub/vagrant/ansible/venv/bin/python3 /Users/wojtekt/.ansible/tmp/ansible-tmp-1610639768.828555-90141-173824334083156/AnsiballZ_setup.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /Users/wojtekt/.ansible/tmp/ansible-tmp-1610639768.828555-90141-173824334083156/ > /dev/null 2>&1 && sleep 0'
ok: [localhost]
Read vars_file 'vars/accounts.yaml'
Read vars_file 'vars/clusters.yaml'
META: ran handlers
Read vars_file 'vars/accounts.yaml'
Read vars_file 'vars/clusters.yaml'

TASK [User invite] *******************************************************************************************************************************************************************************************************************************************
task path: /Users/wojtekt/Documents/GitHub/vagrant/ansible/ansible/test.yaml:10
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: wojtekt
<127.0.0.1> EXEC /bin/sh -c 'echo ~wojtekt && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /Users/wojtekt/.ansible/tmp `"&& mkdir "` echo /Users/wojtekt/.ansible/tmp/ansible-tmp-1610639769.904712-90175-170886631984033 `" && echo ansible-tmp-1610639769.904712-90175-170886631984033="` echo /Users/wojtekt/.ansible/tmp/ansible-tmp-1610639769.904712-90175-170886631984033 `" ) && sleep 0'
Including module_utils file ansible/__init__.py
Including module_utils file ansible/module_utils/__init__.py
Including module_utils file ansible/module_utils/basic.py
Including module_utils file ansible/module_utils/_text.py
Including module_utils file ansible/module_utils/common/_collections_compat.py
Including module_utils file ansible/module_utils/common/__init__.py
Including module_utils file ansible/module_utils/common/_json_compat.py
Including module_utils file ansible/module_utils/common/_utils.py
Including module_utils file ansible/module_utils/common/file.py
Including module_utils file ansible/module_utils/common/parameters.py
Including module_utils file ansible/module_utils/common/collections.py
Including module_utils file ansible/module_utils/common/process.py
Including module_utils file ansible/module_utils/common/sys_info.py
Including module_utils file ansible/module_utils/common/text/converters.py
Including module_utils file ansible/module_utils/common/text/__init__.py
Including module_utils file ansible/module_utils/common/text/formatters.py
Including module_utils file ansible/module_utils/common/validation.py
Including module_utils file ansible/module_utils/common/warnings.py
Including module_utils file ansible/module_utils/compat/selectors.py
Including module_utils file ansible/module_utils/compat/__init__.py
Including module_utils file ansible/module_utils/compat/_selectors2.py
Including module_utils file ansible/module_utils/distro/__init__.py
Including module_utils file ansible/module_utils/distro/_distro.py
Including module_utils file ansible/module_utils/parsing/convert_bool.py
Including module_utils file ansible/module_utils/parsing/__init__.py
Including module_utils file ansible/module_utils/pycompat24.py
Including module_utils file ansible/module_utils/six/__init__.py
Including module_utils file ansible_collections/ibm/cloudcollection/plugins/module_utils/ibmcloud.py
Including module_utils file ansible/module_utils/urls.py
Including module_utils file ansible_collections/__init__.py
Including module_utils file ansible_collections/ibm/__init__.py
Including module_utils file ansible_collections/ibm/cloudcollection/__init__.py
Including module_utils file ansible_collections/ibm/cloudcollection/plugins/__init__.py
Including module_utils file ansible_collections/ibm/cloudcollection/plugins/module_utils/__init__.py
Using module file /Users/wojtekt/.ansible/collections/ansible_collections/ibm/cloudcollection/plugins/modules/ibm_iam_user_invite.py
<127.0.0.1> PUT /Users/wojtekt/.ansible/tmp/ansible-local-90137jjm8zmkj/tmp87hzpk0o TO /Users/wojtekt/.ansible/tmp/ansible-tmp-1610639769.904712-90175-170886631984033/AnsiballZ_ibm_iam_user_invite.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /Users/wojtekt/.ansible/tmp/ansible-tmp-1610639769.904712-90175-170886631984033/ /Users/wojtekt/.ansible/tmp/ansible-tmp-1610639769.904712-90175-170886631984033/AnsiballZ_ibm_iam_user_invite.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/Users/wojtekt/Documents/GitHub/vagrant/ansible/venv/bin/python3 /Users/wojtekt/.ansible/tmp/ansible-tmp-1610639769.904712-90175-170886631984033/AnsiballZ_ibm_iam_user_invite.py && sleep 0'
ghost commented 3 years ago

Actually when I wait long enough it timeouts with this error:

The full traceback is:
Traceback (most recent call last):
  File "/home/vagrant/.ansible/tmp/ansible-tmp-1610695489.3672192-2801-27868330873631/AnsiballZ_ibm_iam_user_invite.py", line 102, in <module>
    _ansiballz_main()
  File "/home/vagrant/.ansible/tmp/ansible-tmp-1610695489.3672192-2801-27868330873631/AnsiballZ_ibm_iam_user_invite.py", line 94, in _ansiballz_main
    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
  File "/home/vagrant/.ansible/tmp/ansible-tmp-1610695489.3672192-2801-27868330873631/AnsiballZ_ibm_iam_user_invite.py", line 40, in invoke_module
    runpy.run_module(mod_name='ansible_collections.ibm.cloudcollection.plugins.modules.ibm_iam_user_invite', init_globals=None, run_name='__main__', alter_sys=True)
  File "/usr/lib64/python3.6/runpy.py", line 205, in run_module
    return _run_module_code(code, init_globals, run_name, mod_spec)
  File "/usr/lib64/python3.6/runpy.py", line 96, in _run_module_code
    mod_name, mod_spec, pkg_name, script_name)
  File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/modules/ibm_iam_user_invite.py", line 226, in <module>
  File "/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/modules/ibm_iam_user_invite.py", line 222, in main
  File "/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/modules/ibm_iam_user_invite.py", line 212, in run_module
  File "/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/module_utils/ibmcloud.py", line 445, in ibmcloud_terraform
  File "/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/module_utils/ibmcloud.py", line 701, in __init__
  File "/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/module_utils/ibmcloud.py", line 732, in _install_ibmcloud_tf_provider
  File "/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/module_utils/ibmcloud.py", line 714, in _download_extract_zip
  File "/usr/lib64/python3.6/http/client.py", line 472, in read
    s = self._safe_read(self.length)
  File "/usr/lib64/python3.6/http/client.py", line 622, in _safe_read
    chunk = self.fp.read(min(amt, MAXAMOUNT))
  File "/usr/lib64/python3.6/socket.py", line 586, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib64/python3.6/ssl.py", line 971, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/lib64/python3.6/ssl.py", line 833, in read
    return self._sslobj.read(len, buffer)
  File "/usr/lib64/python3.6/ssl.py", line 590, in read
    v = self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out
fatal: [localhost]: FAILED! => {
    "changed": false,
    "module_stderr": "Traceback (most recent call last):\n  File \"/home/vagrant/.ansible/tmp/ansible-tmp-1610695489.3672192-2801-27868330873631/AnsiballZ_ibm_iam_user_invite.py\", line 102, in <module>\n    _ansiballz_main()\n  File \"/home/vagrant/.ansible/tmp/ansible-tmp-1610695489.3672192-2801-27868330873631/AnsiballZ_ibm_iam_user_invite.py\", line 94, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/home/vagrant/.ansible/tmp/ansible-tmp-1610695489.3672192-2801-27868330873631/AnsiballZ_ibm_iam_user_invite.py\", line 40, in invoke_module\n    runpy.run_module(mod_name='ansible_collections.ibm.cloudcollection.plugins.modules.ibm_iam_user_invite', init_globals=None, run_name='__main__', alter_sys=True)\n  File \"/usr/lib64/python3.6/runpy.py\", line 205, in run_module\n    return _run_module_code(code, init_globals, run_name, mod_spec)\n  File \"/usr/lib64/python3.6/runpy.py\", line 96, in _run_module_code\n    mod_name, mod_spec, pkg_name, script_name)\n  File \"/usr/lib64/python3.6/runpy.py\", line 85, in _run_code\n    exec(code, run_globals)\n  File \"/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/modules/ibm_iam_user_invite.py\", line 226, in <module>\n  File \"/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/modules/ibm_iam_user_invite.py\", line 222, in main\n  File \"/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/modules/ibm_iam_user_invite.py\", line 212, in run_module\n  File \"/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/module_utils/ibmcloud.py\", line 445, in ibmcloud_terraform\n  File \"/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/module_utils/ibmcloud.py\", line 701, in __init__\n  File \"/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/module_utils/ibmcloud.py\", line 732, in _install_ibmcloud_tf_provider\n  File \"/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/module_utils/ibmcloud.py\", line 714, in _download_extract_zip\n  File \"/usr/lib64/python3.6/http/client.py\", line 472, in read\n    s = self._safe_read(self.length)\n  File \"/usr/lib64/python3.6/http/client.py\", line 622, in _safe_read\n    chunk = self.fp.read(min(amt, MAXAMOUNT))\n  File \"/usr/lib64/python3.6/socket.py\", line 586, in readinto\n    return self._sock.recv_into(b)\n  File \"/usr/lib64/python3.6/ssl.py\", line 971, in recv_into\n    return self.read(nbytes, buffer)\n  File \"/usr/lib64/python3.6/ssl.py\", line 833, in read\n    return self._sslobj.read(len, buffer)\n  File \"/usr/lib64/python3.6/ssl.py\", line 590, in read\n    v = self._sslobj.read(len, buffer)\nsocket.timeout: The read operation timed out\n",
    "module_stdout": "",
    "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
    "rc": 1
}

Does it timeout on terraform provider plugin download?

In fact this download is very slow for me when checking. Can I place it somewhere to bypass this step?

ghost commented 3 years ago

Looks like copying terraform binaries to /var/tmp/ansible/ibmcloud/ solves my problem.