forked from ntc-training/codelint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaybook.yml
More file actions
24 lines (20 loc) · 734 Bytes
/
playbook.yml
File metadata and controls
24 lines (20 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This comment is indented at the wrong level
- name: DEPLOYING SNMP CONFIGURATIONS ON IOS AND JUNOS BASED ON THE NETWORK OS TYPE FROM A DICTIONARY
hosts: iosxe,vmx
vars:
ansible_connection: network_cli
vendor_commands :
ios: |
snmp-server community ntc-team RO
snmp-server location FL_HQ
snmp-server contact JAMES_CHARLES
ios: |
set snmp location FL_HQ
set snmp contact JAMES_CHARLES
set snmp community public authorization read-only
tasks:
- name: Task 1 - ensure snmp commands exist on ios and vmx devices
cli_config:
config: "{{ vendor_commands[ansible_network_os] }}"
- cli_config:
msg: A task without a name, so lazy!