{"id":6865,"sha1":"8781543c8f1018db0bfd310db51fe1c75bb76ef2","playbook":{"id":4728,"items":{"plays":1,"tasks":3,"results":3,"hosts":2,"files":1,"records":0},"arguments":{"version":null,"verbosity":1,"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":"zoltan.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":["zz-vik-447-redis.yaml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"},{"id":172,"name":"subset:zoltan.man-1.vm.plesk-server.com"}],"started":"2025-12-17T09:14:26.766631Z","ended":"2025-12-17T09:14:29.758030Z","duration":"00:00:02.991399","name":null,"ansible_version":"2.16.11","client_version":"1.7.3","python_version":"3.10.10","server_version":"1.7.3","status":"completed","path":"/home/ssh-gateway/ansible/kuly/zz-vik-447-redis.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"content":"---\n- name: Check Plesk servers for Redis installations\n  hosts: all\n  gather_facts: false\n  vars:\n    csv_path: \"redis_report.csv\"\n\n  tasks:\n\n    - name: Gather Plesk and Redis information\n      plesk_info:\n      register: plesk_data\n\n    - name: Ensure CSV exists with header (run once)\n      ansible.builtin.copy:\n        dest: \"{{ csv_path }}\"\n        content: \"hostname,redis_type,redis_containers,redis_version\\n\"\n        mode: \"0644\"\n        force: false\n      delegate_to: localhost\n      run_once: true\n\n    - name: Append Redis info to CSV\n      ansible.builtin.lineinfile:\n        path: \"{{ csv_path }}\"\n        line: \"{{ inventory_hostname }},{{ redis_type }},{{ container_count }},{{ redis_version }}\"\n        insertafter: EOF\n      delegate_to: localhost\n      when: redis_save | bool\n      vars:\n        redis_type: >-\n          {{ 'both' if (plesk_data.redis_found and (plesk_data.redis_containers | length > 0))\n             else 'standalone' if plesk_data.redis_found\n             else 'docker' if (plesk_data.redis_containers | length > 0)\n             else 'none' }}\n\n        container_count: \"{{ plesk_data.redis_containers | length }}\"\n\n        redis_version: \"{{ plesk_data.redis_version | default('N/A') }}\"\n\n        redis_save: \"{{ plesk_data.redis_found or (plesk_data.redis_containers | length > 0) }}\"\n","created":"2025-12-17T09:14:26.784466Z","updated":"2025-12-17T09:14:26.784489Z","path":"/home/ssh-gateway/ansible/kuly/zz-vik-447-redis.yaml"}