Update variable names. Revert to almalinux

This commit is contained in:
2021-05-19 13:51:37 +12:00
parent 06b5861999
commit d4d01e5718
7 changed files with 24 additions and 24 deletions

View File

@@ -1,9 +1,5 @@
# Install and configure rsyslog
---
- name: Debugger
debug:
msg: 'OS Family: {{ ansible_os_family }}'
- name: set OS dependent variables
tags:
- rsyslog
@@ -16,15 +12,18 @@
- "{{ ansible_os_family }}.yml"
- default.yml
- include: main_rh.yml
- name: Include Tasks for RHEL
include_tasks: main_rh.yml
when: >
ansible_os_family == 'RedHat' or
ansible_os_family == 'Rocky'
- include: main_deb.yml
- name: Include Tasks for Debian/Ubuntu
include_tasks: main_deb.yml
when: ansible_os_family == 'Debian'
- include: main_arch.yml
- name: Include Tasks for Archlinux
include_tasks: main_arch.yml
when: ansible_os_family == 'Archlinux'
- name: setup main configuration
@@ -48,7 +47,7 @@
file:
state: absent
path: "{{ rsyslog_include_path }}/"
when: purge_config
when: rsyslog_purge_config
- name: create additional configuration directory
tags:
@@ -102,7 +101,7 @@
group={{ rsyslog_file_group }}
mode={{ rsyslog_file_mode }}
with_items:
- "{{ items }}"
- "{{ rsyslog_items }}"
notify:
- restart rsyslog
when: rsyslog_os_supported