This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |