diff --git a/inventory.yaml b/inventory.yaml deleted file mode 100644 index c091a10..0000000 --- a/inventory.yaml +++ /dev/null @@ -1,4 +0,0 @@ -switches: - hosts: - sw01: - ansible_host: 192.168.1.149 \ No newline at end of file diff --git a/inventory.yml b/inventory.yml new file mode 100644 index 0000000..66a5afa --- /dev/null +++ b/inventory.yml @@ -0,0 +1,6 @@ +all: + children: + switches: + hosts: + sw01: + ansible_host: 192.168.1.149 \ No newline at end of file diff --git a/site.yaml b/site.yaml deleted file mode 100644 index df41b35..0000000 --- a/site.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- hosts: switches - - tasks: - - name: set a banner - ios_banner: - banner: login - text: | - Hallo jongens - Kom je doen jong - state: present \ No newline at end of file diff --git a/site.yml b/site.yml new file mode 100644 index 0000000..44b324b --- /dev/null +++ b/site.yml @@ -0,0 +1,20 @@ +- 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