This commit is contained in:
parent
c00ab577df
commit
def983841b
@ -1,4 +1,16 @@
|
||||
---
|
||||
- include_vars: "{{ var_files }}"
|
||||
vars:
|
||||
var_files: "{{ lookup('first_found', params, errors='ignore') }}"
|
||||
params:
|
||||
files:
|
||||
- "{{ ansible_lsb.id | default('') | lower }}.yml"
|
||||
- "{{ ansible_os_family | lower }}-{{ ansible_distribution_major_version }}.yml"
|
||||
- "{{ ansible_os_family | lower }}.yml"
|
||||
paths:
|
||||
- "vars"
|
||||
when: var_files
|
||||
|
||||
- import_tasks: prepare.yml
|
||||
- import_tasks: install.yml
|
||||
- import_tasks: tls.yml
|
||||
|
@ -11,11 +11,7 @@
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
loop:
|
||||
- "java-{{ unifi_openjdk_version }}-openjdk"
|
||||
- unzip
|
||||
- wget
|
||||
- pyOpenSSL
|
||||
loop: "{{ __unifi_deps }}"
|
||||
|
||||
- name: Create group '{{ unifi_group }}'
|
||||
group:
|
||||
|
6
vars/redhat-7.yml
Normal file
6
vars/redhat-7.yml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
__unifi_deps:
|
||||
- "java-{{ unifi_openjdk_version }}-openjdk"
|
||||
- unzip
|
||||
- wget
|
||||
- pyOpenSSL
|
6
vars/redhat-8.yml
Normal file
6
vars/redhat-8.yml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
__unifi_deps:
|
||||
- "java-{{ unifi_openjdk_version }}-openjdk"
|
||||
- unzip
|
||||
- wget
|
||||
- python3-pyOpenSSL
|
Loading…
Reference in New Issue
Block a user