Begin Switch Infrastructure config

This commit is contained in:
Patrick Toal
2019-06-20 11:24:53 -04:00
parent 6e2205a046
commit 11b9c3071d
10 changed files with 159 additions and 1 deletions

View File

@@ -1,10 +1,27 @@
# Toal Lab Site Playbook
- name: Common Lab Machine Setup
hosts: all
hosts: all,!switch01
become: true
roles:
- toal-common
- name: Set Network OS from Netbox info.
gather_facts: no
hosts: switch01
tasks:
- name: Set network os type for Cisco
set_fact: ansible_network_os="ios"
when: "'Cisco IOS' in platforms"
- name: Configure infrastructure
hosts: switch01
become_method: enable
connection: network_cli
gather_facts: no
roles:
- toallab.infrastructure
- name: Ansible Red Demo Environment
hosts: ansible-red
become: false