Ansible core 2.20 fixes and only supported OS releases

Signed-off-by: Jason Rothstein <fdragon@fdragon.org>
This commit is contained in:
2026-05-05 10:44:39 -05:00
parent 49d83a4c6f
commit a842699a00
61 changed files with 14 additions and 990 deletions
+14 -14
View File
@@ -2,36 +2,36 @@
# tasks file for ensure_log_rotation # tasks file for ensure_log_rotation
- name: 'include variables' - name: 'include variables'
when: when:
- ansible_system == 'Linux' - ansible_facts["system"] == 'Linux'
include_vars: include_vars:
file: '{{ lookup("first_found", findme ) }}' file: '{{ lookup("first_found", findme ) }}'
name: 'ensure_log_rotation' name: 'ensure_log_rotation'
vars: vars:
findme: findme:
files: files:
- '{{ ansible_distribution }}-{{ ansible_distribution_major_version }}-{{ ansible_architecture }}.yml' - '{{ ansible_facts["distribution"] }}-{{ ansible_facts["distribution_major_version"] }}-{{ ansible_facts["architecture"] }}.yml'
- '{{ ansible_distribution }}-{{ ansible_distribution_major_version }}-default.yml' - '{{ ansible_facts["distribution"] }}-{{ ansible_facts["distribution_major_version"] }}-default.yml'
- '{{ ansible_distribution }}-default.yml' - '{{ ansible_facts["distribution"] }}-default.yml'
- '{{ ansible_os_family }}-{{ ansible_distribution_major_version }}-{{ ansible_architecture }}.yml' - '{{ ansible_facts["os_family"] }}-{{ ansible_facts["distribution_major_version"] }}-{{ ansible_facts["architecture"] }}.yml'
- '{{ ansible_os_family }}-{{ ansible_distribution_major_version }}-default.yml' - '{{ ansible_facts["os_family"] }}-{{ ansible_facts["distribution_major_version"] }}-default.yml'
- '{{ ansible_os_family }}-default.yml' - '{{ ansible_facts["os_family"] }}-default.yml'
- 'default.yml' - 'default.yml'
paths: paths:
- '../vars/' - '../vars/'
errors: 'ignore' errors: 'ignore'
- name: 'package discovery' - name: 'package discovery'
when: when:
- ansible_system == 'Linux' - ansible_facts["system"] == 'Linux'
- packages is not defined - ansible_facts["packages"] is not defined
ansible.builtin.package_facts: ansible.builtin.package_facts:
- name: 'service discovery' - name: 'service discovery'
when: when:
- ansible_system == 'Linux' - ansible_facts["system"] == 'Linux'
- services is not defined - ansible_facts["services"] is not defined
ansible.builtin.service_facts: ansible.builtin.service_facts:
- name: 'ensure packages' - name: 'ensure packages'
when: when:
- ansible_system == 'Linux' - ansible_facts["system"] == 'Linux'
- ensure_log_rotation is defined - ensure_log_rotation is defined
- ensure_log_rotation.package_list is defined - ensure_log_rotation.package_list is defined
- ensure_log_rotation.package_list is iterable - ensure_log_rotation.package_list is iterable
@@ -46,7 +46,7 @@
- 'ensure_log_rotation.service_facts' - 'ensure_log_rotation.service_facts'
- name: 'ensure configuration' - name: 'ensure configuration'
when: when:
- ansible_system == 'Linux' - ansible_facts["system"] == 'Linux'
- ensure_log_rotation is defined - ensure_log_rotation is defined
- ensure_log_rotation.template_list is defined - ensure_log_rotation.template_list is defined
- ensure_log_rotation.template_list is iterable - ensure_log_rotation.template_list is iterable
@@ -75,7 +75,7 @@
- 'ensure_log_rotation.service_restart' - 'ensure_log_rotation.service_restart'
- name: 'ensure services' - name: 'ensure services'
when: when:
- ansible_system == 'Linux' - ansible_facts["system"] == 'Linux'
- ensure_log_rotation is defined - ensure_log_rotation is defined
- ensure_log_rotation.service_list is defined - ensure_log_rotation.service_list is defined
- ensure_log_rotation.service_list is iterable - ensure_log_rotation.service_list is iterable
-20
View File
@@ -1,20 +0,0 @@
# see "man logrotate" for details
# rotate log files weekly
daily
# keep 4 weeks worth of backlogs
rotate {{ log_retention_days }}
# create new (empty) log files after rotating old ones
create
# use date as a suffix of the rotated file
dateext
# uncomment this if you want your log files compressed
compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# system-specific logs may be also be configured here.
-7
View File
@@ -1,7 +0,0 @@
# no packages own btmp -- we'll rotate it here
/var/log/btmp {
missingok
monthly
create 0660 root utmp
rotate 1
}
-8
View File
@@ -1,8 +0,0 @@
# no packages own wtmp -- we'll rotate it here
/var/log/wtmp {
missingok
monthly
create 0664 root utmp
minsize 1M
rotate 1
}
-20
View File
@@ -1,20 +0,0 @@
# see "man logrotate" for details
# rotate log files weekly
daily
# keep 4 weeks worth of backlogs
rotate {{ log_retention_days }}
# create new (empty) log files after rotating old ones
create
# use date as a suffix of the rotated file
dateext
# uncomment this if you want your log files compressed
compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# system-specific logs may be also be configured here.
-7
View File
@@ -1,7 +0,0 @@
# no packages own btmp -- we'll rotate it here
/var/log/btmp {
missingok
monthly
create 0660 root utmp
rotate 1
}
-8
View File
@@ -1,8 +0,0 @@
# no packages own wtmp -- we'll rotate it here
/var/log/wtmp {
missingok
monthly
create 0664 root utmp
minsize 1M
rotate 1
}
-20
View File
@@ -1,20 +0,0 @@
# see "man logrotate" for details
# rotate log files weekly
daily
# keep 4 weeks worth of backlogs
rotate {{ log_retention_days }}
# create new (empty) log files after rotating old ones
create
# use date as a suffix of the rotated file
dateext
# uncomment this if you want your log files compressed
compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# system-specific logs may be also be configured here.
-7
View File
@@ -1,7 +0,0 @@
# no packages own btmp -- we'll rotate it here
/var/log/btmp {
missingok
monthly
create 0660 root utmp
rotate 1
}
-8
View File
@@ -1,8 +0,0 @@
# no packages own wtmp -- we'll rotate it here
/var/log/wtmp {
missingok
monthly
create 0664 root utmp
minsize 1M
rotate 1
}
-20
View File
@@ -1,20 +0,0 @@
# see "man logrotate" for details
# rotate log files weekly
daily
# keep 4 weeks worth of backlogs
rotate {{ log_retention_days }}
# create new (empty) log files after rotating old ones
create
# use date as a suffix of the rotated file
dateext
# uncomment this if you want your log files compressed
compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# system-specific logs may be also be configured here.
-7
View File
@@ -1,7 +0,0 @@
# no packages own btmp -- we'll rotate it here
/var/log/btmp {
missingok
monthly
create 0660 root utmp
rotate 1
}
-8
View File
@@ -1,8 +0,0 @@
# no packages own wtmp -- we'll rotate it here
/var/log/wtmp {
missingok
monthly
create 0664 root utmp
minsize 1M
rotate 1
}
-20
View File
@@ -1,20 +0,0 @@
# see "man logrotate" for details
# rotate log files weekly
daily
# keep 4 weeks worth of backlogs
rotate {{ log_retention_days }}
# create new (empty) log files after rotating old ones
create
# use date as a suffix of the rotated file
dateext
# uncomment this if you want your log files compressed
compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# system-specific logs may be also be configured here.
-7
View File
@@ -1,7 +0,0 @@
# no packages own btmp -- we'll rotate it here
/var/log/btmp {
missingok
monthly
create 0660 root utmp
rotate 1
}
-8
View File
@@ -1,8 +0,0 @@
# no packages own wtmp -- we'll rotate it here
/var/log/wtmp {
missingok
monthly
create 0664 root utmp
minsize 1M
rotate 1
}
-20
View File
@@ -1,20 +0,0 @@
# see "man logrotate" for details
# rotate log files weekly
daily
# keep 4 weeks worth of backlogs
rotate {{ log_retention_days }}
# create new (empty) log files after rotating old ones
create
# use date as a suffix of the rotated file
dateext
# uncomment this if you want your log files compressed
compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# system-specific logs may be also be configured here.
-7
View File
@@ -1,7 +0,0 @@
# no packages own btmp -- we'll rotate it here
/var/log/btmp {
missingok
monthly
create 0660 root utmp
rotate 1
}
-8
View File
@@ -1,8 +0,0 @@
# no packages own wtmp -- we'll rotate it here
/var/log/wtmp {
missingok
monthly
create 0664 root utmp
minsize 1M
rotate 1
}
-20
View File
@@ -1,20 +0,0 @@
# see "man logrotate" for details
# rotate log files weekly
daily
# keep 4 weeks worth of backlogs
rotate {{ log_retention_days }}
# create new (empty) log files after rotating old ones
create
# use date as a suffix of the rotated file
dateext
# uncomment this if you want your log files compressed
compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# system-specific logs may be also be configured here.
-7
View File
@@ -1,7 +0,0 @@
# no packages own btmp -- we'll rotate it here
/var/log/btmp {
missingok
monthly
create 0660 root utmp
rotate 1
}
-8
View File
@@ -1,8 +0,0 @@
# no packages own wtmp -- we'll rotate it here
/var/log/wtmp {
missingok
monthly
create 0664 root utmp
minsize 1M
rotate 1
}
-23
View File
@@ -1,23 +0,0 @@
# see "man logrotate" for details
# global options do not affect preceding include directives
# rotate log files weekly
daily
# keep 4 weeks worth of backlogs
rotate {{ log_retention_days }}
# create new (empty) log files after rotating old ones
create
# use date as a suffix of the rotated file
dateext
# uncomment this if you want your log files compressed
compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# system-specific logs may be also be configured here.
-7
View File
@@ -1,7 +0,0 @@
# no packages own btmp -- we'll rotate it here
/var/log/btmp {
missingok
monthly
create 0660 root utmp
rotate 1
}
-8
View File
@@ -1,8 +0,0 @@
# no packages own wtmp -- we'll rotate it here
/var/log/wtmp {
missingok
monthly
create 0664 root utmp
minsize 1M
rotate 1
}
-23
View File
@@ -1,23 +0,0 @@
# see "man logrotate" for details
# global options do not affect preceding include directives
# rotate log files weekly
daily
# keep 4 weeks worth of backlogs
rotate {{ log_retention_days }}
# create new (empty) log files after rotating old ones
create
# use date as a suffix of the rotated file
dateext
# uncomment this if you want your log files compressed
compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# system-specific logs may be also be configured here.
-7
View File
@@ -1,7 +0,0 @@
# no packages own btmp -- we'll rotate it here
/var/log/btmp {
missingok
monthly
create 0660 root utmp
rotate 1
}
-8
View File
@@ -1,8 +0,0 @@
# no packages own wtmp -- we'll rotate it here
/var/log/wtmp {
missingok
monthly
create 0664 root utmp
minsize 1M
rotate 1
}
-23
View File
@@ -1,23 +0,0 @@
# see "man logrotate" for details
# global options do not affect preceding include directives
# rotate log files weekly
daily
# keep 4 weeks worth of backlogs
rotate 90
# create new (empty) log files after rotating old ones
create
# use date as a suffix of the rotated file
dateext
# uncomment this if you want your log files compressed
compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# system-specific logs may also be configured here.
-7
View File
@@ -1,7 +0,0 @@
# no packages own btmp -- we'll rotate it here
/var/log/btmp {
missingok
monthly
create 0660 root utmp
rotate 1
}
-8
View File
@@ -1,8 +0,0 @@
# no packages own wtmp -- we'll rotate it here
/var/log/wtmp {
missingok
monthly
create 0664 root utmp
minsize 1M
rotate 1
}
-23
View File
@@ -1,23 +0,0 @@
# see "man logrotate" for details
# global options do not affect preceding include directives
# rotate log files weekly
daily
# keep 4 weeks worth of backlogs
rotate 90
# create new (empty) log files after rotating old ones
create
# use date as a suffix of the rotated file
dateext
# uncomment this if you want your log files compressed
compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# system-specific logs may also be configured here.
-7
View File
@@ -1,7 +0,0 @@
# no packages own btmp -- we'll rotate it here
/var/log/btmp {
missingok
monthly
create 0660 root utmp
rotate 1
}
-8
View File
@@ -1,8 +0,0 @@
# no packages own wtmp -- we'll rotate it here
/var/log/wtmp {
missingok
monthly
create 0664 root utmp
minsize 1M
rotate 1
}
-23
View File
@@ -1,23 +0,0 @@
# see "man logrotate" for details
# global options do not affect preceding include directives
# rotate log files weekly
daily
# keep 4 weeks worth of backlogs
rotate 90
# create new (empty) log files after rotating old ones
create
# use date as a suffix of the rotated file
dateext
# uncomment this if you want your log files compressed
compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# system-specific logs may also be configured here.
-7
View File
@@ -1,7 +0,0 @@
# no packages own btmp -- we'll rotate it here
/var/log/btmp {
missingok
monthly
create 0660 root utmp
rotate 1
}
-8
View File
@@ -1,8 +0,0 @@
# no packages own wtmp -- we'll rotate it here
/var/log/wtmp {
missingok
monthly
create 0664 root utmp
minsize 1M
rotate 1
}
-23
View File
@@ -1,23 +0,0 @@
# see "man logrotate" for details
# global options do not affect preceding include directives
# rotate log files weekly
daily
# keep 4 weeks worth of backlogs
rotate 90
# create new (empty) log files after rotating old ones
create
# use date as a suffix of the rotated file
dateext
# uncomment this if you want your log files compressed
compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# system-specific logs may also be configured here.
-7
View File
@@ -1,7 +0,0 @@
# no packages own btmp -- we'll rotate it here
/var/log/btmp {
missingok
monthly
create 0660 root utmp
rotate 1
}
-8
View File
@@ -1,8 +0,0 @@
# no packages own wtmp -- we'll rotate it here
/var/log/wtmp {
missingok
monthly
create 0664 root utmp
minsize 1M
rotate 1
}
-23
View File
@@ -1,23 +0,0 @@
# see "man logrotate" for details
# global options do not affect preceding include directives
# rotate log files weekly
daily
# keep 4 weeks worth of backlogs
rotate 90
# create new (empty) log files after rotating old ones
create
# use date as a suffix of the rotated file
dateext
# uncomment this if you want your log files compressed
compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# system-specific logs may also be configured here.
-7
View File
@@ -1,7 +0,0 @@
# no packages own btmp -- we'll rotate it here
/var/log/btmp {
missingok
monthly
create 0660 root utmp
rotate 1
}
-8
View File
@@ -1,8 +0,0 @@
# no packages own wtmp -- we'll rotate it here
/var/log/wtmp {
missingok
monthly
create 0664 root utmp
minsize 1M
rotate 1
}
-23
View File
@@ -1,23 +0,0 @@
# see "man logrotate" for details
# global options do not affect preceding include directives
# rotate log files weekly
daily
# keep 4 weeks worth of backlogs
rotate 90
# create new (empty) log files after rotating old ones
create
# use date as a suffix of the rotated file
dateext
# uncomment this if you want your log files compressed
compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# system-specific logs may also be configured here.
-7
View File
@@ -1,7 +0,0 @@
# no packages own btmp -- we'll rotate it here
/var/log/btmp {
missingok
monthly
create 0660 root utmp
rotate 1
}
-8
View File
@@ -1,8 +0,0 @@
# no packages own wtmp -- we'll rotate it here
/var/log/wtmp {
missingok
monthly
create 0664 root utmp
minsize 1M
rotate 1
}
-25
View File
@@ -1,25 +0,0 @@
---
# vars file for ensure_log_rotation
package_list:
- name: 'logrotate'
state: 'present'
template_list:
- dest: '/etc/logrotate.conf'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.conf'
- dest: '/etc/logrotate.d/btmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/btmp'
- dest: '/etc/logrotate.d/wtmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/wtmp'
-25
View File
@@ -1,25 +0,0 @@
---
# vars file for ensure_log_rotation
package_list:
- name: 'logrotate'
state: 'present'
template_list:
- dest: '/etc/logrotate.conf'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.conf'
- dest: '/etc/logrotate.d/btmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/btmp'
- dest: '/etc/logrotate.d/wtmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/wtmp'
-29
View File
@@ -1,29 +0,0 @@
---
# vars file for ensure_log_rotation
package_list:
- name: 'logrotate'
state: 'present'
service_list:
- name: 'logrotate.timer'
state: 'started'
enabled: 'yes'
template_list:
- dest: '/etc/logrotate.conf'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.conf'
- dest: '/etc/logrotate.d/btmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/btmp'
- dest: '/etc/logrotate.d/wtmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/wtmp'
-29
View File
@@ -1,29 +0,0 @@
---
# vars file for ensure_log_rotation
package_list:
- name: 'logrotate'
state: 'present'
service_list:
- name: 'logrotate.timer'
state: 'started'
enabled: 'yes'
template_list:
- dest: '/etc/logrotate.conf'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.conf'
- dest: '/etc/logrotate.d/btmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/btmp'
- dest: '/etc/logrotate.d/wtmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/wtmp'
-29
View File
@@ -1,29 +0,0 @@
---
# vars file for ensure_log_rotation
package_list:
- name: 'logrotate'
state: 'present'
service_list:
- name: 'logrotate.timer'
state: 'started'
enabled: 'yes'
template_list:
- dest: '/etc/logrotate.conf'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.conf'
- dest: '/etc/logrotate.d/btmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/btmp'
- dest: '/etc/logrotate.d/wtmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/wtmp'
-29
View File
@@ -1,29 +0,0 @@
---
# vars file for ensure_log_rotation
package_list:
- name: 'logrotate'
state: 'present'
service_list:
- name: 'logrotate.timer'
state: 'started'
enabled: 'yes'
template_list:
- dest: '/etc/logrotate.conf'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.conf'
- dest: '/etc/logrotate.d/btmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/btmp'
- dest: '/etc/logrotate.d/wtmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/wtmp'
-29
View File
@@ -1,29 +0,0 @@
---
# vars file for ensure_log_rotation
package_list:
- name: 'logrotate'
state: 'present'
service_list:
- name: 'logrotate.timer'
state: 'started'
enabled: 'yes'
template_list:
- dest: '/etc/logrotate.conf'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.conf'
- dest: '/etc/logrotate.d/btmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/btmp'
- dest: '/etc/logrotate.d/wtmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/wtmp'
-29
View File
@@ -1,29 +0,0 @@
---
# vars file for ensure_log_rotation
package_list:
- name: 'logrotate'
state: 'present'
service_list:
- name: 'logrotate.timer'
state: 'started'
enabled: 'yes'
template_list:
- dest: '/etc/logrotate.conf'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.conf'
- dest: '/etc/logrotate.d/btmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/btmp'
- dest: '/etc/logrotate.d/wtmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/wtmp'
-29
View File
@@ -1,29 +0,0 @@
---
# vars file for ensure_log_rotation
package_list:
- name: 'logrotate'
state: 'present'
service_list:
- name: 'logrotate.timer'
state: 'started'
enabled: 'yes'
template_list:
- dest: '/etc/logrotate.conf'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.conf'
- dest: '/etc/logrotate.d/btmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/btmp'
- dest: '/etc/logrotate.d/wtmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/wtmp'
-29
View File
@@ -1,29 +0,0 @@
---
# vars file for ensure_log_rotation
package_list:
- name: 'logrotate'
state: 'present'
service_list:
- name: 'logrotate.timer'
state: 'started'
enabled: 'yes'
template_list:
- dest: '/etc/logrotate.conf'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.conf'
- dest: '/etc/logrotate.d/btmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/btmp'
- dest: '/etc/logrotate.d/wtmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/wtmp'
-29
View File
@@ -1,29 +0,0 @@
---
# vars file for ensure_log_rotation
package_list:
- name: 'logrotate'
state: 'present'
service_list:
- name: 'logrotate.timer'
state: 'started'
enabled: 'yes'
template_list:
- dest: '/etc/logrotate.conf'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.conf'
- dest: '/etc/logrotate.d/btmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/btmp'
- dest: '/etc/logrotate.d/wtmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/wtmp'
-29
View File
@@ -1,29 +0,0 @@
---
# vars file for ensure_log_rotation
package_list:
- name: 'logrotate'
state: 'present'
service_list:
- name: 'logrotate.timer'
state: 'started'
enabled: 'yes'
template_list:
- dest: '/etc/logrotate.conf'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.conf'
- dest: '/etc/logrotate.d/btmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/btmp'
- dest: '/etc/logrotate.d/wtmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/wtmp'
-29
View File
@@ -1,29 +0,0 @@
---
# vars file for ensure_log_rotation
package_list:
- name: 'logrotate'
state: 'present'
service_list:
- name: 'logrotate.timer'
state: 'started'
enabled: 'yes'
template_list:
- dest: '/etc/logrotate.conf'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.conf'
- dest: '/etc/logrotate.d/btmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/btmp'
- dest: '/etc/logrotate.d/wtmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/wtmp'
-29
View File
@@ -1,29 +0,0 @@
---
# vars file for ensure_log_rotation
package_list:
- name: 'logrotate'
state: 'present'
service_list:
- name: 'logrotate.timer'
state: 'started'
enabled: 'yes'
template_list:
- dest: '/etc/logrotate.conf'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.conf'
- dest: '/etc/logrotate.d/btmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/btmp'
- dest: '/etc/logrotate.d/wtmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/wtmp'
-29
View File
@@ -1,29 +0,0 @@
---
# vars file for ensure_log_rotation
package_list:
- name: 'logrotate'
state: 'present'
service_list:
- name: 'logrotate.timer'
state: 'started'
enabled: 'yes'
template_list:
- dest: '/etc/logrotate.conf'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.conf'
- dest: '/etc/logrotate.d/btmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/btmp'
- dest: '/etc/logrotate.d/wtmp'
force: 'yes'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/wtmp'