Add netscaler_save_config module (#25614)

This commit is contained in:
George Nikolopoulos
2017-06-26 16:16:52 +03:00
committed by Ganesh Nalawade
parent 6b76bc924f
commit 0bf64aa241
7 changed files with 368 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
---
testcase: "*"
test_cases: []
nitro_user: nsroot
nitro_pass: nsroot

View File

@@ -0,0 +1,5 @@
[netscaler]
netscaler01 nsip=172.18.0.2 nitro_user=nsroot nitro_pass=nsroot

View File

@@ -0,0 +1,2 @@
---
- { include: nitro.yaml, tags: ['nitro'] }

View File

@@ -0,0 +1,14 @@
- name: collect all nitro test cases
find:
paths: "{{ role_path }}/tests/nitro"
patterns: "{{ testcase }}.yaml"
register: test_cases
- name: set test_items
set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}"
- name: run test case
include: "{{ test_case_to_run }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run

View File

@@ -0,0 +1,8 @@
---
- name: Save configuration
delegate_to: localhost
netscaler_save_config:
nitro_user: "{{nitro_user}}"
nitro_pass: "{{nitro_pass}}"
nsip: "{{nsip}}"