Browse Source

setup ca with fullchain for openvpn

python3
Edoardo Putti 7 years ago
parent
commit
f4d861dd58
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      roles/openvpn/tasks/main.yaml

+ 9
- 1
roles/openvpn/tasks/main.yaml View File

@ -96,10 +96,18 @@
register: set_pub_key
when: not openvpn_cert_key.stat.exists
- name: copy vpn ca public key
copy:
src: lilik_ca_x1.pem
dest: /etc/openvpn/lilik_ca_x1.pem
- name: copy vpn ca public key
copy:
src: lilik_ca_v1.pem
dest: /etc/openvpn/ca.crt
dest: /etc/openvpn/lilik_ca_v1.pem
- name: create fullchain
command: "cat /etc/openvpn/lilik_ca_x1.pem /etc/openvpn/lilik_ca_v1.pem > /etc/openvpn/ca.crt"
- name: write openvpn configuration
template:


Loading…
Cancel
Save