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 - win_chocolatey: - name: git - state: absent - # Install git from specified repository win_chocolatey: name: git source: https://someserver/api/v2/ + + # Uninstall git + win_chocolatey: + name: git + state: absent '''