Skip to content

Instantly share code, notes, and snippets.

View vorotech's full-sized avatar
🇺🇦
Stand With Ukraine!

Dmytro vorotech

🇺🇦
Stand With Ukraine!
View GitHub Profile

Investiagate mystical tmp path when remote is Pod container

The Problem

When executing Ansible tasks targeting remote pod container, any of the Ansible bubble wrapped modules receive the invalid tmp directory which cannot be resolved.

The example of invalid path /~zuul/.ansible/tmp/ansible-tmp-1602657590.3517509-66-230912263536663/source where the ~ part is resovled to HOME directory and breaks everything.

{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,