mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-25 02:19:10 -07:00
Add mlnxos_config module (#33356)
* Add new module mlnxos_config Signed-off-by: Samer Deeb <samerd@mellanox.com> * Add unit-test for mlnxos_config module Signed-off-by: Samer Deeb <samerd@mellanox.com>
This commit is contained in:
parent
addb882138
commit
717b6e7c1a
8 changed files with 624 additions and 7 deletions
|
@ -29,7 +29,6 @@ from ansible.utils.display import Display
|
|||
|
||||
from ansible.module_utils.mlnxos import mlnxos_provider_spec
|
||||
|
||||
|
||||
try:
|
||||
from __main__ import display
|
||||
except ImportError:
|
||||
|
@ -61,6 +60,8 @@ class ActionModule(_ActionModule):
|
|||
self._play_context.private_key_file
|
||||
pc.timeout = int(provider['timeout'] or C.PERSISTENT_COMMAND_TIMEOUT)
|
||||
pc.become = provider['authorize'] or False
|
||||
if pc.become:
|
||||
pc.become_method = 'enable'
|
||||
pc.become_pass = provider['auth_pass']
|
||||
|
||||
display.vvv('using connection plugin %s' %
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue