Skip to content

Commit

Permalink
update playbook collection cisco ios
Browse files Browse the repository at this point in the history
  • Loading branch information
brahmanim committed Jul 12, 2022
1 parent c0777d2 commit 9f1674c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions collection_cisco_ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
gather_facts: no

vars:
ansible_network_os: "cisco.ios.ios"
ansible_network_os: "cisco.ios.ios"

tasks:
###
# Collect data
#
- name: Gather facts (eos)
arista.eos.eos_facts:
when: ansible_network_os == 'arista.eos.eos'
# - name: Gather facts (eos)
# arista.eos.eos_facts:
# when: ansible_network_os == 'arista.eos.eos'

- name: Gather facts (ios)
cisco.ios.ios_facts:
Expand Down Expand Up @@ -80,10 +80,10 @@
when: ansible_network_os == 'vyos.vyos.vyos'

- name: backup switch (ios)
cisco.ios.ios_config:
backup: yes
register: backup_ios_location
when: ansible_network_os == 'cisco.ios.ios'
cisco.ios.ios_config:
backup: yes
register: backup_ios_location
when: ansible_network_os == 'cisco.ios.ios'

- name: Create backup dir
file:
Expand Down

0 comments on commit 9f1674c

Please sign in to comment.