mirror of
https://github.com/zahodi/ansible-mikrotik.git
synced 2025-06-21 01:25:47 +02:00
add sample test task to use mt_facts module temporary,
Add Pipfile for enabling pipenv
This commit is contained in:
parent
b8a95fa401
commit
d1fe485042
4 changed files with 108 additions and 0 deletions
6
Pipfile
Normal file
6
Pipfile
Normal file
|
@ -0,0 +1,6 @@
|
|||
[[source]]
|
||||
url = "https://pypi.python.org/simple"
|
||||
verify_ssl = true
|
||||
|
||||
[packages]
|
||||
ansible = "2.4.2.0"
|
85
Pipfile.lock
generated
Normal file
85
Pipfile.lock
generated
Normal file
|
@ -0,0 +1,85 @@
|
|||
{
|
||||
"_meta": {
|
||||
"hash": {
|
||||
"sha256": "1973d9e9e2050096ddc5b35f2633f9d83cecb5d93937c9ee1d2d9948e832fc8c"
|
||||
},
|
||||
"requires": {},
|
||||
"sources": [
|
||||
{
|
||||
"url": "https://pypi.python.org/simple",
|
||||
"verify_ssl": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"default": {
|
||||
"Jinja2": {
|
||||
"hash": "sha256:74c935a1b8bb9a3947c50a54766a969d4846290e1e788ea44c1392163723c3bd",
|
||||
"version": "==2.10"
|
||||
},
|
||||
"MarkupSafe": {
|
||||
"hash": "sha256:a6be69091dac236ea9c6bc7d012beab42010fa914c459791d627dad4910eb665",
|
||||
"version": "==1.0"
|
||||
},
|
||||
"PyNaCl": {
|
||||
"hash": "sha256:0bfa0d94d2be6874e40f896e0a67e290749151e7de767c5aefbad1121cad7512",
|
||||
"version": "==1.2.1"
|
||||
},
|
||||
"PyYAML": {
|
||||
"hash": "sha256:592766c6303207a20efc445587778322d7f73b161bd994f227adaa341ba212ab",
|
||||
"version": "==3.12"
|
||||
},
|
||||
"ansible": {
|
||||
"hash": "sha256:315f1580b20bbc2c2f1104f8b5e548c6b4cac943b88711639c5e0d4dfc4d7658",
|
||||
"version": "==2.4.2.0"
|
||||
},
|
||||
"asn1crypto": {
|
||||
"hash": "sha256:2f1adbb7546ed199e3c90ef23ec95c5cf3585bac7d11fb7eb562a3fe89c64e87",
|
||||
"version": "==0.24.0"
|
||||
},
|
||||
"bcrypt": {
|
||||
"hash": "sha256:0f317e4ffbdd15c3c0f8ab5fbd86aa9aabc7bea18b5cc5951b456fe39e9f738c",
|
||||
"version": "==3.1.4"
|
||||
},
|
||||
"cffi": {
|
||||
"hash": "sha256:248198cb714fe09f5c60b6acba3675d52199c6142641536796cdf89dd45e5590",
|
||||
"version": "==1.11.2"
|
||||
},
|
||||
"cryptography": {
|
||||
"hash": "sha256:69285f5615507b6625f89ea1048addd1d9218585fb886eb90bdebb1d2b2d26f5",
|
||||
"version": "==2.1.4"
|
||||
},
|
||||
"enum34": {
|
||||
"hash": "sha256:6bd0f6ad48ec2aa117d3d141940d484deccda84d4fcd884f5c3d93c23ecd8c79",
|
||||
"version": "==1.1.6"
|
||||
},
|
||||
"idna": {
|
||||
"hash": "sha256:8c7309c718f94b3a625cb648ace320157ad16ff131ae0af362c9f21b80ef6ec4",
|
||||
"version": "==2.6"
|
||||
},
|
||||
"ipaddress": {
|
||||
"hash": "sha256:200d8686011d470b5e4de207d803445deee427455cd0cb7c982b68cf82524f81",
|
||||
"version": "==1.0.19"
|
||||
},
|
||||
"paramiko": {
|
||||
"hash": "sha256:8851e728e8b7590989e68e3936c48ee3ca4dad91d29e3d7ff0305b6c5fc582db",
|
||||
"version": "==2.4.0"
|
||||
},
|
||||
"pyasn1": {
|
||||
"hash": "sha256:d5cd6ed995dba16fad0c521cfe31cd2d68400b53fcc2bce93326829be73ab6d1",
|
||||
"version": "==0.4.2"
|
||||
},
|
||||
"pycparser": {
|
||||
"hash": "sha256:99a8ca03e29851d96616ad0404b4aad7d9ee16f25c9f9708a11faf2810f7b226",
|
||||
"version": "==2.18"
|
||||
},
|
||||
"setuptools": {
|
||||
"hash": "sha256:155c2ec9fdcc00c3973d966b416e1cf3a1e7ce75f4c09fb760b23f94b935926e",
|
||||
"version": "==38.4.0"
|
||||
},
|
||||
"six": {
|
||||
"hash": "sha256:832dc0e10feb1aa2c68dcc57dbb658f1c7e65b9b61af69048abc87a2db00a0eb",
|
||||
"version": "==1.11.0"
|
||||
}
|
||||
},
|
||||
"develop": {}
|
||||
}
|
14
tests/integration/tasks/test-facts.yml
Normal file
14
tests/integration/tasks/test-facts.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
- name: Get mikrotik system facts
|
||||
mt_facts:
|
||||
hostname: "{{ mt_hostname }}"
|
||||
username: "{{ mt_user }}"
|
||||
password: "{{ mt_pass }}"
|
||||
filter: "{{ item }}"
|
||||
with_items:
|
||||
- interface_ethernet
|
||||
- system_ntp_client
|
||||
- system_routerboard
|
||||
- ip_route
|
||||
- ip_dns
|
||||
- ip_address
|
|
@ -154,3 +154,6 @@
|
|||
###################
|
||||
- include: tasks/test-interface-wireless.yml
|
||||
tags: interface-wireless
|
||||
|
||||
- include: tasks/test-facts.yml
|
||||
tags: get-facts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue