blob: 7219344891cd9b6974909ed79147f6d5e8a8762d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
---
## TODO: disable sntp if dellos6_sntp is not defined?
- name: configure SNTP
when: dellos6_sntp is defined
dellos6_config:
lines:
- "sntp server {{ dellos6_sntp.server }}"
- sntp unicast client enable
notify: save configuration
## TODO: disable logging if dellos6_logging is not defined?
- name: configure logging
when: dellos6_logging is defined
dellos6_config:
lines:
- "logging {{ dellos6_logging.server }}"
- exit
notify: save configuration
## TODO: disable snmp if dellos6_snmp is not defined?
- name: configure snmp
when: dellos6_snmp is defined
dellos6_config:
lines:
- '{% if "location" in dellos6_snmp %}snmp-server location "{{ dellos6_snmp.location }}"{% else %}no snmp-server location{% endif %}'
- '{% if "contact" in dellos6_snmp %}snmp-server contact "{{ dellos6_snmp.contact }}"{% else %}no snmp-server contact{% endif %}'
- 'snmp-server community {{ dellos6_snmp.community }}'
notify: save configuration
|