You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Identity added: /runner/artifacts/11/ssh_key_data (/runner/artifacts/11/ssh_key_data)
PLAY [Install Specific versions of packages using Chocolatey] ******************
TASK [Install specific versions of packages sequentially] **********************
failed: [student1-win1] (item={'name': 'nodejs', 'version': '13.0.0'}) => {"ansible_loop_var": "item", "changed": false, "command": "", "item": {"name": "nodejs", "version": "13.0.0"}, "msg": "Chocolatey package 'nodejs' is already installed with version(s) '' but was expecting '13.0.0'. Either change the expected version, set state=latest or state=upgrade, set allow_multiple=es, or set force=yes to continue", "rc": 0}
failed: [student1-win1] (item={'name': 'python', 'version': '3.6.0'}) => {"ansible_loop_var": "item", "changed": false, "command": "", "item": {"name": "python", "version": "3.6.0"}, "msg": "Chocolatey package 'python' is already installed with version(s) '' but was expecting '3.6.0'. Either change the expected version, set state=latest or state=upgrade, set allow_multiple=yes, or set force=yes to continue", "rc": 0}
PLAY RECAP *********************************************************************
student1-win1 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
Area
Ansible Windows Automation Workshop
Proposed Changes
#1735fixed the missing variables. See https://aap2.demoredhat.com/exercises/ansible_windows/8-chocolatey/
However, when running the fixed version, I receive:
Identity added: /runner/artifacts/11/ssh_key_data (/runner/artifacts/11/ssh_key_data)
PLAY [Install Specific versions of packages using Chocolatey] ******************
TASK [Install specific versions of packages sequentially] **********************
failed: [student1-win1] (item={'name': 'nodejs', 'version': '13.0.0'}) => {"ansible_loop_var": "item", "changed": false, "command": "", "item": {"name": "nodejs", "version": "13.0.0"}, "msg": "Chocolatey package 'nodejs' is already installed with version(s) '' but was expecting '13.0.0'. Either change the expected version, set state=latest or state=upgrade, set allow_multiple=es, or set force=yes to continue", "rc": 0}
failed: [student1-win1] (item={'name': 'python', 'version': '3.6.0'}) => {"ansible_loop_var": "item", "changed": false, "command": "", "item": {"name": "python", "version": "3.6.0"}, "msg": "Chocolatey package 'python' is already installed with version(s) '' but was expecting '3.6.0'. Either change the expected version, set state=latest or state=upgrade, set allow_multiple=yes, or set force=yes to continue", "rc": 0}
PLAY RECAP *********************************************************************
student1-win1 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
I had to add force: yes to ensure completion:
chocolatey.chocolatey.win_chocolatey:
force: yes
name: "{{ item.name }}"
version: "{{ item.version }}"
loop: "{{ choco_packages }}"
The text was updated successfully, but these errors were encountered: