-
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
'delegate_to' is not a valid attribute for a TaskInclude #3985
Comments
@mattymo any ideas on how to solve this? |
Hey, I'm running into this as well. I'm on the Ansible 2.8.0rc1 because I needed 'use_contrib_script_compatible_sanitization' fix for the GCP dynamic inventory plugin. Is this a known issue, are there other people running into this? |
Hit this today w/ 2.8.0rc2. This is the expected beahavior of 2.8 according to this - ansible/ansible#56072 |
It seems like
|
Yes, I believe I ended up setting that, but got hung up on a handful of other errors I encountered further along when using the 2.8 rc, and eventually gave up. Would be interested to hear if anyone has successfully deployed Kubespray with Ansible2.8 |
@rhockenbury I did it. I have submitted the PR to disable that feature, in the meantime you can use the workaround that I mentioned disabling |
I'm hitting this w/ ansible 2.8:
@electrocucaracha Did you run into this? |
@rhockenbury it seems like you're running kubespray in Ubuntu distro. What I do is to install |
On some environments passing the variable didnt do any effect so i had to add the below in ansible.cfg file in kubespray folder.
|
Ansible 2.8 is not supported yet |
can I downgrade to any version of ansible? |
@stduolc according to the documentation you should use v2.7.8 |
i hit the same error today ERROR! 'delegate_to' is not a valid attribute for a TaskInclude The error appears to be in '/root/kubespray/roles/network_plugin/calico/tasks/main.yml': line 6, column 3, but may The offending line appears to be:
BR, |
Found a workaround for 3. at least. e.g.
change to:
|
This post may help:
|
This is expected behaviour in Ansible 2.8. ansible/ansible#56072 you need to follow below syntax
|
**Is this a BUG REPORT:
Hey guys,
I believe that I found an issue related to delegate_to in this case it can't be combined with include_tasks anymore.
Environment:
Cloud provider or hardware configuration:
Baremetal
OS (
printf "$(uname -srm)\n$(cat /etc/os-release)\n"
):Linux 4.16.3-301.fc28.x86_64 x86_64
NAME=Fedora
VERSION="28 (Workstation Edition)"
ID=fedora
VERSION_ID=28
PLATFORM_ID="platform:f28"
PRETTY_NAME="Fedora 28 (Workstation Edition)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:fedoraproject:fedora:28"
HOME_URL="https://fedoraproject.org/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=28
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=28
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation
Version of Ansible (
ansible --version
):ansible 2.8.0.dev0
config file = /home/richardson/git/kubespray/ansible.cfg
configured module search path = [u'/home/richardson/git/kubespray/library']
ansible python module location = /usr/lib/python2.7/site-packages/ansible-2.8.0.dev0-py2.7.egg/ansible
executable location = /usr/bin/ansible
python version = 2.7.14 (default, Mar 14 2018, 16:45:33) [GCC 8.0.1 20180222 (Red Hat 8.0.1-0.16)]
Kubespray version (commit) (
git rev-parse --short HEAD
):39d7503
Network plugin used:
calico
Command used to invoke ansible:
➜ ~ ansible-playbook -i ./inventory/tr-dev-spo-bra-cluster/hosts.ini --private-key="/home/richardson/.ssh/id_rsa" -e ansible_user=MY-USER --extra-vars "ansible_sudo_pass=MY-PASSWORD" cluster.yml --become -vvv
Output of ansible run:
https://gist.github.com/richardsonlima/7600f9aaa977311d07fb34f1f01f9c7f
The text was updated successfully, but these errors were encountered: