Install packages, then upgrade all instead of upgrading each package
Upgrading all allows for dependencies, and the 'installed' check is faster than the 'upgrade' check
This commit is contained in:
parent
57dd592298
commit
cf89324625
@ -11,13 +11,18 @@ chocolateySource:
|
||||
{% import_yaml "packages.yaml" as packages %}
|
||||
{% for pkg in packages %}
|
||||
{{ pkg }}:
|
||||
chocolatey.upgraded:
|
||||
chocolatey.installed:
|
||||
- name: {{ pkg }}
|
||||
- require:
|
||||
- chocolateyBootstrap
|
||||
- chocolateySource
|
||||
{% endfor %}
|
||||
|
||||
Upgrade All:
|
||||
chocolatey.upgraded:
|
||||
- name: all
|
||||
- require:
|
||||
- chocolateyBootstrap
|
||||
|
||||
# windowsUpdates:
|
||||
# wua.uptodate:
|
||||
|
Loading…
Reference in New Issue
Block a user