Execution
Date 11 Sep 2024 20:05:55 +0100
Duration 00:00:01.73
Controller ssh-gw-4.layershift.com
User root
Versions
Ansible 2.16.4
ara 1.7.1 / 1.7.1
Python 3.10.10
Summary
1 Hosts
4 Tasks
4 Results
1 Plays
1 Files
0 Records

File: /home/ssh-gateway/ansible/kuly/test2.yaml

---
- name: Test Playbook for Plesk, Imunify360, and CloudLinux
  hosts: all
  tasks:
    - name: Check system information
      plesk_info:
      register: si
      failed_when: false  # Ensure this task doesn't fail the playbook if the module encounters an error

    - name: Show Plesk status
      ansible.builtin.debug:
        msg: >
          Plesk Found: {{ si.plesk_found }}
          Plesk Version: {{ si.plesk_version }}
      when: si.plesk_found is defined and si.plesk_found

    - name: Show Imunify360 status
      ansible.builtin.debug:
        msg: >
          Imunify360 Found: {{ si.imunify_found }}
          Imunify360 Status: {{ si.imunify_status }}
      when: si.imunify_found is defined and si.imunify_found

    - name: Show CloudLinux status
      ansible.builtin.debug:
        msg: >
          CloudLinux Found: {{ si.cloudlinux_found }}
          CloudLinux Version: {{ si.cloudlinux_version }}
      when: si.cloudlinux_found is defined and si.cloudlinux_found