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:05.83
  • 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:03.178046
end
2024-09-09 11:24:30.963185
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 11:24:27.785139
stderr

stderr_lines
[]
stdout
{
    "eula": null,
    "healthy": false,
    "license": {
        "expiration": null,
        "id": "IP-70654-713831-IwFTRGR0",
        "license_type": "imunify360",
        "message": "",
        "redirect_url": "https://cln.cloudlinux.com/console/imunify360/servers/IP-70654-713831-IwFTRGR0/products/IM_30/convert",
        "status": true,
        "user_count": 2,
        "user_limit": 30
    },
    "strategy": "PRIMARY_IDS",
    "version": "7.15.2",
    "warnings": [],
    "why": "no data received from server"
}
stdout_lines
[
    "{\"healthy\": false, \"why\": \"no data received from server\", \"strategy\": \"PRIMARY_IDS\", \"warnings\": [], \"version\": \"7.15.2\", \"eula\": null, \"license\": {\"status\": true, \"expiration\": null, \"user_limit\": 30, \"id\": \"IP-70654-713831-IwFTRGR0\", \"user_count\": 2, \"message\": \"\", \"license_type\": \"imunify360\", \"redirect_url\": \"https://cln.cloudlinux.com/console/imunify360/servers/IP-70654-713831-IwFTRGR0/products/IM_30/convert\"}}"
]