openvpn/tasks/asserts.yml
2020-08-17 11:48:37 +02:00

49 lines
1.5 KiB
YAML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
- name: 'openvpn | validate | ensure Easy-RSA request Country is defined'
assert:
that: openvpn_easyrsa_req_country is defined
msg: '<openvpn_easyrsa_req_country> is mandatory and must be defined.'
when:
- openvpn_server
- openvpn_client
- name: 'openvpn | validate | ensure Easy-RSA request Province is defined'
assert:
that: openvpn_easyrsa_req_province is defined
msg: '<openvpn_easyrsa_req_province> is mandatory and must be defined'
when:
- openvpn_server
- openvpn_client
- name: 'openvpn | validate | ensure Easy-RSA request City is defined'
assert:
that: openvpn_easyrsa_req_city is defined
msg: '<openvpn_easyrsa_req_city> is mandatory and must be defined'
when:
- openvpn_server
- openvpn_client
- name: 'openvpn | validate | ensure Easy-RSA request Organization is defined'
assert:
that: openvpn_easyrsa_req_org is defined
msg: '<openvpn_easyrsa_req_org> is mandatory and must be defined'
when:
- openvpn_server
- openvpn_client
- name: 'openvpn | validate | ensure Easy-RSA request Email is defined'
assert:
that: openvpn_easyrsa_req_email is defined
msg: '<openvpn_easyrsa_req_email> is mandatory and must be defined'
when:
- openvpn_server
- openvpn_client
- name: 'openvpn | validate | ensure Easy-RSA request OU is defined'
assert:
that: openvpn_easyrsa_req_ou is defined
msg: '<openvpn_easyrsa_req_ou> is mandatory and must be defined'
when:
- openvpn_server
- openvpn_client