Install, configure and start/stop libreswan tunnels
tasks:
- include_role: name=ansible-libreswanThese extra vars should be used once with the required vars defined:
ansible-playbook libreswan.yml -e create_ca_cert=True -e set_nssdb_secret=True -D-
set_nssdb_secretindicate that you want to create and set the secret for the DB -
create_ca_cert=Trueindicate that you want to create your own CA certificate
Otherwise, play it like that:
ansible-playbook libreswan.yml -DTo start all the tunnel set in your playbook :
ansible-playbook libreswan.yml -D -e libreswan_manage_start=True