{"id":4590,"sha1":"c64745d3ade31ce7fb7377f3b7d2ca93a199375e","playbook":{"id":2504,"items":{"plays":1,"tasks":3,"results":3,"hosts":1,"files":1,"records":0},"arguments":{"version":null,"verbosity":3,"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":["RM9923.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":"2025-02-13T15:32:03.347096Z","ended":"2025-02-13T15:32:05.389480Z","duration":"00:00:02.042384","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/RM9923.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"content":"---\n- name: Check Plesk Extension and Imunify Installation\n  hosts: all\n  gather_facts: false\n  tasks:\n    - name: Gather Plesk Info\n      plesk_info:\n      register: plsk\n\n    - name: Check if WP Toolkit is installed and Imunify is present\n      ansible.builtin.debug:\n        msg: \"WP Toolkit and Imunify are both installed.\"\n      when:\n        - plsk.plesk_extensions_found\n        - plsk.imunify_found\n        - \"'wp-toolkit' in [item.id for item in plsk.plsk.plesk_extensions]\"\n    - name: Debug when conditions are not met\n      ansible.builtin.debug:\n        msg: \"Either WP Toolkit or Imunify is not installed.\"\n      when:\n        - not (plsk.plesk_extensions_found and plsk.imunify_found and\n               \"'wp-toolkit' in [item.id for item in plsk.plesk_extensions]\")\n","created":"2025-02-13T15:32:03.399507Z","updated":"2025-02-13T15:32:03.399526Z","path":"/home/ssh-gateway/ansible/kuly/RM9923.yaml"}