Last active
July 9, 2020 13:42
-
-
Save nleiva/368ef09ace48a8ea9875ea17575b4c5c to your computer and use it in GitHub Desktop.
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
vars: | |
map: | |
ios: "cisco" | |
junos: "juniper" | |
CentOS: "iptables" | |
RedHat: "iptables" | |
tasks: | |
- name: Set platform for Networking devices | |
set_fact: | |
platform: "{{ map[ansible_net_system] }}" | |
when: ansible_net_system is defined | |
- name: Set platform for Linux systems | |
set_fact: | |
platform: "{{ map[ansible_distribution] }}" | |
when: ansible_distribution is defined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment