Execution
Date 09 Oct 2025 09:32:48 +0100
Duration 00:00:21.07
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
0 Hosts
1 Tasks
0 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
  gather_facts: false

  tasks:
    - name: Gather Plesk and Redis information
      plesk_info:
      register: plesk_data

    - name: Display only 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 }}