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'
10 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
10 years ago
Toshio Kuratomi
491a4f2a25
Update extras module pointer for docs fix
10 years ago
James Cammarata
adf1d4d9b9
Submodule pointer update
10 years ago
James Cammarata
66a8864ae9
Fix environment setting and inheritence
...
Fixes #11401
10 years ago
James Cammarata
91519d1696
Don't filter include tasks based on tags
...
Fixes #11320
10 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
10 years ago
Brian Coca
827b0443c8
now dataloader checkis that you get at least a valid string as a file name
10 years ago
James Cammarata
7124504ccf
Incorporate extra vars when templating vars_files
...
Fixes #11377
10 years ago
James Cammarata
b8b206005c
Generalize extra variable parsing and loading
...
Fixes #11352
10 years ago
Dann Bohn
3e79bfa2d6
only set ansible_ssh_host if not already set
10 years ago
James Cammarata
3de6f264dd
Fix bug where spaces in the $HOME directory broke things
...
Fixes #11332
10 years ago
James Cammarata
91a4b866b0
Fix ssh pipelining
10 years ago
Toshio Kuratomi
ddec06ccfe
Detect the old python-json library
...
Fixes #11654
10 years ago
James Cammarata
5347db2952
Also check the play basedir for the role
...
Fixes #11328
10 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.
10 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
10 years ago
Brian Coca
03d7c8d7ca
fixed new HPUX networking facts
10 years ago
Brian Coca
80eb7a20ca
Merge pull request #11469 from pilou-/local_variable
...
Fix pyflakes error: use 'msg' variable
10 years ago
Brian Coca
91f2acb029
Merge pull request #10203 from pdelared/devel
...
Add HP-UX network facts
10 years ago
Pierre-Louis Bonicoli
8c392a94b7
Play.get_name: remove prefix, return name only
10 years ago
Pierre-Louis Bonicoli
fda8fa77ab
Fix pyflakes error: use 'msg' variable
...
Error was: local variable 'msg' is assigned to but never used
10 years ago
Brian Coca
a09ce4bd87
added callback that skipts 'skipped'
10 years ago
Brian Coca
171c95672e
fixed gathering expression as it was triggering when gather_facts was no
10 years ago
Brian Coca
f66ba92745
now vault prompts for password if no password file was given, as in 1.x
10 years ago
Brian Coca
a8ba9cac3f
fixed ansible pull bad options ref, removed print in favor of display
10 years ago
Brian Coca
f8905013cd
now executes fact search when needed
10 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
Brian Coca
9dc5607730
Merge pull request #11519 from bcoca/human_readable
...
new human_readable filter to transform bits and bytes into cake
10 years ago
Brian Coca
115dce028d
Merge pull request #11604 from bcoca/faf_deprecated_fixes
...
fixed first_available_found for template
10 years ago
Brian Coca
4f98fac494
Merge pull request #10914 from bcoca/non_posix_file_copy_fix
...
hack to prevent tempalte/copy errors on vagrant synced folders
10 years ago
Indrajit Raychaudhuri
4553a41ab5
Add homebrew to package managers' list
10 years ago
James Cammarata
271a7f3281
Cleaning up some of the notify/facts logic added earlier to fix problems
10 years ago
Brian Coca
1aa4155266
generalized warning handling, added it to adhoc also
10 years ago
James Cammarata
d4ac73a1bc
Adding back capability to display warnings contained in results
...
Fixes #11255
10 years ago
James Cammarata
5abdd3b821
Handle notifications when coupled with a loop
...
Fixes #11606
10 years ago
Serge van Ginderachter
8d1549900c
fix AnsibleError object name in subelements plugin
...
fixes #11624
10 years ago
Brian Coca
bc5a7fce79
Merge pull request #11616 from halberom/ssh_port
...
fixes 11607, override ansible_ssh_port in group/host_vars
10 years ago
Gerard Lynch
a6c8d30f3e
callbacks require a version constant or the v2 code doesn't pass the display param and it gives an error
10 years ago
Brian Coca
6ba706f753
minor doc reformatting
...
now version_added < 1.3 does not get shown, up from 1.0
option's version_added is also now filterd against this threshold
module version_added is more prominent
exaples now uses pure rst instead of intermingled with html formatting
aliases now shown in description for options
bad version fields now throw warnings instead of exceptions
ansible-doc errors now show traceback in very very verbose mode, for easier debugging
10 years ago
Brian Coca
da890f9328
Merge pull request #11622 from amenonsen/gathering
...
devel breaks «gathering=explicit» setting in ansible.cfg
10 years ago
Brian Coca
a09f6236a5
adapated to v2
10 years ago
Brian Coca
10e5c2b46d
fixed var scope
10 years ago
Tom Paine
097ed1f17b
Add plugin that profiles playbook tasks
...
Resubmission of https://github.com/ansible/ansible/pull/11270 to
correct v2 file location.
[Description and console output
demonstration](https://github.com/aioue/ansible-plugin-profile/blob/mast
er/README.md#features).
Provides per-task timing, ongoing playbook elapsed time and ordered
list of top 20 longest running tasks at end.
10 years ago
Abhijit Menon-Sen
28e2eae902
Make gathering=explicit work again
...
There was a confusion between the valid values for defaults.gathering
(explicit/implicit/smart) and a play's gather_facts setting (boolean),
which resulted in gathering=explicit being ignored.
10 years ago
Gerard Lynch
d23ab261e1
fixes 11607, allows ansible_ssh_port to be overridden from group or host_vars
10 years ago
Brian Coca
978390693b
changed to default 'auto' as it better describes the use= option
10 years ago
James Cammarata
94fa741f96
Make sure files loaded by template action are decoded properly
...
Fixes #11247
10 years ago
Brian Coca
5ba9fe4748
now supports maintainers and author field for display as MAINTAINERS
10 years ago
Brian Coca
c603caca27
removed extra print now that items are getting passed to callback in result
10 years ago
James Cammarata
86a83c16b8
Remove some dead code from the base load_data method
...
Was causing an odd error which threw off the error detection code
when the datastructure was a string corresponding to a variable.
10 years ago
James Cammarata
d977dd507c
Merge pull request #11609 from ofpiyush/devel
...
Fix #11369 A result is skipped when all it's children are skipped. Th…
10 years ago
James Cammarata
052f3c2ece
Fixing allow_duplicate and variable resolution bugs
...
Fixes #11205
10 years ago
Piyush
f2bdd9af29
Fix #11369 A result is skipped when all it's children are skipped. This makes it fundamentally different from a result that was changed/failed/unreachable
10 years ago
Brian Coca
5a5b7ff561
fixed first_available_found for template, refactored into common function
...
added deprecation warning
fixed display.deprecated to make version optional (code already assumed this)
turned warning + 'deprecated' in plugin loader into actual call to deprecated()
10 years ago
Jonathan Davila
6ea772931f
Connection function for boto3
...
Boto3 conn
10 years ago
Toshio Kuratomi
3d3e1c82a2
Have openssl autonegotiate tls protocol on python < 2.7.9
...
This allows usage of tls-1.1 and tls-1.2 if the underlying openssl
library supports it. Unfortunately it also allows sslv2 and sslv3 if
the server is only configured to support those. In this day and age,
that's probably something that the server administrator should fix
anyhow.
10 years ago
James Cammarata
ba7243c5f9
Don't set changed for include tasks
...
Fixes #11197
10 years ago
James Cammarata
291f07242c
Properly return Jinja2 Undefined class for bad hostvars lookups
...
Fixes #11176
10 years ago
James Cammarata
9fe0f21f6a
Allow omit to be used on Playbook-level fields
...
Fixes #11173
10 years ago
James Cammarata
165fff8a1e
Fixing module arg parsing splitting when action is a variable
...
Fixes #11122
10 years ago
Brian Coca
b76cb8f655
now that invocation is only async again, no need to sanitize
10 years ago
James Cammarata
2d870b7112
Fix logic where invocation details are added to results
10 years ago
James Cammarata
0b035a4e35
Unicode in result debug statements caused a traceback
10 years ago
Brian Coca
ae6d9ebf28
added maintainers (from author field) to ansible-doc
10 years ago
Brian Coca
fbec8bfb90
updated ref to add docfixes
10 years ago
Brian Coca
0e1d771a33
updated submodule refs
10 years ago
Toshio Kuratomi
3e293f524a
Merge pull request #11589 from ansible/get_url-sni-tls-fix
...
Add support for SNI and TLS-1.1 and TLS-1.2 to the fetch_url() helper
10 years ago
Toshio Kuratomi
327b1676a8
Add support for SNI and TLS-1.1 and TLS-1.2 to the fetch_url() helper
...
Fixes #1716
Fixes #1695
10 years ago
James Cammarata
8d887d8dd3
Adding back --start-at-task feature
...
Also implemented framework for --step, though it's not used yet
10 years ago
Brian Coca
3c7faa8378
fixed missing self in self.action on rekey in vault
...
fixes #11584
10 years ago
Brian Coca
42e355f9a3
fragments can now be a list
10 years ago
Brian Coca
ea159ef9de
fixed backup and validate fragments
10 years ago
James Cammarata
4e94bb64d8
Fix group/host var loading relative to playbook basedir
10 years ago
James Cammarata
7dd5600839
Allow empty include files again
...
Fixes #11582
10 years ago
Brian Coca
8793308c39
made md5 into generic checksum function that uses sha now
10 years ago
James Cammarata
6971e92f39
Fixing up some output stuff
10 years ago
James Cammarata
9a586c3512
Properly catch AnsibleError and not all errors
10 years ago
Brian Coca
2b723c6130
added missing re import
10 years ago
Brian Coca
3102469b94
fixing become success string
10 years ago
Brian Coca
a09f44210e
now callback errors are not silent but warnings
10 years ago
Brian Coca
e0632cb9a4
Merge pull request #11577 from srvg/yaml_file_extensions
...
Use YAML_FILENAME_EXTENSIONS for vars files.
10 years ago
Brian Coca
5daa540bc0
Merge pull request #11576 from srvg/combine_empty_vars_file
...
Do not combine group_vars with an empty file
10 years ago
Serge van Ginderachter
d5fb11d89c
Use YAML_FILENAME_EXTENSIONS for vars files.
...
The v2 codebase didn't use this previously introduced constant yet.
C.YAML_FILENAME_EXTENSIONS
10 years ago
Serge van Ginderachter
9c8f0da327
Do not combine group_vars with an empty file
...
This addresses a specific case with multiple vars files
in a group_vars/${groupname}/ directory where one of those files
is empty, which returns None instead of an empty dict.
10 years ago
Brian Coca
24b830bbc8
fixed executable for raw module
10 years ago
Brian Coca
c4b6d91275
added skipped to oneline
10 years ago
Brian Coca
8ad52c2e4f
readded oneline output feature to adhoc
...
fixes #11573
10 years ago
Brian Coca
3a768b3b9f
removed unused methods, these now live in base class
10 years ago
James Cammarata
c18fdd0c18
Re-implement "conditional imports" for vars_files
10 years ago
James Cammarata
d977da5b41
Fixing up fact_cache use in VariableManager
10 years ago
James Cammarata
932d1e57f7
Removing stray debugging print
10 years ago
James Cammarata
91c9bb96e3
Moving jsonfile cache plugin over and fixing #10883
...
Fixes #10883
10 years ago
Brian Coca
d8abae71a4
now assemble skips during checkmode
...
TODO: actually make it check with checkmode
fixes http://github.com/ansible/ansible-modules-core/issues/661
10 years ago
James Cammarata
f40b66d841
Make sure the basedir is unicode
...
Fixes #10773
10 years ago
Brian Coca
ba92965670
fix for when invocation data is missing
10 years ago
James Cammarata
c5c1dc2f11
Removing tags/when from role param hash calculation
10 years ago
Brian Coca
4203b699a8
removed dict comprehension as 2.6 does not like
10 years ago
Brian Coca
032690a843
fix read_vault_password_file ref
10 years ago
Brian Coca
d993e7000c
added cyan back to ignoring message
10 years ago
Brian Coca
064a34689a
now actually continues play on ignore errors
10 years ago
Brian Coca
fe91f7b506
moved read_vault_file to CLI from utils and renamed to clearer read_vault_password_file
10 years ago
Brian Coca
e4097ed279
simplified ansible errors, moved md5 hash import with notes to be more prominent
10 years ago
Brian Coca
1274ce565d
added result sanitation to registered var and to callbacks
...
removed time display as it only is provided by command module
10 years ago
Brian Coca
fdea00880b
now default shows time taken when -vv or above
10 years ago
Brian Coca
7a1bce1b5d
added verbose option to show callback loaded info
...
also made mail module print nicer without all those 'u'
10 years ago
Brian Coca
4b9a79d42b
removed trailing newline
...
fix from #10973 by @retr0h
10 years ago
teh 4r9h
705018a417
Misspell in mail.py callback.
...
Looks like little misspell.
10 years ago
Brian Coca
e9a3a2912d
Merge pull request #9281 from woltage/devel
...
Enables 'force basic auth' -feature globally
10 years ago
James Cammarata
4608897c27
Submodule update
10 years ago
Carlos E. Garcia
657495d13f
minor spelling changes
10 years ago
Brian Coca
aaad33ccb6
fixed a couple of bugs
10 years ago
Brian Coca
d0c6d2ff1c
poreted log_plays, syslog_json and osx_say callbacks to v2
...
renamed plugins to contrib (they are not really plugins)
rewrote README.md to reflect new usage
added new dir to setup.py so it gets copied with installation, in views
of making using inventory scripts easier in teh future
10 years ago
Brian Coca
50d54b1be7
ported hipchat callback to v2 (needs testing)
10 years ago
Brian Coca
e92e15b5f6
moved unused functions to base object
10 years ago
Brian Coca
b47d7babe5
removed warning i was using for debug
10 years ago
Brian Coca
834b7a2857
ported context_demo to v2 callbacks
10 years ago
Brian Coca
ba0e5323d6
removed connection info to _verbosity, just needed callbacks to call correct display.verbosity
...
added v2 methods and made them call v1 when possible by tranforming the data
10 years ago
Brian Coca
a918a1bd16
now calls correct v2_on_any callback method
10 years ago
Brian Coca
f9d817e636
now looks at correct verbosity and removes the need to set a copy of it in _verbosity
10 years ago
James Cammarata
cf2a66ef30
Add ansible_version magic variable
...
Fixes #11545
10 years ago
James Cammarata
b0e6baf8c3
Fix bug where options may not have the force_handlers value from the cli
10 years ago
James Cammarata
f8ddf2eb04
Move role cache into the play to avoid roles crossing play boundaries
10 years ago
James Cammarata
b520d5bc60
Lots of fixes for integration test bugs
10 years ago
Iiro Uusitalo
4e7542af37
Merge upstream changes
10 years ago
Iiro Uusitalo
403f4881ee
Enables 'basic auth force' -feature globally
10 years ago
James Cammarata
a9712bb0fb
Fixing some delegate_to bugs
...
* Moving connection creation until after the task is post_validated,
to make sure all fields are properly templated (#11230 )
* Fixing problems related to the connection method and remote address
lookup on the delegated-to host
Fixes #11230
10 years ago
Brian Coca
3ba67dd2d0
added ignore_hidden to assemble
10 years ago