It's possible to deploy an ipsec connection on Linux clients. Supported distributives are: Debian, Ubuntu, CentOS, Fedora
The playbook is deploy_client.yml
client_ip
- The IP address of your client machine (You can uselocalhost
in order to deploy locally)vpn_user
- The username. (Ensure that you have valid certificates and keys in theconfigs/SERVER_ip/pki/
directory)ssh_user
- The username that we need to use in order to connect to the client machine via SSH (ignore if you are deploying locally)server_ip
- The vpn server ip address
ansible-playbook deploy_client.yml -e 'client_ip=client.com vpn_user=jack server_ip=vpn-server.com ssh_user=root'
If the user requires sudo password use the following argument: --ask-become-pass