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
Ansible 2.4 doesn't recognise 'localhost' on EC2 instances #32967
Comments
@cazorla19 Greetings! Thanks for taking the time to open this issue. In order for the community to handle your issue effectively, we need a bit more information. Here are the items we could not find in your description:
Please set the description of this issue with this template: |
Thanks, I've set the component name, guess it's the core issue. |
Sorry, I noticed the labels |
@cazorla19 the bot removed both labels but |
I cannot reproduce with any supported version, so I'm going to close this as resolved unless as new reproducer is supplied. |
ISSUE TYPE
ANSIBLE VERSION
COMPONENT NAME
ansible-pull
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
Ansible 2.4.1 doesn't match
localhost
in the inventory file explicitly set in playbook options. It mostly matters EC2 instances with custom DNS name.Here is the case:
I'm running
ansible-pull
EC2 userdata to:The first step everywhere is fine, but I've got issues with playbook, because it doesn't look into inventory where I set the
localhost
in the host group.Playbook head [with host mention]:
Inventory file:
So, host match works fine in 2.3, but fails in 2.4
The version 2.4.1 pops up these warning. Probably, the issue is there.
I could set the wrong issue header, may be the problem is not only on EC2, but it breaks the compatibility. What was run in 2.3, doesn't run 2.4 with no description in
CHANGELOG
.Also I've run debug mode in both versions and read the diff. The one major difference is only at this warning, the subcommands on Bash/Python to run the playbook are actually the same.
STEPS TO REPRODUCE
Run the command like this on both 2.3 and 2.4 Ansible versions. Or convert this to
ansible-playbook
commandEXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: