Closed dnoliver closed 6 months ago
Noticed that my version doesn't have amr64 in https://github.com/MonolithProjects/ansible-github_actions_runner/blob/1.18.7/vars/main.yml
Updating my runner to 1.21.0 and retrying
After updated, run into another issues due to missing tar.
roles:
- name: MonolithProjects.github_actions_runner
src: https://github.com/MonolithProjects/ansible-github_actions_runner
scm: git
version: "1.21.0"
TASK [MonolithProjects.github_actions_runner : Unarchive runner package] *****************************************************************
fatal: [vm]: FAILED! => {"changed": false, "msg": "Failed to find handler for \"/Users/test/.ansible/tmp/ansible-tmp-1716172767.222517-226-133056964365034/actions-runner-osx-arm64-2.314.1i1o87p2b.tar.gz\". Make sure the required command to extract the file is installed.\nCommand \"/usr/bin/tar\" detected as tar type bsd. GNU tar required.\nCommand \"/usr/bin/unzip\" could not handle archive: End-of-central-directory signature not found. Either this file is not\n a zipfile, or it constitutes one disk of a multi-part archive. In the\n latter case the central directory and zipfile comment will be found on\n the last disk(s) of this archive.\nunzip: cannot find zipfile directory in one of /Users/test/.ansible/tmp/ansible-tmp-1716172767.222517-226-133056964365034/actions-runner-osx-arm64-2.314.1i1o87p2b.tar.gz or\n /Users/test/.ansible/tmp/ansible-tmp-1716172767.222517-226-133056964365034/actions-runner-osx-arm64-2.314.1i1o87p2b.tar.gz.zip, and cannot find /Users/test/.ansible/tmp/ansible-tmp-1716172767.222517-226-133056964365034/actions-runner-osx-arm64-2.314.1i1o87p2b.tar.gz. ZIP, period.\n"}
Looks like it's expected, as this roles says that it doens't install deps for macos right. After installing brew, and gnu-tar, Unarchive runner package runs correctly
After changing the version, and solving the deps, works! But, each time I got a failure on package deployment, a runner was registered, so next run had to be done with a different runner name :)
Summary
I am using:
To deploy a Github Actions Runner in a Mac Mini 2023 - M2 - MacOS Ventura 13.5. The target is a Virtual Machine created with UTM: https://mac.getutm.app/
The error I am getting is the following:
Issue Type
Bug Report
Ansible Version
Steps to Reproduce
Expected Results
I expected that the play will be successful
Actual Results