mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
This commit is contained in:
parent
eedca027ee
commit
f108f8ef72
1 changed files with 4 additions and 1 deletions
|
@ -252,7 +252,10 @@ def main():
|
||||||
elif state == 'latest':
|
elif state == 'latest':
|
||||||
installed, missing = npm.list()
|
installed, missing = npm.list()
|
||||||
outdated = npm.list_outdated()
|
outdated = npm.list_outdated()
|
||||||
if len(missing) or len(outdated):
|
if len(missing):
|
||||||
|
changed = True
|
||||||
|
npm.install()
|
||||||
|
if len(outdated):
|
||||||
changed = True
|
changed = True
|
||||||
npm.update()
|
npm.update()
|
||||||
else: #absent
|
else: #absent
|
||||||
|
|
Loading…
Reference in a new issue