Skip to content

Instantly share code, notes, and snippets.

The idea was to write code generic enough to be able to handle multiple variable sets so that I could run the same code and generate a different VPN depending on the particular host variable. Here is some concept code:
host_vars at inventory level
file: myasa.yml
contents:
---
vpnpeername: 'skyppyvpn'
...
The idea was to write code generic enough to be able to handle multiple variable sets so that I could run the same code and generate a different VPN depending on the particular host variable. Here is some concept code:
host_vars at inventory level
file: myasa.yml
contents:
---
vpnpeername: 'VPNPEER1'
...
Hereis the corrected group_vars file:
skippy:
services_legacy_network_description: 'Skippy Legacy Data Center Network'
services_legacy_network_ip: '10.10.1.0'
services_legacy_network_mask: '255.255.255.0'
And in the role, reference these variables like this:
- name: configure network object-group for Skippy Temecula