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

Add some --no-* options #32226

Open
wants to merge 1 commit into
base: devel
from
Open

Add some --no-* options #32226

wants to merge 1 commit into from

Conversation

@leedm777
Copy link
Contributor

@leedm777 leedm777 commented Oct 27, 2017

SUMMARY

There are some defaults that can be set in ansible.cfg that cannot be
currently undone with command line options. This commit adds
--no-ask-vault-pass, --no-become, --no-ask-become-pass allowing
the corresponding ansible.cfg options to be overridden.

Fixes #14150

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

cli

ANSIBLE VERSION
$ ansible --version
ansible 2.4.0.0
  config file = /Users/dlee/.ansible.cfg
  configured module search path = [u'/Users/dlee/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/Cellar/ansible/2.4.0.0/libexec/lib/python2.7/site-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 2.7.14 (default, Sep 25 2017, 09:53:22) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)]
ADDITIONAL INFORMATION

@bcoca
Copy link
Member

@bcoca bcoca commented Oct 27, 2017

cc @sivel would updating the args parsing lib give us these options also?

@sivel
Copy link
Member

@sivel sivel commented Oct 27, 2017

It wouldn't magically give us --no options. It would still have to be implemented, but the implementation would be easier with argparse.

The argparse work is still something I want to pick back up, but will have to wait a bit longer, and may not make it for 2.5

@leedm777
Copy link
Contributor Author

@leedm777 leedm777 commented Nov 6, 2017

rebased

There are some defaults that can be set in `ansible.cfg` that cannot be
currently undone with command line options. This commit adds
`--no-ask-vault-pass`, `--no-become`, `--no-ask-become-pass` allowing
the corresponding `ansible.cfg` options to be overridden.

Fixes #14150
@leedm777 leedm777 force-pushed the leedm777:no-become branch to 88d484a Nov 22, 2017
@leedm777
Copy link
Contributor Author

@leedm777 leedm777 commented Nov 22, 2017

rebased

@bcoca
Copy link
Member

@bcoca bcoca commented Jan 18, 2019

assigned to sivel as we are rewriting CLI options parsing for 2.8

@gundalow gundalow added the pr_day label Sep 3, 2019
@ansibot ansibot added pre_azp and removed stale_ci labels Dec 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

6 participants