holepunch/add-client-openvpn.yaml

14 lines
381 B
YAML
Raw Normal View History

2023-02-07 17:45:19 +00:00
- name: Add OpenVPN client
hosts: clubelec_ovh_vm2
vars_prompt:
- name: client
prompt: Name of the OpenVPN client
private: false
tasks:
- name: Create an .ovpn file for the user
script: ./bash/add-client-openvpn.sh {{ client }}
- name: Retrive .ovpn file
fetch:
src: ./{{ client }}.ovpn
dest: ./{{ client }}.ovpn
flat: yes