ansible-stunnel is an Ansible role to install and configure stunnel on a debian based OS.
It performs:
- installation of stunnel package(s)
- configuration of tunnels
- creation of systemd unit, start and enable
git clone https://github.com/lgaggini/ansible-stunnel
The configuration is done by vars listed and explained in defaults/main.yml file.
- name: bootstrap an ubuntu cloud image for stunnel
hosts: mailserver
vars_files:
- group_vars/stunnel.yml
roles:
- { role: stunnel, tags: ['stunnel'] }