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

some options not preserved from ansible.cfg #12111

Closed
jpetrelliswork opened this issue Aug 26, 2015 · 1 comment
Closed

some options not preserved from ansible.cfg #12111

jpetrelliswork opened this issue Aug 26, 2015 · 1 comment
Labels
bug This issue/PR relates to a bug.
Milestone

Comments

@jpetrelliswork
Copy link

Issue Type:

Bug Report

Ansible Version:

2.0.0 devel

Ansible Configuration:

ask_pass=True

Environment:

SLES11SP2/SP3

Summary:

Some options from ansible.cfg are not preserved during processing.
Similar, but didn't fix all affected options: 0de83ad

Steps To Reproduce:
  • Set ask_pass=True in Ansible.cfg
  • Run ansible. It will not prompt for password.
Expected Results:

Ansible should prompt for password.

Actual Results:

Ansible does not prompt for password.

Notes:
Looking at the fix linked above, I found the following in lib/ansible/cli/init.py:

257: parser.add_option('--ask-vault-pass', default=False, dest='ask_vault_pass', action='store_true',
301: parser.add_option('--ask-become-pass', default=False, dest='become_ask_pass', action='store_true',
306: parser.add_option('-k', '--ask-pass', default=False, dest='ask_pass', action='store_true',
324: parser.add_option("-C", "--check", default=False, dest='check', action='store_true',
328: parser.add_option("-D", "--diff", default=False, dest='diff', action='store_true',

306 should use the values from constants.py (similar for others as well):
parser.add_option('-k', '--ask-pass', default=C.DEFAULT_ASK_PASS, dest='ask_pass', action='store_true',

@jimi-c jimi-c added this to the v2 milestone Aug 27, 2015
@jimi-c
Copy link
Member

jimi-c commented Aug 27, 2015

cc @bcoca

@bcoca bcoca closed this as completed in 48aa0dd Aug 27, 2015
@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 6, 2018
@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
bug This issue/PR relates to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants