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 %}
|
{% import_yaml "packages.yaml" as packages %}
|
||||||
{% for pkg in packages %}
|
{% for pkg in packages %}
|
||||||
{{ pkg }}:
|
{{ pkg }}:
|
||||||
chocolatey.upgraded:
|
chocolatey.installed:
|
||||||
- name: {{ pkg }}
|
- name: {{ pkg }}
|
||||||
- require:
|
- require:
|
||||||
- chocolateyBootstrap
|
- chocolateyBootstrap
|
||||||
- chocolateySource
|
- chocolateySource
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
Upgrade All:
|
||||||
|
chocolatey.upgraded:
|
||||||
|
- name: all
|
||||||
|
- require:
|
||||||
|
- chocolateyBootstrap
|
||||||
|
|
||||||
# windowsUpdates:
|
# windowsUpdates:
|
||||||
# wua.uptodate:
|
# wua.uptodate:
|
||||||
|
Loading…
Reference in New Issue
Block a user