{"id":6844,"sha1":"7b46a7f5c9366d1ebe615d2aaee17512d31554fb","playbook":{"id":4707,"items":{"plays":1,"tasks":3,"results":3,"hosts":2,"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":"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-17T08:19:18.945959Z","ended":"2025-12-17T08:19:21.997919Z","duration":"00:00:03.051960","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    - 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\\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 }}\"\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') | trim }}\n        container_count: \"{{ plesk_data.redis_containers | length }}\"\n        redis_save: \"{{ plesk_data.redis_found or (plesk_data.redis_containers | length > 0) }}\"\n","created":"2025-12-17T08:19:18.971052Z","updated":"2025-12-17T08:19:18.971076Z","path":"/home/ssh-gateway/ansible/kuly/zz-vik-447-redis.yaml"}