{"id":6839,"sha1":"6d9d884f83e03724b973a5debbcfb73a0704c207","playbook":{"id":4702,"items":{"plays":1,"tasks":3,"results":3,"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":"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-16T15:53:18.629680Z","ended":"2025-12-16T15:53:21.732555Z","duration":"00:00:03.102875","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          {%- if plesk_data.redis_found -%}\n          standalone\n          {%- elif plesk_data.redis_containers | length > 0 -%}\n          docker\n          {%- else -%}\n          none\n          {%- endif -%}\n\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-16T15:53:18.648841Z","updated":"2025-12-16T15:53:18.648872Z","path":"/home/ssh-gateway/ansible/kuly/zz-vik-447-redis.yaml"}