-
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
v2.9.1: The conditional check 'k3s_check_cgroup_option.rc == 0' failed. The error was: error while evaluating conditional (k3s_check_cgroup_option.rc == 0): 'dict object' has no attribute 'rc' #116
Comments
Hi. Not sure how to recreate this. What version of Ansible are you running, and on what version of Python? The reason why I ask is the command module ALWAYS returns an |
Hey,
It worked when I initially set up the ansible playbook (role was on 2.2.0), but no other role version is working for me. Do you know of any role cache or python cache I could get rid of? Or do you have a very basic playbook that I could test locally? |
@xanmanning I am facing with the same problem. I am using GitHub Actions runner (Ubuntu 20.04.2 LTS) with arillso action
Debug output
|
I found that issue in 2.10.3, but now i can't do anything about it =( Does this role can handle this error somehow? |
I was asked to change the call to the command module to add 2.9.16 support: #105 (comment) The role requirements were updated to reflect this: https://github.com/PyratLabs/ansible-role-k3s#requirements Unfortunately the move to FQCN means I am targeting In a nutshell to avoid occasionally banjaxed calls to modules and collections in Ansible (as a whole): For the 2.9 release, you need >= 2.9.16 |
This solved it for me. Upgrading ansible via |
Summary
On version 2.9.1, the task
xanmanning.k3s : Fail if memory cgroup is not enabled
fails with'dict object' has no attribute 'rc'
. This issue first seemed to be a regression of #111 , but I experienced the same error on 2.8.3 and up. I also downgraded down to 2.7.0 and the error persisted, so maybe there is a user error here?Issue Type
Controller Environment and Configuration
role version: v2.9.1
host: Ubuntu 20.04.2 (64 bit)
targets: Debian GNU/Linux 10 (64 bit) on Raspberry Pi 4
Steps to Reproduce
execute this playbook:
Expected Result
The playbook runs and succeeds as usual. It worked in versions 2.2.0 and
Actual Result
The text was updated successfully, but these errors were encountered: