James Cammarata
d6cafff2f9
Additional changes to fix fileglob relative path lookups
9 years ago
Toshio Kuratomi
6a68be4e28
Handle quoting of values in dict parameters
9 years ago
James Cammarata
cb262449c7
Reworking internal result flags and making sure include_vars hides vault data
...
Fixes #10194
9 years ago
James Cammarata
eebf437d87
Submodule pointer update
9 years ago
Brian Coca
b2b19a1dc4
Merge pull request #11751 from amenonsen/playwithoutbook
...
A better error message for «ansible playbook.yml»
9 years ago
James Cammarata
49a6601856
Further cleanup of internal use of ansible_ssh_host
9 years ago
James Cammarata
ee835ff7ad
Add a base-level get_basedir method for lookup plugins and fix relative lookups
...
Fixes #11746
9 years ago
Abhijit Menon-Sen
65d62090c2
A better error message for «ansible playbook.yml»
...
This is a very conservative change: we add the hint only if we're
definitely going to die already.
9 years ago
James Cammarata
3a4dd523d3
Fix bug where we calculated the relative path of recurisive copies wrong
...
Fixes #11470
9 years ago
James Cammarata
a1a8997e89
Merge pull request #11663 from whereismyjetpack/fix_ansible_ssh_host
...
only set ansible_ssh_host if not already set
9 years ago
Brian Coca
a56ff7ae54
now it really is oneline
9 years ago
Brian Coca
5d1d9f1505
fixed diff output to be as it was in 1.x, copy and template now use the same
...
functions to do difs.
9 years ago
James Cammarata
c56a304ad9
Merge pull request #9195 from reedloden/add-dns-facts
...
Add several DNS-related facts by parsing /etc/resolv.conf
9 years ago
James Cammarata
ccb7fb3b4c
Submodule pointer update
9 years ago
James Cammarata
034c766439
Fixing logic in template.py to not assume 'changed' is in the result
9 years ago
James Cammarata
a78ed39f93
Merge pull request #11743 from renard/regex_escape-filter
...
Regex escape filter
9 years ago
James Cammarata
db4b3544d7
Fix syntax error in action plugin template.py
9 years ago
Reed Loden
eb1fb41576
Add several DNS-related facts by parsing /etc/resolv.conf
...
Facts include nameservers, domain, search path, sortlist, and options.
9 years ago
Sébastien Gross
36534668f0
Change name from re_escape to regex_escape to fit existing function names.
9 years ago
Sébastien Gross
c1e4085251
Add regular expression escaping filter.
9 years ago
Brian Coca
0b6fadaad7
started implementing diff
...
diff now works with template
also fixed check mode for template and copy
9 years ago
Pablo Figue
f8bf2ba1bd
Encrypt the vault file after editing only if the contents changed
9 years ago
James Cammarata
73aa5686cc
Remove octal escapes from unicode escape handling
...
Fixes #11673
9 years ago
Brian Coca
5be384bab0
Merge pull request #11733 from amenonsen/csvfile
...
v2 breakage: lookupfile should lookup the given file=xxx
9 years ago
Brian Coca
b19eb0f4dc
minor improvements to display
9 years ago
Abhijit Menon-Sen
8737061a8f
lookupfile should lookup the given file=xxx
...
(Earlier it used to lookup the pre-split term.)
9 years ago
James Cammarata
eca88d4253
Merge pull request #11732 from amenonsen/9212-rebase
...
Forbid copy: content="" with a directory destination
9 years ago
Mario de Frutos
4ed664f4d0
Forbid copy: content="" with a directory destination
...
Fixes #9107 , closes PR #9212
9 years ago
Brian Coca
b9710b4a34
wrapped new system ssh key lookup in case file does not exist
9 years ago
Patrick Michaud
e4df8c3d36
Have paramiko use /etc/ssh_known_hosts
...
Fixes an issue with a confusing error: "paramiko: The authenticity of host '[host]' can't be established" when ssh on the command line doesn't complain
Closes PR #7730
9 years ago
Brian Coca
0858d97c44
also captures typeerrors for when not getting a proper string in output
9 years ago
Toshio Kuratomi
8ee3b7384d
Guard the PROTOCOL setting so that we work on older pythons
9 years ago
Toshio Kuratomi
36382face9
Add a warning about mode being octal
9 years ago
James Cammarata
eccfb7e0b5
Adding initial support for includes in handlers
...
Fixes #11694
9 years ago
Brian Coca
7215470c6f
implemented galaxy list in v2
9 years ago
Will Thames
9abd9a8f57
Make ansible-galaxy work with galaxy.ansible.com
...
Now works with role files that use Ansible Galaxy roles
Still work to do on making this work with internal roles
9 years ago
Brian Coca
cff77de917
added todo for future of feature
9 years ago
Brian Coca
0089eb8102
reimplemented logging based on log_path var
9 years ago
James Cammarata
ff49c5adac
Make sure we're actually looping before looking at 'results' in TaskResult
...
Fixes #11696
9 years ago
James Cammarata
0fcd53e887
Make sure the command is sudoable before checking for the become password
...
Fixes #11714
9 years ago
James Cammarata
e526743b4f
Allowing `args: "{{some_var}}"` for task params again
...
This is unsafe and we debated re-adding it to the v2/2.0 codebase,
however it is a common-enough feature that we will simply mark it
as deprecated for now and remove it at some point in the future.
Fixes #11718
9 years ago
Brian Coca
681eab1158
fix adhoc that broke with assuming step is always in options
9 years ago
Brian Coca
88e1ef8c9b
implemented --step in v2
9 years ago
Brian Coca
3bf1edfd96
Merge pull request #11591 from defionscode/boto3
...
Connection function for boto3
9 years ago
James Cammarata
7bc789ba64
Properly template task names
...
Also fixes in the correct way the bug in which the role name was
incorrectly showing up twice in the task name.
Fixes #10347
9 years ago
James Cammarata
698479a623
Add config file info to --version output
...
Fixes #10348
9 years ago
James Cammarata
37ed756d66
Make sure role names are strings
...
Fixes #10497
9 years ago
Toshio Kuratomi
f8e4aff4c1
Cleanups:
...
* Don't reference __class__ when we can use the instance itself
* use isdisjoint() as it can stop once a match is found
* Remove a condtional that was taken care of in the conditonal just above
9 years ago
Brian Coca
4e3f5e3be6
Merge pull request #11708 from bcoca/display_me
...
adding display to plugins and start moving debug to display
9 years ago
Brian Coca
78df37db8a
updated submodule refs
9 years ago
Brian Coca
a6ba149c49
implemented simplified output for adhoc adn command modules as in v1
9 years ago
James Cammarata
65ae9780fa
Merge pull request #11079 from amegianeg/fix_broad_except_in_inventory
...
Avoid too broad except in Inventory
9 years ago
Toshio Kuratomi
e7733a7d3a
Update submodule refs
9 years ago
Brian Coca
851ed45bbf
adding display to plugins and start moving debug to display
9 years ago
Toshio Kuratomi
b06353791c
Don't pass mode from synchronize action plugin to the ansible module
...
Fixes https://github.com/ansible/ansible-modules-core/issues/1783
9 years ago
Brian Coca
b678b9828c
simplified and normalized lookup search path behaviour
9 years ago
James Cammarata
857f584ebf
Merge pull request #11699 from ahamilton55/ah/delegate_variable
...
v2: Fixing delegate_to when using a variable
9 years ago
Brian Coca
b9050ecf18
fixed file lookup pathing in dwim functinos, now does specific paths and priorities and is commented
...
fixes #11672 as cwd is now not part of thos paths:
if full path is supplied, used that
9 years ago
Andrew Hamilton
7254b22bf4
Fixing delegate_to when using a variable
9 years ago
James Cammarata
d412bc72ef
Fall back to paramiko if the smart detection fails to run ssh
...
Fixes #11695
9 years ago
James Cammarata
dfcf6a2016
Skip hosts with no state while iterating tasks in the linear strategy
...
Fixes #11693
9 years ago
James Cammarata
206ef27268
Add flag to template() so data is not converted to a datastructure
...
Fixes #11641
9 years ago
James Cammarata
7a9916422a
Fixing up error handling for fetch_file ops in connection plugins
...
* enable batch mode (configurable with a config option, on by default)
for sftp transfers, so we can catch errors more easily
* general cleanup in the local connection plugin and fetch action plugin
Fixes #11612
9 years ago
James Cammarata
4b6525fb58
Fix handler flushing to match how v1 worked
...
Also adds meta tasks to the list of tasks excluded from tag filtering
Fixes #11574
9 years ago
Toshio Kuratomi
d0dcf73716
Update module refs
9 years ago
James Cammarata
135404738e
Fix a couple start-at-task issues
...
* added pattern matching to match v1 functionality
* check the task name, not the task+role name for matches
* make sure the input is unicode
Fixes #11692
9 years ago
James Cammarata
975172c1ef
Make sure role name doesn't end up in task name more than once
...
Fixes #11691
9 years ago
James Cammarata
b09f1f8e0b
Account for filters in bare variable conversion
...
Fixes #11530
9 years ago
Jeff Widman
52716c4dc7
Remove mention of 'apache example'
...
Removed explicit mention of 'apache'
9 years ago
ZviRackover
628925a77d
Fix: add missing import 'locale'
9 years ago
James Cammarata
4c733fe4b7
Fix issues with vars_prompt and vars_files
...
* Prompt had to be moved up, as it needed to be done before the first
templating of the play occurs, otherwise vars_files won't be templated
properly
* Fixed a bug related to an earlier fix of vars_files incorporating
extra vars to do the templating of the file name
Fixes #11404
9 years ago
Toshio Kuratomi
491a4f2a25
Update extras module pointer for docs fix
9 years ago
James Cammarata
adf1d4d9b9
Submodule pointer update
9 years ago
James Cammarata
66a8864ae9
Fix environment setting and inheritence
...
Fixes #11401
9 years ago
James Cammarata
91519d1696
Don't filter include tasks based on tags
...
Fixes #11320
9 years ago
James Cammarata
e64989beb4
Moving ConnectionInformation -> PlayContext
...
Also making PlayContext a child class of the Playbook Base class,
which gives it access to all of the FieldAttribute code to ensure
field values are correctly typed after post_validation
Fixes #11381
9 years ago
Brian Coca
827b0443c8
now dataloader checkis that you get at least a valid string as a file name
9 years ago
James Cammarata
7124504ccf
Incorporate extra vars when templating vars_files
...
Fixes #11377
9 years ago
James Cammarata
b8b206005c
Generalize extra variable parsing and loading
...
Fixes #11352
9 years ago
Dann Bohn
3e79bfa2d6
only set ansible_ssh_host if not already set
9 years ago
James Cammarata
3de6f264dd
Fix bug where spaces in the $HOME directory broke things
...
Fixes #11332
9 years ago
James Cammarata
91a4b866b0
Fix ssh pipelining
9 years ago
Toshio Kuratomi
ddec06ccfe
Detect the old python-json library
...
Fixes #11654
9 years ago
James Cammarata
5347db2952
Also check the play basedir for the role
...
Fixes #11328
9 years ago
James Cammarata
dca36c1d16
Reestablishing the use of tags/when for role duplication detection
...
Not figuring these in can cause problems with "diamond" pattern relationships,
even though this is still not quite optimal.
9 years ago
Toshio Kuratomi
a0a6d12b05
Merge pull request #11603 from ansible/get_url-tls-compat
...
Have openssl autonegotiate tls protocol on python < 2.7.9
9 years ago
Brian Coca
03d7c8d7ca
fixed new HPUX networking facts
9 years ago
Brian Coca
80eb7a20ca
Merge pull request #11469 from pilou-/local_variable
...
Fix pyflakes error: use 'msg' variable
9 years ago
Brian Coca
91f2acb029
Merge pull request #10203 from pdelared/devel
...
Add HP-UX network facts
9 years ago
Pierre-Louis Bonicoli
8c392a94b7
Play.get_name: remove prefix, return name only
9 years ago
Pierre-Louis Bonicoli
fda8fa77ab
Fix pyflakes error: use 'msg' variable
...
Error was: local variable 'msg' is assigned to but never used
9 years ago
Brian Coca
a09ce4bd87
added callback that skipts 'skipped'
9 years ago
Brian Coca
171c95672e
fixed gathering expression as it was triggering when gather_facts was no
9 years ago
Brian Coca
f66ba92745
now vault prompts for password if no password file was given, as in 1.x
9 years ago
Brian Coca
a8ba9cac3f
fixed ansible pull bad options ref, removed print in favor of display
9 years ago
Brian Coca
f8905013cd
now executes fact search when needed
9 years ago
James Cammarata
2c98b271c8
Make paramiko password detection logic match ssh connection
10 years ago
James Cammarata
3d77723e3d
Cleaning up some stuff related to the connection info/become/executable change
10 years ago
James Cammarata
1c185b68be
Rearranging some become stuff in relation to action/connection plugins
...
Moving the make_sudo_cmd() calls back up to the action level so that connection
plugins don't have to know about it at all, and moving some of the become data
(prompt and success_key) into the ConnectionInformation object so they don't
need to be passed around needlessly.
10 years ago
James Cammarata
7a9b5b6fe8
Remove unnecessary make_become_cmd from paramiko exec_command
...
Fixes #11611
10 years ago