Execution
Date 06 Aug 2024 14:22:18 +0100
Duration 00:00:01.78
Controller ssh-gw-4.layershift.com
User root
Versions
Ansible 2.16.4
ara 1.7.1 / 1.7.1
Python 3.10.10
Summary
8 Hosts
1 Tasks
8 Results
1 Plays
1 Files
0 Records

Task result details

  • Status
    CHANGED
  • Duration
    00:00:00.52
  • Play
    Ansible Ad-Hoc
  • Task
    shell
  • Host
    kvm017

Field Value
changed
True
cmd
cat /usr/local/solus/hooks/floating-ip-save.sh | grep UUID
delta
0:00:00.004738
end
2024-08-06 13:22:19.308302
invocation
{
    "module_args": {
        "_raw_params": "cat /usr/local/solus/hooks/floating-ip-save.sh | grep UUID",
        "_uses_shell": true,
        "argv": null,
        "chdir": null,
        "creates": null,
        "executable": null,
        "expand_argument_vars": true,
        "removes": null,
        "stdin": null,
        "stdin_add_newline": true,
        "strip_empty_ends": true
    }
}
msg

rc
0
start
2024-08-06 13:22:19.303564
stderr

stderr_lines
[]
stdout
UUID=$(cat "$tfile" | jq -j '.data.UUID')
#this is the main IP for the UUID VM
if [ "$UUID" == '07b55589-738d-4261-bcdb-d5816b12c528' ]; then
        echo "HOOK MATCHED FOR $UUID"
        mac_addr=$(virsh domiflist --domain "$UUID" | tail -2 | awk '{print $NF}')
        ovs_port=$(virsh domiflist --domain "$UUID" | tail -2 | awk '{print $1}')
        rules_file="/usr/local/solus/ovs/$UUID/rules"
        vm_host_name=$(virsh domhostname --domain "$UUID")
stdout_lines
[
    "UUID=$(cat \"$tfile\" | jq -j '.data.UUID')",
    "#this is the main IP for the UUID VM",
    "if [ \"$UUID\" == '07b55589-738d-4261-bcdb-d5816b12c528' ]; then",
    "        echo \"HOOK MATCHED FOR $UUID\"",
    "        mac_addr=$(virsh domiflist --domain \"$UUID\" | tail -2 | awk '{print $NF}')",
    "        ovs_port=$(virsh domiflist --domain \"$UUID\" | tail -2 | awk '{print $1}')",
    "        rules_file=\"/usr/local/solus/ovs/$UUID/rules\"",
    "        vm_host_name=$(virsh domhostname --domain \"$UUID\")"
]