Execution
Date 02 Mar 2026 14:24:55 +0000
Duration 00:00:03.21
Controller ssh-gw-4.layershift.com
User root
Versions
Ansible 2.16.13
ara 1.7.4 / 1.7.4
Python 3.10.10
Summary
0 Hosts
1 Tasks
0 Results
1 Plays
1 Files
0 Records

File: /home/ssh-gateway/ansible/ansible-luca/ioncube-checker.yaml

---
- name: RM10252 - PHP EOL Checker
  hosts: all
  gather_facts: false

  tasks:
    - name: Get Info
      plesk_info:
      register: plsk

    - name: Check fd Ioncube loader .so file being used 
      ansible.builtin.shell: |
        set -o pipefail
        find /opt/alt/php* -name "default.ini" -exec grep "ioncube_loader_lin" {} \;
      args:
        executable: /bin/bash
      register: php_check
      when: (plsk.plesk_found and plsk.imunify_found) or (plsk.plesk_found and plsk.cloudlinux_found)
      changed_when: php_check.rc == 0
      failed_when: false

    - name: Record servers missing alt-php84 or alt-php85
      ansible.builtin.lineinfile:
        create: true
        mode: '0644'
        path: RM10303/hostnames
        line: "{{ inventory_hostname }}"
      when: php_check.rc == 0
      delegate_to: localhost