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
cmd
if [[ -f /sbin/plesk ]]; then
  # Check for full version text
  plesk_version=$( /sbin/plesk -v | grep "Product version" | cut -d ":" -f2 )

  # Check if 'Plesk' exists in the output
  if [[ "$plesk_version" == *Plesk* ]]; then
    # Extract numeric version
    numeric_version=$(echo "$plesk_version" | sed "s/^[ \t]*//" | awk '{print $NF}')
    echo "Numeric Version: $numeric_version"
  else
    echo "Plesk not found in the output."
  fi
else
  echo "Plesk binary not found at /sbin/plesk. Skipping."
fi
delta
0:00:00.007931
end
2024-08-21 10:00:13.791600
invocation
{
    "module_args": {
        "_raw_params": "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",
        "_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-08-21 10:00:13.783669
stderr

stderr_lines
[]
stdout
Plesk binary not found at /sbin/plesk. Skipping.
stdout_lines
[
    "Plesk binary not found at /sbin/plesk. Skipping."
]