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

The conditional check 'inventory_hostname not in groups['local']' failed #446

Open
bakuppus opened this issue May 23, 2019 · 9 comments
Open

Comments

@bakuppus
Copy link

Hello,

while doing ansible deployment, facing below issue. How to fix ?

fatal: [smartfarmer.pt]: FAILED! => {
"msg": "The conditional check 'inventory_hostname not in groups['local']' failed. The error was: error while evaluating conditional (inventory_hostname not in groups['local']): Unable to look up a name or access an attribute in template string ({% if inventory_hostname not in groups['local'] %} True {% else %} False {% endif %}).\nMake sure your variable name does not contain invalid characters like '-': argument of type 'AnsibleUndefined' is not iterable\n\nThe error appears to be in '/root/ofn-install/community/coopdevs.certbot_nginx/tasks/main.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Add certbot repository\n ^ here\n"
}

PLAY RECAP **************************************************************************************************************
smartfarmer.pt : ok=71 changed=1 unreachable=0 failed=1 skipped=62 rescued=0 ignored=0

Thanks
Bala

@Matt-Yorkley
Copy link
Collaborator

Matt-Yorkley commented May 26, 2019

I've never seen this one before...

My best guess is that you've switched to using a different hosts file with no groups defined, or the local group is not in it?

Either that or you've upgraded to Ansible 2.8 which has just been released and isn't yet compatible with ofn-install. Try ansible --version and see what it says. If it's version 2.8 you'll have to downgrade it until we finish #442 .

@bakuppus
Copy link
Author

bakuppus commented May 26, 2019 via email

@sauloperez
Copy link
Contributor

sauloperez commented May 27, 2019

@bakuppus the image wasn't attached, unfortunately.

@bakuppus
Copy link
Author

bakuppus commented May 27, 2019 via email

@bakuppus
Copy link
Author

bakuppus commented May 31, 2019 via email

@sauloperez
Copy link
Contributor

I think that's a wrong stack. I can't see any error there.

@bakuppus
Copy link
Author

bakuppus commented Jun 4, 2019 via email

@sauloperez
Copy link
Contributor

sauloperez commented Jun 18, 2019

by the line Connecting to database specified by database.yml above I'd say you are seeing a 500 error page but there's no trace about it in the log. What are you exactly experiencing @bakuppus ?

@bakuppus
Copy link
Author

bakuppus commented Jun 18, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: All the things 💤
Development

No branches or pull requests

3 participants