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

Conversation

Projects
None yet
5 participants
@leedm777
Contributor

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

This comment has been minimized.

Member

bcoca commented Oct 27, 2017

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

@sivel

This comment has been minimized.

Member

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

This comment has been minimized.

Contributor

leedm777 commented Nov 6, 2017

rebased

Add some --no-* options
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

This comment has been minimized.

Contributor

leedm777 commented Nov 22, 2017

rebased

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment