{"id":6823,"sha1":"e736abca2590389a3d656e137d865cf6afbf0ca7","playbook":{"id":4686,"items":{"plays":1,"tasks":4,"results":4,"hosts":2,"files":1,"records":0},"arguments":{"version":null,"verbosity":0,"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":["zz-vik-447-redis.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-12-16T14:39:23.914994Z","ended":"2025-12-16T14:39:28.574543Z","duration":"00:00:04.659549","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 and export CSV\n  hosts: all\n  gather_facts: false\n  vars:\n    csv_file: \"redis_report.csv\"\n  tasks:\n    - name: Gather Plesk and Redis information\n      plesk_info:\n      register: plesk_data\n    - name: Determine Redis type\n      ansible.builtin.set_fact:\n        redis_type: >-\n          {% if plesk_data.redis_found %}\n            standalone\n          {% elif plesk_data.redis_containers | length > 0 %}\n            docker\n          {% else %}\n            none\n          {% endif %}\n    - name: Create CSV with headers if not exists\n      delegate_to: localhost\n      run_once: true\n      ansible.builtin.copy:\n        dest: \"{{ csv_file }}\"\n        content: \"hostname,redis_found,redis_type,redis_containers\\n\"\n        force: false\n        mode: '0644'\n    - name: Append Redis info row to CSV\n      delegate_to: localhost\n      ansible.builtin.lineinfile:\n        path: \"{{ csv_file }}\"\n        line: \"{{ inventory_hostname }},{{ plesk_data.redis_found }},{{ redis_type }},{{ plesk_data.redis_containers | length }}\"\n        insertafter: EOF\n        create: false\n","created":"2025-12-16T14:39:23.943687Z","updated":"2025-12-16T14:39:23.943712Z","path":"/home/ssh-gateway/ansible/kuly/zz-vik-447-redis.yaml"}