mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
Fix authorize in net agnostic modules (#33549)
* This should fix authorize for net_* modules * transport: none means network_cli in eos For now anyway
This commit is contained in:
parent
961c3fcca7
commit
fdc547601c
2 changed files with 4 additions and 3 deletions
|
@ -70,6 +70,7 @@ class ActionModule(ActionBase):
|
|||
if 'authorize' in self.provider.keys():
|
||||
play_context.become = self.provider['authorize'] or False
|
||||
play_context.become_pass = self.provider['auth_pass']
|
||||
play_context.become_method = 'enable'
|
||||
|
||||
if self._play_context.connection == 'local':
|
||||
socket_path = self._start_connection(play_context)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue