The runner folder is confusing as hell to me too - the log states its saving in runner. but the folder is not eixistend …:
- name: Get contents of /
ansible.builtin.command:
cmd: ls -a /
register: bin_contents
- name: Display contents of /
debug:
msg: "{{ bin_contents.stdout_lines }}"
log:
changed: [www43] => {
"changed": true,
"cmd": [
"ls",
"-a",
"/"
],
"delta": "0:00:00.006836",
"end": "2024-11-12 14:14:31.621001",
"invocation": {
"module_args": {
"_raw_params": "ls -a /",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true
}
},
"msg": "",
"rc": 0,
"start": "2024-11-12 14:14:31.614165",
"stderr": "",
"stderr_lines": [],
"stdout": ".\\n..\\nbacula-fd.conf.ucftmp-0r4rZBEtYC\\nbin\\nboot\\ndev\\netc\\nhome\\ninitrd.img\\ninitrd.img.old\\nlib\\nlib32\\nlib64\\nlibx32\\nlost+found\\nmedia\\nmnt\\nopt\\nproc\\nroot\\nrun\\nsbin\\nsnap\\nsrv\\nswap.img\\nsys\\ntmp\\nusr\\nvar\\nvmlinuz\\nvmlinuz.old",
"stdout_lines": [
".",
"..",
"bacula-fd.conf.ucftmp-0r4rZBEtYC",
"bin",
"boot",
"dev",
"etc",
"home",
"initrd.img",
"initrd.img.old",
"lib",
"lib32",
"lib64",
"libx32",
"lost+found",
"media",
"mnt",
"opt",
"proc",
"root",
"run",
"sbin",
"snap",
"srv",
"swap.img",
"sys",
"tmp",
"usr",
"var",
"vmlinuz",
"vmlinuz.old"
]
}
TASK [Display contents of /] ***************************************************
task path: /runner/project/zzz_testplaybooks_and_archive/bwtest/bw_envtest copy 2.yaml:31
ok: [www43] => {
"msg": [
".",
"..",
"bacula-fd.conf.ucftmp-0r4rZBEtYC",
"bin",
"boot",
"dev",
"etc",
"home",
"initrd.img",
"initrd.img.old",
"lib",
"lib32",
"lib64",
"libx32",
"lost+found",
"media",
"mnt",
"opt",
"proc",
"root",
"run",
"sbin",
"snap",
"srv",
"swap.img",
"sys",
"tmp",
"usr",
"var",
"vmlinuz",
"vmlinuz.old"
]
}
And i ested with become active and the playbok failes in the localhost tasks - i think i need to add sudo to my EE(?) but i can do anything now too.