https://github.com/alancoding/execution-environments-issues
scratchpad
https://github.com/alancoding/execution-environments-issues
Last synced: 4 months ago
JSON representation
scratchpad
- Host: GitHub
- URL: https://github.com/alancoding/execution-environments-issues
- Owner: AlanCoding
- Created: 2020-12-15T16:36:14.000Z (over 4 years ago)
- Default Branch: devel
- Last Pushed: 2020-12-15T18:22:58.000Z (over 4 years ago)
- Last Synced: 2025-01-03T05:38:52.755Z (6 months ago)
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Execution Environment Container Permission Issues
This is to share `ansible-runner` private data directory inputs to replicate
issues.```
ansible-runner run -p get_url.yml . -vvv
```Important detail from that failure:
> Failed to replace file: /root/.ansible/tmp/ansible-tmp-1608050130.4774451-24-182673759779840/tmphrbsynsq to
> /runner/ansible-builder.zip: [Errno 13] Permission denied: b'/runner/.ansible_tmpoqn81kjoansible-builder.zip'This is another example that should produce a similar result:
```
ansible-runner run -p blockinfile.yml . -vvv
```#### Verified Solutions
Two options are noted in comments.
- Use docker instead of podman (see `env/settings`)
- Set the play variable `ansible_remote_tmp` to a location inside the volume#### Failed Solutions
Adding:
```
"ANSIBLE_LOCAL_TEMP": "/runner"
```to `env/envvars` has not worked.
It seems to be ignored, and continues to use the `/root/` folder.