--- - name: Converge hosts: all roles: - ansible-role-strongswan vars: strongswan_connections: test-ipsec: left: '{{ ansible_all_ipv4_addresses[0] }}' leftsubnet: 10.0.0.0/24 right: 192.168.0.2 rightsubnet: 10.1.0.0/24 psk: secret pre_tasks: - name: update apt cache ansible.builtin.apt: update_cache: true