{"id":6996,"sha1":"1642e43825e939f0264614386ae268f9f5809f63","playbook":{"id":4859,"items":{"plays":1,"tasks":2,"results":2,"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":"ivory-pine.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":["zz-rm-logrotate.yaml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"},{"id":201,"name":"subset:ivory-pine.man-1.vm.plesk-server.com"}],"started":"2026-01-23T07:04:50.199830Z","ended":"2026-01-23T07:04:54.535310Z","duration":"00:00:04.335480","name":null,"ansible_version":"2.16.11","client_version":"1.7.4","python_version":"3.10.10","server_version":"1.7.4","status":"completed","path":"/home/ssh-gateway/ansible/kuly/zz-rm-logrotate.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"content":"---\n- name: Remove timestamped Ansible-like backup files in /etc/logrotate.d\n  hosts: all\n  gather_facts: false\n  vars:\n    logrotate_dir: /etc/logrotate.d\n    base_names:\n      - alt-php80-fpm.logrotate\n      - alt-php81-fpm.logrotate\n      - alt-php82-fpm.logrotate\n      - alt-php83-fpm.logrotate\n      - alt-php84-fpm.logrotate\n      - alt-php85-fpm.logrotate\n\n  tasks:\n    - name: Find and delete backup files matching base names\n      ansible.builtin.find:\n        paths: \"{{ logrotate_dir }}\"\n        patterns: \"{{ item }}.*~\"\n        file_type: file\n      register: found_backups\n      loop: \"{{ base_names }}\"\n      loop_control:\n        label: \"{{ item }}\"\n\n    - name: Delete matched backup files\n      ansible.builtin.file:\n        path: \"{{ backup_file.path }}\"\n        state: absent\n      loop: \"{{ found_backups.results | map(attribute='files') | flatten }}\"\n      loop_control:\n        loop_var: backup_file\n","created":"2026-01-23T07:04:50.217159Z","updated":"2026-01-23T07:04:50.217180Z","path":"/home/ssh-gateway/ansible/kuly/zz-rm-logrotate.yaml"}