{"id":47413,"status":"changed","playbook":{"id":962,"items":{"plays":1,"tasks":1,"results":8,"hosts":8,"files":1,"records":0},"arguments":{"version":null,"verbosity":2,"become":false,"become_method":"sudo","become_user":null,"become_ask_pass":false,"become_password_file":null,"inventory":["/home/ssh-gateway/ansible/hosts-kvm-nodes"],"listhosts":false,"subset":null,"poll_interval":15,"seconds":0,"one_line":false,"tree":null,"private_key_file":"/home/ssh-gateway/.ssh/id_rsa","remote_user":"root","connection":"ssh","timeout":null,"ssh_common_args":null,"sftp_extra_args":null,"scp_extra_args":null,"ssh_extra_args":null,"ask_pass":false,"connection_password_file":null,"check":false,"diff":false,"extra_vars":"Not saved by ARA as configured by 'ignored_arguments'","vault_ids":[],"ask_vault_pass":false,"vault_password_files":[],"forks":20,"module_path":null,"basedir":null,"task_timeout":0,"module_args":"cat /usr/local/solus/hooks/floating-ip-save.sh | grep UUID","module_name":"shell","args":"uk-prod"},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"}],"started":"2024-08-06T14:22:18.302043+01:00","ended":"2024-08-06T14:22:20.082169+01:00","duration":"00:00:01.780126","name":null,"ansible_version":"2.16.4","client_version":"1.7.1","python_version":"3.10.10","server_version":"1.7.1","status":"completed","path":"Ad-Hoc: shell: cat /usr/local/solus/hooks/floating-ip-save.sh | grep UUID","controller":"ssh-gw-4.layershift.com","user":"root"},"play":{"id":961,"items":{"tasks":1,"results":8},"started":"2024-08-06T14:22:18.403585+01:00","ended":"2024-08-06T14:22:19.647230+01:00","duration":"00:00:01.243645","name":"Ansible Ad-Hoc","status":"completed"},"task":{"id":1394,"items":{"results":8},"path":"Ad-Hoc: shell: cat /usr/local/solus/hooks/floating-ip-save.sh | grep UUID","tags":[],"started":"2024-08-06T14:22:18.502926+01:00","ended":"2024-08-06T14:22:19.599228+01:00","duration":"00:00:01.096302","name":"shell","uuid":"001851d0-75dc-2537-c323-000000000011","action":"shell","lineno":1,"handler":false,"status":"completed","warnings":[],"deprecations":[],"exceptions":[],"file":963},"host":{"id":23521,"name":"kvm05","changed":1,"failed":0,"ok":1,"skipped":0,"unreachable":0},"delegated_to":[],"content":{"changed":true,"cmd":"cat /usr/local/solus/hooks/floating-ip-save.sh | grep UUID","delta":"0:00:00.005422","end":"2024-08-06 13:22:19.133186","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.127764","stderr":"","stderr_lines":[],"stdout":"UUID=$(cat \"$tfile\" | jq -j '.data.UUID')\n#this is the main IP for the UUID VM\nif [ \"$UUID\" == '07b55589-738d-4261-bcdb-d5816b12c528' ]; then\n        echo \"HOOK MATCHED FOR $UUID\"\n        mac_addr=$(virsh domiflist --domain \"$UUID\" | tail -2 | awk '{print $NF}')\n        ovs_port=$(virsh domiflist --domain \"$UUID\" | tail -2 | awk '{print $1}')\n        rules_file=\"/usr/local/solus/ovs/$UUID/rules\"\n        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\")"]},"created":"2024-08-06T14:22:19.325287+01:00","updated":"2024-08-06T14:22:19.325314+01:00","started":"2024-08-06T14:22:18.752568+01:00","ended":"2024-08-06T14:22:19.266316+01:00","duration":"00:00:00.513748","changed":true,"ignore_errors":false}