Open
Description
Summary
Trying install latest version of Github actions runner i'm getting subj.
Workaround: change body_format to raw in tasks/install_runner.yml
- name: Find the latest runner version (RUN ONCE)
body_format: raw
Issue Type
Bug Report
Ansible Version
ansible [core 2.14.0]
config file = /home/lsk/.ansible.cfg
configured module search path = ['/home/lsk/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/lsk/.local/lib/python3.10/site-packages/ansible
ansible collection location = /home/lsk/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/local/bin/ansible
python version = 3.10.6 (main, Nov 2 2022, 18:53:38) [GCC 11.3.0] (/usr/bin/python3)
jinja version = 3.0.3
libyaml = True
Steps to Reproduce
- name: Apply ansible-github-actions-runner
ansible.builtin.import_role:
name: "ansible-github_actions_runner"
vars:
hide_sensitive_logs: false
runner_user: "githubrunner"
runner_dir: /home/githubrunner
runner_version: "latest"
runner_state: "started"
access_token: "<PAT>"
github_account: red55
github_owner: "Org"
runner_org: true
runner_labels:
- vkcs
- dev
Expected Results
The github runner service started
Actual Results
TASK [ansible-github_actions_runner : Find the latest runner version (RUN ONCE)] *****************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: http.client.IncompleteRead: IncompleteRead(59604 bytes read)
fatal: [bastion -> localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/usr/lib/python3.10/http/client.py\", line 565, in _get_chunk_left\n chunk_left = self._read_next_chunk_size()\n File \"/usr/lib/python3.10/http/client.py\", line 532, in _read_next_chunk_size\n return int(line, 16)\nValueError: invalid literal for int() with base 16: b''\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/lib/python3.10/http/client.py\", line 582, in _read_chunked\n chunk_left = self._get_chunk_left()\n File \"/usr/lib/python3.10/http/client.py\", line 567, in _get_chunk_left\n raise IncompleteRead(b'')\nhttp.client.IncompleteRead: IncompleteRead(0 bytes read)\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"<stdin>\", line 107, in <module>\n File \"<stdin>\", line 99, in _ansiballz_main\n File \"<stdin>\", line 47, in invoke_module\n File \"/usr/lib/python3.10/runpy.py\", line 224, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/lib/python3.10/runpy.py\", line 96, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_ansible.legacy.uri_payload_h4wf99q2/ansible_ansible.legacy.uri_payload.zip/ansible/modules/uri.py\", line 779, in <module>\n File \"/tmp/ansible_ansible.legacy.uri_payload_h4wf99q2/ansible_ansible.legacy.uri_payload.zip/ansible/modules/uri.py\", line 709, in main\n File \"/usr/lib/python3.10/http/client.py\", line 459, in read\n return self._read_chunked(amt)\n File \"/usr/lib/python3.10/http/client.py\", line 597, in _read_chunked\n raise IncompleteRead(b''.join(value))\nhttp.client.IncompleteRead: IncompleteRead(59604 bytes read)\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}