diff --git a/roles/logrotate/files/syslog_CentOS_7 b/roles/logrotate/files/syslog_RedHat_7 similarity index 100% rename from roles/logrotate/files/syslog_CentOS_7 rename to roles/logrotate/files/syslog_RedHat_7 diff --git a/roles/logrotate/tasks/main.yml b/roles/logrotate/tasks/main.yml index b01320963faec46cfc24df222fe0f6a84483eb1d..a1ca79dd6c52beb6f3c36f43d32659bc8c3ec2fa 100644 --- a/roles/logrotate/tasks/main.yml +++ b/roles/logrotate/tasks/main.yml @@ -8,7 +8,7 @@ - name: /etc/logrotate.d/syslog copy: - src: "syslog_{{ ansible_distribution }}_{{ ansible_distribution_major_version }}" + src: "syslog_{{ ansible_os_family }}_{{ ansible_distribution_major_version }}" dest: /etc/logrotate.d/syslog become: true when: ansible_os_family == 'RedHat' \ No newline at end of file