Commit Graph

177 Commits (66a83314b9d30c6a139de960e6da8d5554c28544)

Author SHA1 Message Date
Abhijit Menon-Sen e7eebb6954 Implement cat-like filtering behaviour for encrypt/decrypt
This allows the following invocations:

    # Interactive use, like gpg
    ansible-vault encrypt --output x

    # Non-interactive, for scripting
    echo plaintext|ansible-vault encrypt --output x

    # Separate input and output files
    ansible-vault encrypt input.yml --output output.yml

    # Existing usage (in-place encryption) unchanged
    ansible-vault encrypt inout.yml

…and the analogous cases for ansible-vault decrypt as well.

In all cases, the input and output files can be '-' to read from stdin
or write to stdout. This permits sensitive data to be encrypted and
decrypted without ever hitting disk.
9 years ago
Abhijit Menon-Sen 32b38d4e29 Fix add_option indentation for consistency before adding another option 9 years ago
Brian Coca 154754ae50 pushed module_loader to task_queue_manager so all cli's can benefit from it
also normalized -M option across all cli
fixes #12016
9 years ago
Richard Poole 3090a45891 add option to ansible-vault to read new password from file for rekey
The --new-vault-password-file option works the same as
--vault-password-file but applies only to rekeying (when
--vault-password-file sets the old password). Also update the manpage
to document these options more fully.
9 years ago
Brian Coca 17b4b1f85c added ability to limit in ansilbe pull
refactored the options a bit, new inventory_opts made sense to always group
fixes #7917
9 years ago
Brian Coca 9b61cf5840 implemented async tasks in adhoc v2 9 years ago
Brian Coca 92e2f54228 fixed issues with utf-8 encoding in docs, moved pager to use display class instad of bare prints 9 years ago
Abhijit Menon-Sen 8de70fa657 Disallow --forks 0
Without at least one worker process, things break:

Traceback (most recent call last):
  File "/home/ams/extern/ansible/ansible/lib/ansible/executor/process/result.py", line 103, in run
    result = self._read_worker_result()
  File "/home/ams/extern/ansible/ansible/lib/ansible/executor/process/result.py", line 69, in _read_worker_result
    (worker_prc, main_q, rslt_q) = self._workers[self._cur_worker]
IndexError: list index out of range
9 years ago
Abhijit Menon-Sen 1f2adb5e14 Show a better message when ansible.cfg is not found
Earlier we would say «Using  as config file» if we didn't find one.
9 years ago
James Cammarata 698479a623 Add config file info to --version output
Fixes #10348
9 years ago
Brian Coca fe91f7b506 moved read_vault_file to CLI from utils and renamed to clearer read_vault_password_file 9 years ago
James Cammarata b520d5bc60 Lots of fixes for integration test bugs 9 years ago
Brian Coca 5f791329ce now verbose mode shows config file used 9 years ago
Toshio Kuratomi b11e69f3d0 Merge pull request #11452 from soarpenguin/devel
fix type error.
9 years ago
James Cammarata dcb9b5a69f Make --module-path work and expand tilde's in paths
Fixes #9937
Fixes #9949
9 years ago
Brian Coca 0a2a9557b8 now allows for users to use ^D to not input a password
fixes #11413
9 years ago
soarpenguin c6ed1ff4ad fix type error. 9 years ago
Brian Coca 9116ff1c28 replaced removed pager_print for print 9 years ago
Brian Coca 24b7c353cc readjusted limit opts, makes no sense in adhoc when you already specify selection
changed pull to reflect this
9 years ago
Brian Coca 845d564d89 removed debug, moved limit to runtask instead section 9 years ago
Brian Coca 5aec5e5eb0 fixed ansible pull, reorged validate function for cli to be function specific like parser
added missing cmd_functions with run_cmd, mostly for ansible pull
9 years ago
Matt Martz 6519118106 Add missing import in ansible.cli 9 years ago
Brian Coca 47be5b4166 added missing ansibleoptionserror import and moved args check in playbook to after parser exists to allow for creating usage info 9 years ago
Brian Coca 09605706d9 relly fix it this time 9 years ago
Brian Coca 12a800c0e7 fixed less opts issue 9 years ago
Brian Coca 124a0d3519 now properly inherits from ansible.cfg sudo/su ask pass
fixes #10891
9 years ago
James Cammarata ce3ef7f4c1 Making the switch to v2 9 years ago