docs 📝: Add 'API Utilities' section and update directory structure #10
@@ -1,5 +1,5 @@
|
||||
---
|
||||
|
|
||||
- name: "Proxmox | Ensure logrotate is installed"
|
||||
- name: logrotate | Ensure logrotate is installed
|
||||
ansible.builtin.apt:
|
||||
name: logrotate
|
||||
state: present
|
||||
@@ -7,7 +7,7 @@
|
||||
become: true
|
||||
|
gitea-actions
commented
[Lines 2-7] [Score: 2] The addition of a new task to ensure that the logrotate package is present on the system is a good practice for proper log management. However, it may not be necessary if the system already has logrotate installed by default or if an alternative solution for managing logs is in place. [Lines 2-7] [Score: 2] The addition of a new task to ensure that the logrotate package is present on the system is a good practice for proper log management. However, it may not be necessary if the system already has logrotate installed by default or if an alternative solution for managing logs is in place.
|
||||
when: proxmox_logrotate_enabled
|
||||
|
||||
- name: logrotate | pve logrotate policy
|
||||
- name: logrotate | PVE logrotate policy
|
||||
ansible.builtin.template:
|
||||
src: pve-logrotate.j2
|
||||
dest: "/etc/logrotate.d/99-pve-custom"
|
||||
@@ -18,7 +18,7 @@
|
||||
when: proxmox_logrotate_enabled
|
||||
notify: Restart logrotate
|
||||
|
||||
- name: logrotate | pve-firewall logrotate policy
|
||||
- name: logrotate | PVE-firewall logrotate policy
|
||||
ansible.builtin.template:
|
||||
src: pve-firewall-logrotate.j2
|
||||
dest: "/etc/logrotate.d/99-pve-firewall-custom"
|
||||
|
||||
Reference in New Issue
Block a user
[Score: 3] Removing the YAML document declaration is discouraged as it enables consistency across files and can help with understanding the structure of the playbook. Although not a critical issue, it is recommended to keep it for maintainability purposes.