Commit Graph

969 Commits (b91896ff552c418ceb0095dcb4007fe2c3589391)

Author SHA1 Message Date
fdavis b1dbeec66c Allows use of scp instead of sftp in
Added a boolean constant scp_if_ssh to the config
Added scp support for the ssh connection plugin
Refers to #1279
12 years ago
Michael DeHaan 6f938c9f4c Merge branch 'playbook_ssh_ask_pass' of git://github.com/clatour/ansible into devel
Conflicts:
	examples/ansible.cfg

+ doc tweak
12 years ago
Michael DeHaan 908c43ad7f Merge branch 'devel' of git://github.com/skorokithakis/ansible into devel 12 years ago
Michael DeHaan 05de2152a0 Merge branch 'sudo_ask_pass_config' of git://github.com/bcoca/ansible into devel 12 years ago
Michael DeHaan 154a00e612 Merge branch 'plugin-sanity' of git://github.com/dhozac/ansible into try_new_plugins 12 years ago
Michael DeHaan c96f2c968e Merge branch 'nigelm_freebsd' of git://github.com/nigelm/ansible into merge-service
Make things more reusable, correct some errors along the SSH key path

Conflicts:
	library/user
12 years ago
Seth Vidal e19c81977d if a module returns failed in the results, don't fail unless failed is not false. 12 years ago
Chandler Latour f436a8c88b Added config option for default ask for ssh_pass 12 years ago
Daniel Hokka Zakrisson e05e514861 Create a plugin loader system 12 years ago
Daniel Hokka Zakrisson 000d3832cc Make ansible.utils a package 12 years ago
Stavros Korokithakis 3616dffb68 Detect whether we're running in a virtualenv. 12 years ago
Michael DeHaan 4c156e4df8 Merge pull request #1502 from dhozac/improved-lookup-plugins
Improved lookup plugins
12 years ago
Michael DeHaan 025402c0bf Merge pull request #1507 from lorin/pretty-print-msg
Pretty-print "msg" when task fails
12 years ago
Stavros Korokithakis d9a377cbb1 Fix installing to virtualenvs. 12 years ago
Daniel Hokka Zakrisson 07ba7e2013 Return original string for non-matched vars 12 years ago
Lorin Hochstein 1c5ac5cac8 Pretty-print "msg" when task fails
Several modules (e.g., pip) return stdout and stderr together in a "msg" variable (and the module development docs seem to suggest that the standard practice is to return status in this variable).

This change ensures that it is printed out with correct formatting (most importantly, with newlines appearing as newlines instead of \n).
12 years ago
Daniel Hokka Zakrisson fbda2d4628 Use default port if ansible_ssh_port is not set for the delegated node
Also add testcase for it.
12 years ago
Daniel Hokka Zakrisson c519d5dac0 Add a template lookup plugin
Requires that inject be passed to run
12 years ago
Daniel Hokka Zakrisson 37d9acc097 Make lookup API extensible and allow basedir to be passed
This allows using with_fileglob in play context, e.g.
- include: $item
  with_fileglob: tasks/*.yml
as well as prepares for other data to be passed.
12 years ago
Daniel Hokka Zakrisson 2c77cf1a49 Skip tasks with a with_* that is empty 12 years ago
Brian Coca 604bf9f58a Added config option to control default of asking or not for sudo password
Signed-off-by: Brian Coca <briancoca+ansible@gmail.com>
12 years ago
Michael DeHaan be300b562a pyflakes fixes (mostly unused imports, unused vars) 12 years ago
Michael DeHaan c0747b7baa pep8 fixes 12 years ago
Michael DeHaan 0853ece810 Merge pull request #1474 from jhoekx/group-by-plugin-template
Add a group_by action plugin.
12 years ago
Michael DeHaan f9a6265fb2 Merge branch 'vars_files-list-no-default' of git://github.com/dhozac/ansible into devel 12 years ago
Michael DeHaan 6dceef3a5f Merge branch 'fix-var-in-var' of git://github.com/dhozac/ansible into devel 12 years ago
Daniel Hokka Zakrisson efe83daf19 Fix ${var.$other_var} and add test cases for it 12 years ago
Michael DeHaan 9a12873166 Merge pull request #1477 from skvidal/devel
add check that vars plugins are not handing back None
12 years ago
Seth Vidal 3fcc591f18 add check that vars plugins are not handing back None 12 years ago
Dag Wieers 3728b2f459 Missing errors-import causes traceback 12 years ago
Jeroen Hoekx b336d40101 Add a group_by action plugin. 12 years ago
Jeroen Hoekx f963db6c2a Fix output of pause plugin. 12 years ago
Jeroen Hoekx 77162e95e4 Send a host to runner executor instead of a letter.
Discovered in #1463 .
12 years ago
Daniel Hokka Zakrisson e72fdccd87 Allow vars_files sequences without a default 12 years ago
Daniel Hokka Zakrisson 55a1473d50 Don't add file module arguments by default
This allows the postgresql_db module to work properly, as it uses
an argument named owner that conflicts with the file module.
12 years ago
Michael DeHaan 21258dcc66 Added 'when' as a shortcut around only_if. 12 years ago
Michael DeHaan a768e9a9ff Fix for sudo defaults if sudo is passed in via --extra-vars 12 years ago
Michael DeHaan 6ba30170dd Make group_vars and host_vars available to usr/bin/ansible, and make vars_plugins exist 12 years ago
Michael DeHaan e04dab904a Use previous proven multiprocessing logic as the simplification didn't have the same Ctrl-C handling and may
be subject to race issues, though still don't pass Runner to each.  Still seems performant.
12 years ago
Daniel Hokka Zakrisson 1052dd9c8f Initialize sftp variable to fix error on transferless session 12 years ago
Michael DeHaan 5e2c2564bc Explicitly execute /bin/sh versus $SHELL because some folks have very incompatible/weird shells. We do not
execute modules through the shell, this is only for basic ops, so should be sufficient.
12 years ago
Michael DeHaan ff787146d1 stray debug 12 years ago
Michael DeHaan 24416b9e49 Remove stray debug message 12 years ago
Michael DeHaan 3257c5b61f Some caching improvements to paramiko which are still not yet fully leveraged
in playbook mode, since the Runner still closes abstract host connections completely
and does not have a LRU.
12 years ago
Michael DeHaan 4c83c274e0 Don't close paramiko SFTP multiple times in the same runner pass. Noticeable performance increase. 12 years ago
Michael DeHaan 8b50ad7e85 Fix for atomic_replace patch if file does not yet exist 12 years ago
Daniel Hokka Zakrisson 7a8009f979 When atomically replacing files, copy attributes 12 years ago
Michael DeHaan 19a5f86c2e Merge pull request #1452 from dhozac/with_items-as-plugin
Make with_items a lookup plugin
12 years ago
Michael DeHaan 9a141160a4 Merge pull request #1449 from dhozac/localhost-interpreters
Use the delegated host's interpreters
12 years ago
Michael DeHaan 347b0260c3 Merge varReplace cleanup and move code into new file 'template.py' so it's easier to keep template
code all together.
12 years ago