-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command tasks fail for ansible == 2.9.16 #105
Comments
Also happens to me on Ansible 2.10 |
2.9.16 relates to this bug: ansible/ansible#72958 This... - name: Check if newuidmap is available
ansible.builtin.command:
cmd: "which newuidmap"
failed_when: false
changed_when: false
register: k3s_check_newuidmap_installed Was spotty in terms of whether it worked or not in 2.9 and 2.10 releases until both those bugs were closed, hence why I set this: https://github.com/PyratLabs/ansible-role-k3s#requirements and builds pass: https://github.com/PyratLabs/ansible-role-k3s/actions/runs/715024863 I will look into seeing how far back I can implement using "cmd" - however I am tied up in other engagements at the moment... |
In this WIP PR, it looks like I can add 2.9.16 release to supported releases based on this test script. As you can see, the aforementioned bugs really did a number to screw up the command module when using FQCN!
|
Closing as 2.9.16 support added. Matrix for supported versions above. |
Summary
In the newest Release (k3s
Ansible does not seem to handle
ansible.builtin.command
blocks in the role rightIssue Type
Controller Environment and Configuration
ansible==2.9.16
, no extra config2.8.1
Steps to Reproduce
The following task fails:
validate/configuration/unsupported-rootless.yml
->Check if newuidmap is available
:How to fix
The error is fixed by changing the task into (putting the command into
cmd
key):Same is valid for other command tasks
The text was updated successfully, but these errors were encountered: