Execution
Date 26 Nov 2025 15:14:01 +0000
Duration 00:01:55.48
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
786 Results
1 Plays
1 Files
0 Records

File: /home/ssh-gateway/ansible/kuly/zz-verify-logrotate.yaml

---
- name: Check for alt-php5/7 entries in logrotate config
  hosts: all
  gather_facts: false
  tasks:
    - name: Check if /etc/logrotate.d/alt-php exists and contains alt-php5/7 entries
      ansible.builtin.shell: |
        set -o pipefail
        if [[ -f /etc/logrotate.d/alt-php ]] && grep -qE 'alt-php[57]' /etc/logrotate.d/alt-php; then
          echo "Found alt-php5/7 entry"
        fi
      args:
        executable: /bin/bash
      register: check_result
      changed_when: false

    - name: Display result if found
      ansible.builtin.debug:
        msg: "{{ check_result.stdout }}"
      when: check_result.stdout != ""