Execution
Date 22 Jul 2025 16:19:35 +0100
Duration 00:00:01.60
Controller ssh-gw-4.layershift.com
User root
Versions
Ansible 2.16.11
ara 1.7.2 / 1.7.2
Python 3.10.10
Summary
1 Hosts
2 Tasks
2 Results
1 Plays
1 Files
0 Records

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

---
- name: Repair Imunify
  hosts: all
  gather_facts: false

  tasks:
    - name: Get Plesk info
      plesk_info:
      register: pl

    - name: Check Imunify license and trigger repair if invalid
      # Use debug for reporting, and set changed_when appropriately
      debug:
        msg: "Imunify license is not valid (status: {{ pl.imunify_license_status }}), triggering repair..."
      when: pl.plesk_found and pl.imunify_found and pl.imunify_license_valid == false
      changed_when: true