diff options
author | Dag Wieers <dag@wieers.com> | 2017-03-02 07:22:33 +0100 |
---|---|---|
committer | Matt Davis <nitzmahone@users.noreply.github.com> | 2017-03-01 22:22:33 -0800 |
commit | 17a39e88a5ca4e02992ed9ea9686ff43808e96bd (patch) | |
tree | 172d9f966a079696b218fa80cfa1edf8c53542fb | |
parent | 868d19b5090826f0c31cd98e9101bef5a7f15b22 (diff) | |
download | ansible-17a39e88a5ca4e02992ed9ea9686ff43808e96bd.tar.gz |
win_chocolatey: Add example to upgrade all installed software (#22167)
Add a missing example on how to upgrade all installed software using win_chocolatey.
This fixes #21559
-rw-r--r-- | lib/ansible/modules/windows/win_chocolatey.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/ansible/modules/windows/win_chocolatey.py b/lib/ansible/modules/windows/win_chocolatey.py index 5d4b01a9fa..e6479fe459 100644 --- a/lib/ansible/modules/windows/win_chocolatey.py +++ b/lib/ansible/modules/windows/win_chocolatey.py @@ -106,19 +106,25 @@ EXAMPLES = r''' # Install git win_chocolatey: name: git + state: present + + # Upgrade installed packages + win_chocolatey: + name: all + state: latest # Install notepadplusplus version 6.6 win_chocolatey: name: notepadplusplus.install version: '6.6' - # Uninstall git + # Install git from specified repository win_chocolatey: name: git - state: absent + source: https://someserver/api/v2/ - # Install git from specified repository + # Uninstall git win_chocolatey: name: git - source: https://someserver/api/v2/ + state: absent ''' |