Execution
Date 26 Nov 2025 14:33:48 +0000
Duration 00:02:20.86
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
393 Hosts
2 Tasks
785 Results
1 Plays
1 Files
0 Records

File: /home/ssh-gateway/ansible/kuly/RM10207-adjust-alt-php-logrotate.yaml

---
- name: Playbook to adjust logrotate
  hosts: all
  gather_facts: false
  tasks:
    - name: Get server info
      plesk_info:
      register: plsk
    - name: Adjust logrotate with new one
      when: plsk.plesk_found and (plsk.imunify_found or plsk.cloudlinux_found)
      ansible.builtin.shell: |
        set -o pipefail
        ls -la /var/log/alt-php*
      args:
        executable: /bin/bash
      changed_when: plsk.plesk_found and (plsk.imunify_found or plsk.cloudlinux_found)