1
0
Fork 0
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:
L3D 2021-02-18 12:15:29 +01:00
parent 98b6cbebbb
commit ddbc0d89c6
Signed by: l3d
GPG key ID: CD08445BFF4313D1
6 changed files with 27 additions and 2 deletions

View file

@ -1,3 +1,5 @@
---
exim4__state: present
# should we do a version check? (recomended)
submodules_versioncheck: false

View file

@ -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
View 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
View file

@ -0,0 +1,4 @@
---
exim4__package: exim
exim4__daemon: exim
exim4__configuration_file: /etc/exim/exim.conf

4
vars/default.yml Normal file
View file

@ -0,0 +1,4 @@
---
exim4__package: exim4
exim4__daemon: exim4
exim4__configuration_file: /etc/exim4/update-exim4.conf.conf

View file

@ -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'