{"id":1359,"sha1":"f6ef57c10e71d2735317c3e6e29eb156088f7bdc","playbook":{"id":1160,"items":{"plays":1,"tasks":2,"results":61,"hosts":32,"files":6,"records":0},"arguments":{"version":null,"verbosity":2,"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/bash-kvm-inventory-dev.sh"],"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":["test.yaml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"}],"started":"2024-08-21T11:00:12.176194+01:00","ended":"2024-08-21T11:00:45.680358+01:00","duration":"00:00:33.504164","name":null,"ansible_version":"2.16.4","client_version":"1.7.1","python_version":"3.10.10","server_version":"1.7.1","status":"failed","path":"/home/ssh-gateway/ansible/test.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"content":"---\n# tasks file for plesk\n\n- name: Check and capture Plesk version if binary exists\n  ansible.builtin.shell: |\n    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\n    else\n      echo \"Plesk binary not found at /sbin/plesk. Skipping.\"\n    fi\n  args:\n    executable: /bin/bash\n  register: plesk_output\n  changed_when: false\n","created":"2024-08-21T11:00:12.383048+01:00","updated":"2024-08-21T11:00:12.383069+01:00","path":"/home/ssh-gateway/ansible/roles/plesk/tasks/main.yml"}