Files
ansible_role_proxmox_provision/tasks/logrotate.yml
Jose c6288877e8
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 11s
Gitleaks Scan / gitleaks (push) Successful in 5s
ai-reviews / Review PR (pull_request) Successful in 33s
Markdown Lint / markdown-lint (push) Successful in 5s
ansible-lint / Ansible Lint (pull_request) Successful in 11s
Gitleaks Scan / gitleaks (pull_request) Successful in 5s
Markdown Lint / markdown-lint (pull_request) Successful in 5s
refactor ♻️: Refactor task names for clarity and consistency
Renamed task labels to be more descriptive and consistent across the project, improving readability and maintainability.
2026-02-12 21:27:42 +01:00

31 lines
744 B
YAML

---
- name: logrotate | Ensure logrotate is installed
ansible.builtin.apt:
name: logrotate
state: present
update_cache: yes
become: true
when: proxmox_logrotate_enabled
- name: logrotate | PVE logrotate policy
ansible.builtin.template:
src: pve-logrotate.j2
dest: "/etc/logrotate.d/99-pve-custom"
owner: root
group: root
mode: "0644"
become: true
when: proxmox_logrotate_enabled
notify: Restart logrotate
- name: logrotate | PVE-firewall logrotate policy
ansible.builtin.template:
src: pve-firewall-logrotate.j2
dest: "/etc/logrotate.d/99-pve-firewall-custom"
owner: root
group: root
mode: "0644"
become: true
when: proxmox_logrotate_enabled
notify: Restart logrotate