mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
* fix command order * add integration test * test cleanup * remove redudant commands
This commit is contained in:
committed by
Trishna Guha
parent
87989b5c63
commit
602a618e60
@@ -181,16 +181,16 @@ def map_obj_to_commands(updates, module):
|
||||
commands.append('no username %s' % want['name'])
|
||||
continue
|
||||
|
||||
if needs_update('configured_password'):
|
||||
if update_password == 'always' or not have:
|
||||
add('secret %s' % want['configured_password'])
|
||||
|
||||
if needs_update('role'):
|
||||
add('role %s' % want['role'])
|
||||
|
||||
if needs_update('privilege'):
|
||||
add('privilege %s' % want['privilege'])
|
||||
|
||||
if needs_update('configured_password'):
|
||||
if update_password == 'always' or not have:
|
||||
add('secret %s' % want['configured_password'])
|
||||
|
||||
if needs_update('sshkey'):
|
||||
add('sshkey %s' % want['sshkey'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user