Added a switches playbook
This commit is contained in:
21
site.yml
21
site.yml
@ -1,20 +1 @@
|
|||||||
- hosts: switches
|
- import_playbook: switches.yml
|
||||||
|
|
||||||
tasks:
|
|
||||||
- name: set a banner
|
|
||||||
ios_banner:
|
|
||||||
banner: login
|
|
||||||
text: |
|
|
||||||
Hallo jongens
|
|
||||||
Kom je doen jong
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- debug:
|
|
||||||
var: hostvars
|
|
||||||
|
|
||||||
# - name: configure vlans
|
|
||||||
# ios_config:
|
|
||||||
# lines:
|
|
||||||
# - vlan "{{ id }}"
|
|
||||||
# - name "{{ name }}"
|
|
||||||
# for:
|
|
||||||
5
switches.yml
Normal file
5
switches.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
- hosts: switches
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- common
|
||||||
|
- l2_interfaces
|
||||||
Reference in New Issue
Block a user