-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Coredns breaks with ansible > 2.10.0 #7599
Labels
kind/bug
Categorizes issue or PR as related to a bug.
Comments
Thanks for the complete report, we could split this in 2 actions (template/copy) without templating the "action" part |
Maybe something like that
(with adding the new |
@floryut thanks, I used your proposal with a slight variation to preserve context |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment:
Cloud provider or hardware configuration:
VMWare VM
OS (
printf "$(uname -srm)\n$(cat /etc/os-release)\n"
):ansible --version
):python --version
):Kubespray version (commit) (
git rev-parse --short HEAD
):Network plugin used:
Calico 3.18.2
Full inventory with variables (
ansible -i inventory/sample/inventory.ini all -m debug -a "var=hostvars[inventory_hostname]"
):Command used to invoke ansible:
Output of ansible run:
Anything else do we need to know:
It seems ansible 2.10 and above breaks with constructs like the sample below which is used in the coredns role:
From what I can tell ansible 2.10 no longer allows jinja templating for actions, in order to move to newer ansible versions we would need to update the logic in: https://github.com/kubernetes-sigs/kubespray/blob/master/roles/kubernetes-apps/ansible/tasks/coredns.yml#L2-L25
The text was updated successfully, but these errors were encountered: