{"id":358574,"status":"ok","playbook":{"id":3319,"items":{"plays":1,"tasks":11,"results":297,"hosts":27,"files":1,"records":0},"arguments":{"version":null,"verbosity":0,"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,"force_handlers":false,"flush_cache":false,"become":false,"become_method":"sudo","become_user":null,"become_ask_pass":false,"become_password_file":null,"tags":["all"],"skip_tags":[],"check":false,"diff":false,"inventory":["/home/ssh-gateway/ansible/kuly/hosts-kvm-nodes"],"listhosts":false,"subset":null,"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,"syntax":false,"listtasks":false,"listtags":false,"step":false,"start_at_task":null,"args":["get_mac_addresses.yml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"}],"started":"2025-07-22T11:34:37.540023+01:00","ended":"2025-07-22T11:35:36.581020+01:00","duration":"00:00:59.040997","name":null,"ansible_version":"2.16.11","client_version":"1.7.2","python_version":"3.10.10","server_version":"1.7.2","status":"completed","path":"/home/ssh-gateway/ansible/kuly/get_mac_addresses.yml","controller":"ssh-gw-4.layershift.com","user":"root"},"play":{"id":3678,"items":{"tasks":11,"results":297},"started":"2025-07-22T11:34:37.576611+01:00","ended":"2025-07-22T11:35:35.183889+01:00","duration":"00:00:57.607278","name":"Get MAC addresses for interfaces that are up","status":"completed"},"task":{"id":7842,"items":{"results":27},"path":"/home/ssh-gateway/ansible/kuly/get_mac_addresses.yml","tags":[],"started":"2025-07-22T11:35:00.352913+01:00","ended":"2025-07-22T11:35:24.962848+01:00","duration":"00:00:24.609935","name":"Method 3 - Use command to get interface info on Linux","uuid":"001851d0-75dc-cd4c-44d8-000000000022","action":"shell","lineno":41,"handler":false,"status":"completed","warnings":[],"deprecations":[],"exceptions":[],"file":5439},"host":{"id":141615,"name":"kvm021","changed":0,"failed":0,"ok":3,"skipped":8,"unreachable":0},"delegated_to":[],"content":{"changed":false,"cmd":"ip -o link show | awk '/state UP/ {\n  iface = $2; gsub(/:/, \"\", iface); \n  if (match($0, /link\\/ether ([0-9a-f:]+)/)) {\n    mac = substr($0, RSTART+11, RLENGTH-11);\n    print iface \",\" mac\n  }\n}'\n","delta":"0:00:00.006971","end":"2025-07-22 10:35:17.681430","failed_when_result":false,"invocation":{"module_args":{"_raw_params":"ip -o link show | awk '/state UP/ {\n  iface = $2; gsub(/:/, \"\", iface); \n  if (match($0, /link\\/ether ([0-9a-f:]+)/)) {\n    mac = substr($0, RSTART+11, RLENGTH-11);\n    print iface \",\" mac\n  }\n}'\n","_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":"2025-07-22 10:35:17.674459","stderr":"","stderr_lines":[],"stdout":"eno1,a4:bf:01:69:37:0c\nenp24s0,68:05:ca:2c:2f:7d","stdout_lines":["eno1,a4:bf:01:69:37:0c","enp24s0,68:05:ca:2c:2f:7d"]},"created":"2025-07-22T11:35:18.719974+01:00","updated":"2025-07-22T11:35:18.720012+01:00","started":"2025-07-22T11:35:17.362228+01:00","ended":"2025-07-22T11:35:18.712890+01:00","duration":"00:00:01.350662","changed":false,"ignore_errors":false}