Execution
Date 21 Aug 2024 11:00:12 +0100
Duration 00:00:33.50
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
32 Hosts
2 Tasks
61 Results
1 Plays
6 Files
0 Records

Task result details


Field Value
changed
False
plesk_output
{
    "changed": false,
    "cmd": "if [[ -f /sbin/plesk ]]; then\n  # Check for full version text\n  plesk_version=$( /sbin/plesk -v | grep \"Product version\" | cut -d \":\" -f2 )\n\n  # Check if 'Plesk' exists in the output\n  if [[ \"$plesk_version\" == *Plesk* ]]; then\n    # Extract numeric version\n    numeric_version=$(echo \"$plesk_version\" | sed \"s/^[ \\t]*//\" | awk '{print $NF}')\n    echo \"Numeric Version: $numeric_version\"\n  else\n    echo \"Plesk not found in the output.\"\n  fi\nelse\n  echo \"Plesk binary not found at /sbin/plesk. Skipping.\"\nfi\n",
    "delta": "0:00:00.017267",
    "end": "2024-08-21 11:00:15.311230",
    "failed": false,
    "msg": "",
    "rc": 0,
    "start": "2024-08-21 11:00:15.293963",
    "stderr": "",
    "stderr_lines": [],
    "stdout": "Numeric Version: 18.0.63.2",
    "stdout_lines": [
        "Numeric Version: 18.0.63.2"
    ]
}