Execution
Date 09 Oct 2025 09:37:52 +0100
Duration 00:02:17.34
Controller ssh-gw-4.layershift.com
User root
Versions
Ansible 2.16.11
ara 1.7.3 / 1.7.3
Python 3.10.10
Summary
400 Hosts
2 Tasks
793 Results
1 Plays
1 Files
0 Records

File: /home/ssh-gateway/ansible/kuly/zz-check-if-redis.yaml

---
- name: Check Plesk servers for Redis installations
  hosts: all
  become: yes
  gather_facts: no

  tasks:
    - name: Gather Plesk and Redis information
      plesk_info:
      register: plesk_data
      changed_when: >
        plesk_data.redis_found | bool or
        plesk_data.redis_containers_found | bool

    - name: Display Redis info if Plesk is installed
      when: plesk_data.plesk_found | bool
      ansible.builtin.debug:
        msg: |
          Host: {{ inventory_hostname }}
          Plesk detected: {{ plesk_data.plesk_found }}
          Redis installed: {{ plesk_data.redis_found }}
          Redis status: {{ plesk_data.redis_status }}
          Docker installed: {{ plesk_data.docker_found }}
          Redis containers found: {{ plesk_data.redis_containers_found }}
          Redis containers: {{ plesk_data.redis_containers | to_nice_json }}