feat: add test for Rocky Linux 8 #1

Merged
xoxys merged 3 commits from test-rocky8 into master 2022-01-26 20:00:07 +00:00
4 changed files with 17 additions and 1 deletions
Showing only changes of commit 1a0e26a998 - Show all commits

View File

@ -1,2 +1,14 @@
--- ---
- 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
- include_tasks: setup.yml - include_tasks: setup.yml

View File

@ -59,7 +59,7 @@
- name: Ensure openvpn service is up and running - name: Ensure openvpn service is up and running
service: service:
name: "openvpn@{{ openvpn_client_name }}" name: "{{ __openvpn_service_prefix }}@{{ openvpn_client_name }}"
state: "{{ openvpn_service_state }}" state: "{{ openvpn_service_state }}"
enabled: yes enabled: yes
become: True become: True

2
vars/redhat-7.yml Normal file
View File

@ -0,0 +1,2 @@
---
__openvpn_service_prefix: openvpn

2
vars/redhat-8.yml Normal file
View File

@ -0,0 +1,2 @@
---
__openvpn_service_prefix: openvpn-client