{"id":6698,"sha1":"ba1f8925f6a7c064e2576d59598577182d875a47","playbook":{"id":4572,"items":{"plays":1,"tasks":3,"results":3,"hosts":1,"files":1,"records":0},"arguments":{"version":null,"verbosity":2,"private_key_file":"/home/ssh-gateway/.ssh/id_rsa","remote_user":"root","connection":"ssh","timeout":null,"ssh_common_args":null,"sftp_extra_args":null,"scp_extra_args":null,"ssh_extra_args":null,"ask_pass":false,"connection_password_file":null,"force_handlers":false,"flush_cache":false,"become":false,"become_method":"sudo","become_user":null,"become_ask_pass":false,"become_password_file":null,"tags":["all"],"skip_tags":[],"check":false,"diff":false,"inventory":["/home/ssh-gateway/ansible/kuly/bash-kvm-inventory-prod.sh"],"listhosts":false,"subset":"friendly-moon.man-1.vm.plesk-server.com","extra_vars":"Not saved by ARA as configured by 'ignored_arguments'","vault_ids":[],"ask_vault_pass":false,"vault_password_files":[],"forks":20,"module_path":null,"syntax":false,"listtasks":false,"listtags":false,"step":false,"start_at_task":null,"args":["RM10207-adjust-alt-php-logrotate.yaml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"},{"id":136,"name":"subset:friendly-moon.man-1.vm.plesk-server.com"}],"started":"2025-11-26T14:58:47.464686Z","ended":"2025-11-26T14:58:53.817486Z","duration":"00:00:06.352800","name":null,"ansible_version":"2.16.11","client_version":"1.7.3","python_version":"3.10.10","server_version":"1.7.3","status":"completed","path":"/home/ssh-gateway/ansible/kuly/RM10207-adjust-alt-php-logrotate.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"content":"---\n- name: Playbook to adjust logrotate\n  hosts: all\n  gather_facts: false\n  tasks:\n    - name: Get server info\n      plesk_info:\n      register: plsk\n\n    - name: Check if /etc/logrotate.d/alt-php exists\n      ansible.builtin.stat:\n        path: /etc/logrotate.d/alt-php\n      register: alt_php_logrotate_stat\n      when: plsk.plesk_found and (plsk.imunify_found or plsk.cloudlinux_found)\n\n    - name: Replace /etc/logrotate.d/alt-php with new version\n      ansible.builtin.copy:\n        src: RM10207-alt-php\n        dest: /etc/logrotate.d/alt-php\n        owner: root\n        group: root\n        mode: '0644'\n      when:\n        - plsk.plesk_found and (plsk.imunify_found or plsk.cloudlinux_found)\n        - alt_php_logrotate_stat.stat.exists\n","created":"2025-11-26T14:58:47.496051Z","updated":"2025-11-26T14:58:47.496077Z","path":"/home/ssh-gateway/ansible/kuly/RM10207-adjust-alt-php-logrotate.yaml"}