mirror of
https://github.com/roles-ansible/ansible_role_exim4.git
synced 2024-08-16 10:09:49 +02:00
loading os specific config
This commit is contained in:
parent
98b6cbebbb
commit
ddbc0d89c6
6 changed files with 27 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
|||
---
|
||||
exim4__state: present
|
||||
|
||||
# should we do a version check? (recomended)
|
||||
submodules_versioncheck: false
|
||||
|
|
|
@ -1,3 +1,14 @@
|
|||
---
|
||||
- include_tasks: versioncheck.yml
|
||||
- name: Perform versionscheck if enabled
|
||||
ansible.builtin.include_tasks: versioncheck.yml
|
||||
when: submodules_versioncheck|bool
|
||||
|
||||
- name: Load a variable file based on OS Family
|
||||
include_vars: "{{ lookup('first_found', params) }}"
|
||||
vars:
|
||||
params:
|
||||
files:
|
||||
- "{{ ansible_os_family }}.yml"
|
||||
- default.yml
|
||||
paths:
|
||||
- 'vars'
|
||||
|
|
4
vars/Debian.yml
Normal file
4
vars/Debian.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
exim4__package: exim4
|
||||
exim4__daemon: exim4
|
||||
exim4__configuration_file: /etc/exim4/update-exim4.conf.conf
|
4
vars/RedHat.yml
Normal file
4
vars/RedHat.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
exim4__package: exim
|
||||
exim4__daemon: exim
|
||||
exim4__configuration_file: /etc/exim/exim.conf
|
4
vars/default.yml
Normal file
4
vars/default.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
exim4__package: exim4
|
||||
exim4__daemon: exim4
|
||||
exim4__configuration_file: /etc/exim4/update-exim4.conf.conf
|
|
@ -1,4 +1,4 @@
|
|||
---
|
||||
# versionscheck
|
||||
playbook_version_number: 02 # should be a integer
|
||||
playbook_version_path: 'role-<some_unique_string>.version'
|
||||
playbook_version_path: 'do1jlr.exim4_smarthost.version'
|
||||
|
|
Loading…
Reference in a new issue