results
|
Result #1
Field |
Value |
ansible_loop_var
|
|
changed
|
|
cmd
|
set -o pipefail
if [ -d "/var/lib/libvirt" ]
then
file_space=/var/lib/libvirt
else
file_space=/var/lib
fi
df -BG ${file_space} | jq -R -s '
split("\n") |
.[] |
if test("^/") then
gsub(" +"; " ") | split(" ") | {mount: .[0], spacetotal: .[1], spaceused: .[2], spaceavail: .[3]}
else
empty
end
' | jq .spaceavail | tr -d '"'
|
delta
|
|
end
|
2024-05-05 10:04:17.391382
|
failed
|
|
invocation
|
{
"module_args": {
"_raw_params": "set -o pipefail\nif [ -d \"/var/lib/libvirt\" ]\nthen\n file_space=/var/lib/libvirt\nelse\n file_space=/var/lib\nfi\ndf -BG ${file_space} | jq -R -s '\n split(\"\\n\") |\n .[] |\n if test(\"^/\") then\n gsub(\" +\"; \" \") | split(\" \") | {mount: .[0], spacetotal: .[1], spaceused: .[2], spaceavail: .[3]}\n else\n empty\n end\n ' | jq .spaceavail | tr -d '\"'\n",
"_uses_shell": true,
"argv": null,
"chdir": null,
"creates": null,
"executable": "/bin/bash",
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true
}
}
|
item
|
|
msg
|
|
rc
|
|
start
|
2024-05-05 10:04:17.355294
|
stderr
|
|
stderr_lines
|
|
stdout
|
|
stdout_lines
|
|
Result #2
Field |
Value |
ansible_loop_var
|
|
changed
|
|
cmd
|
set -o pipefail
if [ -d "/var/lib/libvirt" ]
then
file_space=/var/lib/libvirt
else
file_space=/var/lib
fi
df -BG ${file_space} | jq -R -s '
split("\n") |
.[] |
if test("^/") then
gsub(" +"; " ") | split(" ") | {mount: .[0], spacetotal: .[1], spaceused: .[2], spaceavail: .[3]}
else
empty
end
' | jq .spaceavail | tr -d '"'
|
delta
|
|
end
|
2024-05-05 10:04:17.742327
|
failed
|
|
invocation
|
{
"module_args": {
"_raw_params": "set -o pipefail\nif [ -d \"/var/lib/libvirt\" ]\nthen\n file_space=/var/lib/libvirt\nelse\n file_space=/var/lib\nfi\ndf -BG ${file_space} | jq -R -s '\n split(\"\\n\") |\n .[] |\n if test(\"^/\") then\n gsub(\" +\"; \" \") | split(\" \") | {mount: .[0], spacetotal: .[1], spaceused: .[2], spaceavail: .[3]}\n else\n empty\n end\n ' | jq .spaceavail | tr -d '\"'\n",
"_uses_shell": true,
"argv": null,
"chdir": null,
"creates": null,
"executable": "/bin/bash",
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true
}
}
|
item
|
|
msg
|
|
rc
|
|
start
|
2024-05-05 10:04:17.706488
|
stderr
|
|
stderr_lines
|
|
stdout
|
|
stdout_lines
|
|
|