Execution
Date 09 Sep 2024 15:23:40 +0100
Duration None
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
137 Hosts
7 Tasks
625 Results
2 Plays
11 Files
0 Records

Task result details

  • Status
    OK
  • Duration
    00:00:07.53
  • Play
    Playbook to generate inventory with plesk servers only
  • Task
    imunify360 : Check imunify360-agent binary and run health commands if binary exists

Field Value
changed
False
cmd
if [[ -f /usr/bin/imunify360-agent ]]; then
  if imunify360-agent health | grep -q "OK"; then
    imunify360-agent health --json
  else
    echo "Not OK"
  fi
else
  echo "Binary not found"
fi
delta
0:00:00.005620
end
2024-09-09 15:24:25.363965
invocation
{
    "module_args": {
        "_raw_params": "if [[ -f /usr/bin/imunify360-agent ]]; then\n  if imunify360-agent health | grep -q \"OK\"; then\n    imunify360-agent health --json\n  else\n    echo \"Not OK\"\n  fi\nelse\n  echo \"Binary not found\"\nfi\n",
        "_uses_shell": true,
        "argv": null,
        "chdir": null,
        "creates": null,
        "executable": "/bin/bash",
        "expand_argument_vars": true,
        "removes": null,
        "stdin": null,
        "stdin_add_newline": true,
        "strip_empty_ends": true
    }
}
msg

rc
0
start
2024-09-09 15:24:25.358345
stderr

stderr_lines
[]
stdout
Binary not found
stdout_lines
[
    "Binary not found"
]