mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
This commit is contained in:
@@ -252,7 +252,10 @@ def main():
|
||||
elif state == 'latest':
|
||||
installed, missing = npm.list()
|
||||
outdated = npm.list_outdated()
|
||||
if len(missing) or len(outdated):
|
||||
if len(missing):
|
||||
changed = True
|
||||
npm.install()
|
||||
if len(outdated):
|
||||
changed = True
|
||||
npm.update()
|
||||
else: #absent
|
||||
|
||||
Reference in New Issue
Block a user