terransible-wirehole icon indicating copy to clipboard operation
terransible-wirehole copied to clipboard

ansible-playbook oci_main.yml broken at few places

Open krouter opened this issue 3 years ago • 0 comments

some of the errors...

  1. stopped at pretasks saying couldnt decide on the package manager. i added a "use: apt" in pretasks.yml
  • haveged state: present use: apt
  1. docker wouldnt install.. The error was: 'dict object' has no attribute 'ansible_distribution_release'\n
    again manually replaced the url with repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable to get by.

  2. now stuck on this TASK [Adding user ubuntu to docker group.... fatal: [xxx.xx.xx.xxx]: FAILED! => {"changed": false, "module_stderr": "Shared connection to xxx.xxx.xxx.xx closed.\r\n", "module_stdout": "/home/ubuntu/.ansible/tmp/ansible-tmp-1613348463.6702738-168273206952007/AnsiballZ_user.py:17: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses\r\n import imp\r\nTraceback (most recent call last):\r\n File "/tmp/ansible_user_payload_hfo_bqq0/ansible_user_payload.zip/ansible/module_utils/basic.py", line 279, in get_distribution\r\nAttributeError: module 'platform' has no attribute '_supported_dists'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File "/home/ubuntu/.ansible/tmp/ansible-tmp-1613348463.6702738-168273206952007/AnsiballZ_user.py", line 113, in \r\n _ansiballz_main()\r\n File "/home/ubuntu/.ansible/tmp/ansible-tmp-1613348463.6702738-168273206952007/AnsiballZ_user.py", line 105, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File "/home/ubuntu/.ansible/tmp/ansible-tmp-1613348463.6702738-168273206952007/AnsiballZ_user.py", line 48, in invoke_module\r\n imp.load_module('main', mod, module, MOD_DESC)\r\n File "/usr/lib/python3.8/imp.py", line 234, in load_module\r\n return load_source(name, filename, file)\r\n File "/usr/lib/python3.8/imp.py", line 169, in load_source\r\n module = _exec(spec, sys.modules[name])\r\n File "", line 604, in _exec\r\n File "", line 783, in exec_module\r\n File "", line 219, in _call_with_frames_removed\r\n File "/tmp/ansible_user_payload_hfo_bqq0/main.py", line 2611, in \r\n File "/tmp/ansible_user_payload_hfo_bqq0/main.py", line 2516, in main\r\n File "/tmp/ansible_user_payload_hfo_bqq0/main.py", line 403, in new\r\n File "/tmp/ansible_user_payload_hfo_bqq0/ansible_user_payload.zip/ansible/module_utils/basic.py", line 337, in load_platform_subclass\r\n File "/tmp/ansible_user_payload_hfo_bqq0/ansible_user_payload.zip/ansible/module_utils/basic.py", line 289, in get_distribution\r\nAttributeError: module 'platform' has no attribute 'dist'\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

krouter avatar Feb 15 '21 00:02 krouter