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

Templated Variables do not work within rke2_config #213

Closed
onceinarow opened this issue Apr 23, 2024 · 1 comment · Fixed by #214
Closed

Templated Variables do not work within rke2_config #213

onceinarow opened this issue Apr 23, 2024 · 1 comment · Fixed by #214

Comments

@onceinarow
Copy link

Description

Currently, when you utilize a templated variable within rke2_config, such as:

rke2_config:
  selinux: "{{ selinux_enabled }}"

Ansible will ultimately end up printing the literal string \"\{\{ selinux_enabled \}\}\" in the config.yaml file due to the way update_fact is used.

Additional Details

This is a known issue within ansible.utils and the best known resolution is to ensure the variable's values are rendered prior to use.

onceinarow pushed a commit to onceinarow/rke2-ansible that referenced this issue Apr 23, 2024
onceinarow pushed a commit to onceinarow/rke2-ansible that referenced this issue Apr 23, 2024
@mddamato
Copy link
Contributor

#215

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants