mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
fix connection gets overridden by network_cli for transport nxapi,eapi net_* modules (#34778)
* fix connection gets overridden by network_cli for transport nxapi,eapi net_* modules Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * Define functions in individual action plugins to avoid code duplication Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * Add net_* eos tests for eapi Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * update plugin code
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
---
|
||||
- debug: msg="START connection={{ ansible_connection }} nxos_user basic test"
|
||||
- debug: msg="Using provider={{ connection.transport }}"
|
||||
when: ansible_connection == "local"
|
||||
|
||||
- name: Remove old entries of user
|
||||
nxos_user:
|
||||
aggregate:
|
||||
@@ -51,3 +55,5 @@
|
||||
that:
|
||||
- 'result.changed == true'
|
||||
- '"no username" in result.commands[0]'
|
||||
|
||||
- debug: msg="END connection={{ ansible_connection }} nxos_user basic test"
|
||||
|
||||
Reference in New Issue
Block a user