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

Check ansible.cfg location relatively to playbook file #17087

Closed
akamensky opened this issue Aug 15, 2016 · 1 comment
Closed

Check ansible.cfg location relatively to playbook file #17087

akamensky opened this issue Aug 15, 2016 · 1 comment

Comments

@akamensky
Copy link
Contributor

ISSUE TYPE

Not sure whether Bug Report or Feature Idea

COMPONENT NAME

?

ANSIBLE VERSION
ansible 2.1.1.0
  config file =
  configured module search path = Default w/o overrides
CONFIGURATION

None

OS / ENVIRONMENT

N/A

SUMMARY

Currently Ansible checks for location of ansible.cfg relatively to CWD, HOME or in /etc/[ansible/]ansible.cfg

Whereas lookup for templates and files used in playbook happens relatively to playbook file

STEPS TO REPRODUCE
  1. Create some playbook
  2. Place in same directory ansible.cfg with some settings (for example retry_files_enabled = False)
  3. Run playbook from another location using ansible-playbook /path/to/playbook.yml
  4. Verify whether ansible.cfg was used or not
EXPECTED RESULTS

ansible.cfg in location relative to playbook was used

ACTUAL RESULTS

ansible.cfg in location relative to playbook is not used. Used relatively to CWD instead (why?)

@bcoca
Copy link
Member

bcoca commented Aug 15, 2016

dupe of #11175

@bcoca bcoca closed this as completed Aug 15, 2016
@ansible ansible locked and limited conversation to collaborators Apr 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants