Execution
Date 17 Nov 2025 15:26:48 +0000
Duration 00:03:09.77
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
395 Hosts
2 Tasks
790 Results
1 Plays
1 Files
0 Records

File: /home/ssh-gateway/ansible/kuly/RM10194-check-php-session-cleaner.yaml

---
- name: Playbook to check and install php-session-cleaner
  hosts: all,!nice-shrew.man-1.vm.plesk-server.com
  gather_facts: false
  tasks:
    - name: Get plesk info
      plesk_info:
      register: plsk
    - name: Run this on plesk server
      when: plsk.plesk_found and plsk.cloudlinux_found
      ansible.builtin.shell: |
        set -o pipefail
        rpm -q php-session-cleaner
      args:
        executable: /bin/bash
      register: rpmq
      changed_when: rpmq.rc == "1"