Execution
Date 14 Jan 2026 15:39:56 +0000
Duration 01:54:32.73
Controller ssh-gw-4.layershift.com
User root
Versions
Ansible 2.16.11
ara 1.7.3 / 1.7.4
Python 3.10.10
Summary
385 Hosts
4 Tasks
1534 Results
1 Plays
1 Files
0 Records

File: /home/ssh-gateway/ansible/kuly/RM10253-add-alt-php84-5.yaml

---
- name: RM10253 alt php installs
  hosts: all,!phase1
  gather_facts: false
  vars:
    download_url: https://deploy.thecode.casa/php-module-enabler/RM10253/main.sh
    dst_path: /root/RM10253-files
  tasks:
    - name: Get plesk info
      plesk_info:
      register: plsk
    - name: Run commands on plesks with imunify
      when: plsk.plesk_found and plsk.imunify_found
      block:
        - name: Create folder
          ansible.builtin.file:
            force: true
            path: "{{ dst_path }}"
            recurse: true
            state: directory
        - name: Download file from URL
          ansible.builtin.get_url:
            url: "{{ download_url }}"
            dest: "{{ dst_path }}"
            owner: root
            group: root
            mode: '0755'
            backup: true
            use_netrc: false
        - name: Install phps
          ansible.builtin.shell: |
            set -o pipefail
            cd "{{ dst_path }}"
            ./main.sh alt-php84
            ./main.sh alt-php85
          args:
            executable: /bin/bash
          changed_when: false