mirror of
https://github.com/luzifer-ansible/logrotate.git
synced 2024-12-22 17:51:17 +00:00
Skip check execution on logrotate <3.9.0
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
0cc46ca402
commit
258f0604a1
1 changed files with 6 additions and 0 deletions
|
@ -4,6 +4,11 @@
|
|||
apt:
|
||||
name: logrotate
|
||||
|
||||
- name: Get logrotate version
|
||||
command: 'logrotate --version'
|
||||
changed_when: no
|
||||
register: logrotate_version
|
||||
|
||||
- name: Install custom logrotate files
|
||||
template:
|
||||
src: templates/logrotate.j2
|
||||
|
@ -14,5 +19,6 @@
|
|||
command: 'logrotate -d /etc/logrotate.d/{{ item.name }}'
|
||||
with_items: '{{ logrotate_configs | default([]) }}'
|
||||
changed_when: no
|
||||
when: not '3.8.' in logrotate_version.stderr
|
||||
|
||||
...
|
||||
|
|
Loading…
Reference in a new issue