Skip to content

Commit

Permalink
fix: valid permissions for logrotate script (#982)
Browse files Browse the repository at this point in the history
canaries test
  • Loading branch information
rogercoll authored Feb 11, 2022
1 parent c2d2c1a commit ef80cad
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/automated/ansible/install-requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
name: install-gpg


- hosts: testing_hosts
- hosts: testing_hosts_linux
become: true
gather_facts: yes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
template:
src: rsyslog-rotate
dest: "/usr/lib/rsyslog/rsyslog-rotate"
mode: 700
when: ansible_distribution_major_version == "9" or ansible_distribution_major_version == "8"

- name: Configure logrotate for syslog
Expand Down
2 changes: 1 addition & 1 deletion test/automated/ansible/roles/logrotate/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
set_fact:
var_log_group_name: "{{ var_log_st.stat.gr_name }}"

- include: "logrotate-{{ ansible_distribution }}.yaml"
- include_tasks: "logrotate-{{ ansible_distribution }}.yaml"
when: ansible_distribution != "SLES"

- name: force logrotate
Expand Down
Empty file modified test/automated/ansible/roles/logrotate/templates/rsyslog-rotate
100644 → 100755
Empty file.

0 comments on commit ef80cad

Please sign in to comment.