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:
Adam Goldsmith 2020-01-16 12:35:56 -05:00
parent 57dd592298
commit cf89324625

View File

@ -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: