mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
* fix command order * add integration test * test cleanup * remove redudant commands
This commit is contained in:
parent
87989b5c63
commit
602a618e60
2 changed files with 27 additions and 7 deletions
|
@ -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'])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue