From 184dd56b1753a011f9e466bfff00be6955f90960 Mon Sep 17 00:00:00 2001 From: Accendit <36697826+Accendit@users.noreply.github.com> Date: Mon, 11 May 2020 21:40:04 +0200 Subject: [PATCH] Added a switches playbook --- site.yml | 21 +-------------------- switches.yml | 5 +++++ 2 files changed, 6 insertions(+), 20 deletions(-) create mode 100644 switches.yml diff --git a/site.yml b/site.yml index 44b324b..95ecc90 100644 --- a/site.yml +++ b/site.yml @@ -1,20 +1 @@ -- hosts: switches - - 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: \ No newline at end of file +- import_playbook: switches.yml \ No newline at end of file diff --git a/switches.yml b/switches.yml new file mode 100644 index 0000000..f1d76e1 --- /dev/null +++ b/switches.yml @@ -0,0 +1,5 @@ +- hosts: switches + + roles: + - common + - l2_interfaces \ No newline at end of file