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
2 changed files with 13 additions and 21 deletions
Showing only changes of commit 3bffb1b180 - Show all commits

View File

@ -1,7 +1,7 @@
---
- name: Restart openvpn client
service:
name: "openvpn@{{ openvpn_client_name }}"
name: "{{ __openvpn_service_prefix }}@{{ openvpn_client_name }}"
state: "{{ 'restarted' if openvpn_service_state == 'started' else 'stopped' }}"
enabled: yes
listen: __openvpn_restart

View File

@ -32,26 +32,18 @@
dest: "{{ item.dest }}"
mode: "{{ item.mode }}"
loop:
- {
src: "{{ openvpn_client_ca_source | default('') }}",
dest: "/etc/openvpn/certs/{{ openvpn_client_ca_file }}",
mode: "0640",
}
- {
src: "{{ openvpn_client_cert_source | default('') }}",
dest: "/etc/openvpn/certs/{{ openvpn_client_cert_file }}",
mode: "0640",
}
- {
src: "{{ openvpn_client_key_source | default('') }}",
dest: "/etc/openvpn/certs/{{ openvpn_client_key_file }}",
mode: "0600",
}
- {
src: "{{ openvpn_client_ta_source | default('') }}",
dest: "/etc/openvpn/certs/{{ openvpn_client_ta_file }}",
mode: "0600",
}
- src: "{{ openvpn_client_ca_source | default('') }}"
dest: "/etc/openvpn/certs/{{ openvpn_client_ca_file }}"
mode: "0640"
- src: "{{ openvpn_client_cert_source | default('') }}"
dest: "/etc/openvpn/certs/{{ openvpn_client_cert_file }}"
mode: "0640"
- src: "{{ openvpn_client_key_source | default('') }}"
dest: "/etc/openvpn/certs/{{ openvpn_client_key_file }}"
mode: "0600"
- src: "{{ openvpn_client_ta_source | default('') }}"
dest: "/etc/openvpn/certs/{{ openvpn_client_ta_file }}"
mode: "0600"
loop_control:
label: "{{ item.dest }}"
when: item.src | length > 0