{"id":4554,"sha1":"45a5ec1c1c05c00f6188602411dd094143d55685","playbook":{"id":2468,"items":{"plays":1,"tasks":4,"results":4,"hosts":1,"files":1,"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_composer_advisories.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-01-20T15:28:01.952180Z","ended":"2025-01-20T15:28:05.504211Z","duration":"00:00:03.552031","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_composer_advisories.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"content":"---\n- name: Remove composer-advisories Plesk extension\n  hosts: all\n  tasks:\n    - name: Gather info about hosts\n      plesk_info:\n      register: pi\n\n    - name: Uninstall composer-advisories extension\n      when: pi.plesk_found\n      ansible.builtin.shell: |\n        set -o pipefail\n        /sbin/plesk bin extension --uninstall composer-advisories\n      args:\n        executable: /bin/bash\n      register: uninstall_result\n      failed_when: >\n        \"'The extension composer-advisories is not installed.' not in uninstall_result.stderr\n         and uninstall_result.rc != 0\"\n      changed_when: \"'The extension composer-advisories is successfully removed.' in uninstall_result.stdout\"\n      ignore_errors: true\n\n    - name: Check if composer-advisories extension is still installed\n      when: pi.plesk_found\n      ansible.builtin.shell: |\n        set -o pipefail\n        /sbin/plesk bin extension --list | grep composer-advisories\n      args:\n        executable: /bin/bash\n      changed_when: false\n      register: check_extension\n      failed_when: check_extension.rc == 0\n\n    - name: Log result of extension removal\n      when: pi.plesk_found\n      ansible.builtin.debug:\n        msg: >\n          {{\n            \"Composer-advisories extension was successfully removed or was not installed.\"\n            if check_extension.rc != 0 else\n            \"Composer-advisories extension is still installed.\"\n          }}\n","created":"2025-01-20T15:28:01.969833Z","updated":"2025-01-20T15:28:01.969853Z","path":"/home/ssh-gateway/ansible/kuly/remove_composer_advisories.yaml"}