{"id":3817,"sha1":"ce809eed16bbc49f7fcc7feb5aede49f0fe64414","playbook":{"id":1932,"items":{"plays":1,"tasks":7,"results":7,"hosts":1,"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/kuly/bash-kvm-inventory-prod.sh"],"listhosts":false,"subset":"versatile-chipmunk.man-1.vm.plesk-server.com","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":["remove_ini_blocks.yaml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"},{"id":80,"name":"subset:versatile-chipmunk.man-1.vm.plesk-server.com"}],"started":"2024-09-13T10:24:29.250717+01:00","ended":"2024-09-13T10:24:34.029454+01:00","duration":"00:00:04.778737","name":null,"ansible_version":"2.16.11","client_version":"1.7.2","python_version":"3.10.10","server_version":"1.7.2","status":"completed","path":"/home/ssh-gateway/ansible/kuly/remove_ini_blocks.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"content":"---\n# tasks file for plesk\n\n- name: Check if Plesk binary exists and capture version information\n  ansible.builtin.shell: |\n    set -o pipefail\n    if [ -x /sbin/plesk ]; then\n      /sbin/plesk -v | grep \"Product version\" | cut -d \":\" -f2 | sed \"s/^[ \\t]*//\" | awk '{print $NF}'\n    fi\n  args:\n    executable: /bin/bash\n  register: plesk_output\n  changed_when: false\n\n- name: Set Plesk facts\n  ansible.builtin.set_fact:\n    plesk_found: \"{{ plesk_output.stdout is not none and plesk_output.stdout != '' }}\"\n    plesk_version: \"{{ plesk_output.stdout if plesk_output.stdout is not none else 'unknown' }}\"\n  when: plesk_output.stdout is not none\n","created":"2024-09-13T10:24:29.396419+01:00","updated":"2024-09-13T10:24:29.396441+01:00","path":"/home/ssh-gateway/ansible/roles/plesk/tasks/main.yml"}