From 35eb5001f3fb61209f1eb761e8113186d757b2aa Mon Sep 17 00:00:00 2001 From: VALKIRIA ACUATICA <56233573+valkiriaaquatica@users.noreply.github.com> Date: Tue, 8 Oct 2024 19:35:50 +0200 Subject: [PATCH] just two more examples to better quick understanding --- plugins/modules/pfsense_openvpn_server.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/plugins/modules/pfsense_openvpn_server.py b/plugins/modules/pfsense_openvpn_server.py index 89bc513c..cfc891f3 100644 --- a/plugins/modules/pfsense_openvpn_server.py +++ b/plugins/modules/pfsense_openvpn_server.py @@ -257,6 +257,27 @@ - name: "Add OpenVPN server" pfsense_openvpn_server: name: 'OpenVPN Server' + mode: server_user + +- name: "Add OpenVPN server with basic configuration" + pfsense_openvpn_server: + name: 'OpenVPN Server Ansible' + ca: name-your-ca-authority + cert: name-your-server-certificate + tunnel_network: 10.21.40.0/24 + local_network: 172.16.3.0/24 + mode: server_tls_user + +- name: "Add OpenVPN server with verbose mode and Cloudflare DNS" + pfsense_openvpn_server: + name: 'OpenVPN Server Ansible Cloudflare' + ca: name-your-ca-authority + cert: name-your-server-certificate + tunnel_network: 10.10.10.0/24 + local_network: 10.72.40.0/24 + dns_server1: 1.1.1.1 + verbosity_level: 4 + mode: server_user """ RETURN = r'''