fix 🐛: Fix typo and add file permission in logrotate.yml task
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 13s
Gitleaks Scan / gitleaks (push) Successful in 5s
Markdown Lint / markdown-lint (push) Successful in 5s
ai-reviews / Review PR (pull_request) Successful in 37s
ansible-lint / Ansible Lint (pull_request) Successful in 12s
Gitleaks Scan / gitleaks (pull_request) Successful in 9s
Markdown Lint / markdown-lint (pull_request) Successful in 26s

This commit fixes a typo in the logrotate configuration file and adds necessary file permissions to ensure proper rotation of log files.
This commit is contained in:
2026-02-09 18:23:01 +01:00
parent abdba53053
commit 3e6e1cb893

View File

@@ -13,7 +13,7 @@
block:
- name: logrotate | Check if {{ item }} exists
- name: logrotate | Check if exists {{ item }}
ansible.builtin.stat:
path: "{{ item }}"
register: logrotate_file
@@ -22,12 +22,13 @@
when: logrotate_file.stat.exists
block:
- name: logrotate | Backup {{ item }} once
- name: logrotate | Backup once {{ item }}
ansible.builtin.copy:
src: "{{ item }}"
dest: "{{ item }}.original"
owner: root
group: root
mode: "0644"
remote_src: true
args:
creates: "{{ item }}.original"