Skip to content
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

error while evaluating conditional (k3s_check_cgroup_option.rc == 0): 'dict object' has no attribute 'rc'" #111

Closed
gloomytrousers opened this issue Apr 18, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@gloomytrousers
Copy link

Summary

The task xanmanning.k3s : Fail if memory cgroup is not enabled fails with "fatal: [pi1.example.com]: FAILED! => {"msg": "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'"}

This was OK on 2.7.1 but occurrend when I upgraded to 2.8.2.

I'm on Fedora 33, ansible 2.9.18. The targets are RPi4s (64-bit Raspberry Pi OS).

Issue Type

  • Bug Report

Controller Environment and Configuration

TASK [xanmanning.k3s : Fail if memory cgroup is not enabled] **********************************************************************************
fatal: [pi1.example.com]: FAILED! => {"msg": "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'"}
fatal: [pi2.example.com]: FAILED! => {"msg": "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'"}
fatal: [pi3.example.com]: FAILED! => {"msg": "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'"}

Steps to Reproduce

Unsure how to reproduce minimally - this is early on in the role so it's something fundamental, but I don't know what it means.

Expected Result

Playbook should run as expected

Actual Result

As above.

@xanmanning xanmanning self-assigned this Apr 18, 2021
@xanmanning xanmanning added the bug Something isn't working label Apr 18, 2021
@xanmanning
Copy link
Member

Hi. I missed off check_mode: false from these checks. It should be fixed in v2.8.3

@gloomytrousers
Copy link
Author

Thanks for the speedy response, works fine on 2.8.3 :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants