mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-22 17:09:08 -07:00
nxos_vtp_*: Fixes n6k issues (#55737)
* Add n6k support for nxos_vtp_domain * Add n6k support for nxos_vtp_version * Add n6k support for nxos_vtp_password * Fix shippable error
This commit is contained in:
parent
dd0b0ae47b
commit
d55c0cf8dc
6 changed files with 101 additions and 50 deletions
|
@ -3,7 +3,18 @@
|
|||
- debug: msg="Using provider={{ connection.transport }}"
|
||||
when: ansible_connection == "local"
|
||||
|
||||
- set_fact: vtp_run="true"
|
||||
- set_fact: vtp_run="false"
|
||||
when: platform is search('N3K-F|N9K-F')
|
||||
|
||||
- block:
|
||||
- name: disable feature vtp
|
||||
nxos_feature:
|
||||
feature: vtp
|
||||
provider: "{{ connection }}"
|
||||
state: disabled
|
||||
ignore_errors: yes
|
||||
|
||||
- name: enable feature vtp
|
||||
nxos_feature:
|
||||
feature: vtp
|
||||
|
@ -28,6 +39,8 @@
|
|||
that:
|
||||
- "result.changed == false"
|
||||
|
||||
when: vtp_run
|
||||
|
||||
always:
|
||||
- name: disable feature vtp
|
||||
nxos_feature:
|
||||
|
|
|
@ -3,7 +3,18 @@
|
|||
- debug: msg="Using provider={{ connection.transport }}"
|
||||
when: ansible_connection == "local"
|
||||
|
||||
- set_fact: vtp_run="true"
|
||||
- set_fact: vtp_run="false"
|
||||
when: platform is search('N3K-F|N9K-F')
|
||||
|
||||
- block:
|
||||
- name: disable feature vtp
|
||||
nxos_feature:
|
||||
feature: vtp
|
||||
provider: "{{ connection }}"
|
||||
state: disabled
|
||||
ignore_errors: yes
|
||||
|
||||
- name: enable feature vtp
|
||||
nxos_feature:
|
||||
feature: vtp
|
||||
|
@ -49,6 +60,8 @@
|
|||
|
||||
- assert: *false
|
||||
|
||||
when: vtp_run
|
||||
|
||||
always:
|
||||
- name: disable feature vtp
|
||||
nxos_feature:
|
||||
|
|
|
@ -3,7 +3,18 @@
|
|||
- debug: msg="Using provider={{ connection.transport }}"
|
||||
when: ansible_connection == "local"
|
||||
|
||||
- set_fact: vtp_run="true"
|
||||
- set_fact: vtp_run="false"
|
||||
when: platform is search('N3K-F|N9K-F')
|
||||
|
||||
- block:
|
||||
- name: disable feature vtp
|
||||
nxos_feature:
|
||||
feature: vtp
|
||||
provider: "{{ connection }}"
|
||||
state: disabled
|
||||
ignore_errors: yes
|
||||
|
||||
- name: enable feature vtp
|
||||
nxos_feature:
|
||||
feature: vtp
|
||||
|
@ -28,6 +39,8 @@
|
|||
that:
|
||||
- "result.changed == false"
|
||||
|
||||
when: vtp_run
|
||||
|
||||
always:
|
||||
- name: disable feature vtp
|
||||
nxos_feature:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue