Prefer Ansible Disitribution over Ansible OS Family
This commit is contained in:
parent
c866bbaf4f
commit
d14565866d
@ -9,17 +9,17 @@ template_list:
|
||||
group: 'root'
|
||||
mode: '0644'
|
||||
owner: 'root'
|
||||
src: '{{ ansible_os_family }}/{{ ansible_distribution_major_version }}/etc/logrotate.conf'
|
||||
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_os_family }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/btmp'
|
||||
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_os_family }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/wtmp'
|
||||
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/wtmp'
|
||||
|
@ -9,17 +9,17 @@ template_list:
|
||||
group: 'root'
|
||||
mode: '0644'
|
||||
owner: 'root'
|
||||
src: '{{ ansible_os_family }}/{{ ansible_distribution_major_version }}/etc/logrotate.conf'
|
||||
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_os_family }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/btmp'
|
||||
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_os_family }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/wtmp'
|
||||
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/wtmp'
|
||||
|
@ -9,17 +9,17 @@ template_list:
|
||||
group: 'root'
|
||||
mode: '0644'
|
||||
owner: 'root'
|
||||
src: '{{ ansible_os_family }}/{{ ansible_distribution_major_version }}/etc/logrotate.conf'
|
||||
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_os_family }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/btmp'
|
||||
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_os_family }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/wtmp'
|
||||
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/wtmp'
|
||||
|
@ -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_os_family }}/{{ ansible_distribution_major_version }}/etc/logrotate.conf'
|
||||
- dest: '/etc/logrotate.d/btmp'
|
||||
force: 'yes'
|
||||
group: 'root'
|
||||
mode: '0644'
|
||||
owner: 'root'
|
||||
src: '{{ ansible_os_family }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/btmp'
|
||||
- dest: '/etc/logrotate.d/wtmp'
|
||||
force: 'yes'
|
||||
group: 'root'
|
||||
mode: '0644'
|
||||
owner: 'root'
|
||||
src: '{{ ansible_os_family }}/{{ ansible_distribution_major_version }}/etc/logrotate.d/wtmp'
|
||||
|
Loading…
x
Reference in New Issue
Block a user