Commit Graph

17602 Commits (e8e388a7425d3e82d0f8c92fad592d389738286a)
 

Author SHA1 Message Date
Toshio Kuratomi e8e388a742 Some attributes of callbacks aren't in v2. Port plugins to the v2 way to do that
Update porting guide with info on callback porting
9 years ago
Toshio Kuratomi a6c25f143a Explicitly set validate_certs=False as the boto default is True
Fixes #14089
9 years ago
Brian Coca e957ab5a7f fixed code for v1 callback runtime compatiblity
old exception code obsoleted by exception avoidance
errors on callback produce warnings and don't stop play
9 years ago
Brian Coca 46002111bb fix unicode input for template lookup
fixes #14207
9 years ago
Bernhard Lichtinger 8d7056220d Fix for SLES 11.4, which has now also an /etc/os-release file. 9 years ago
Toshio Kuratomi 76c941305b When setting up the local connection for the rsync we need to set the shell as well.
Fixes #13490
9 years ago
James Cammarata 48da1b8e85 New release v2.0.1.0-0.1.rc1 9 years ago
James Cammarata 1e56daf66c More CHANGELOG updates for 2.0.1 9 years ago
James Cammarata 506b0a8b61 New release v2.0.0.2-1 9 years ago
James Cammarata ea1339de18 New release v2.0.0.1-1 9 years ago
Toshio Kuratomi d60764bc81 Add more entries to changelog 9 years ago
Toshio Kuratomi 951fa36fca Return an error when synchronize is used with something other than an ssh connection
Suggested in #2832
9 years ago
James Cammarata 43cf527fe7 Don't try to generate retry files if the tqm hasn't been initialized
Fixes #14144
9 years ago
James Cammarata a074ebedbc Make retry file generation not use StringIO 9 years ago
James Cammarata d29dfdc84b Re-implementing the retry file feature for 2.0
Fixes #13944
9 years ago
James Cammarata aac8ea0262 Fix lookup of parent attribute when parent doesn't have the attr
Fixes #14100
9 years ago
Matt Martz 3db2073909 Only use os.path.basename if get_file_content returned a value, and ensure that service_mgr has line endings stripped. Fixes #14026 9 years ago
Tobias Wolf 0fddd90f14 Handle the key 'prepared' in the 'diff' result from modules
So far, when a 'diff' dict is returned with module results, it is
checked for 'before' and 'after' texts, which are processed in
_get_diff() by python difflib.  This generates the changes to display
when CLI users specify --diff.

However, some modules will generate changes that cannot easily be
expressed in a conventional diff. One example is the output of the
synchronize module, which presents changed files in a common log format
as in `rsync --itemize-changes`.

Add a check for a diff['prepared'] key, which can contain prepared diff text
from modules.
9 years ago
James Cammarata 5fe16bef6f Make sure blocks use their parents dependency chains
Fixes a bug inroduced in fb797a9 where included tasks in a role
were not being executed because the child blocks had no dep chain
set.
9 years ago
James Cammarata 86b179d3d7 Allow certain base attributes to be used as role params
Role definitions typically require params to be different from those
which are specified as FieldAttributes on the playbook classes used
for roles, however a certain subset should be allowed (typically those
used for connection stuff).

Fixes #14095
9 years ago
James Cammarata 7a8520ac1a Fixing role dependency chain creation
The dep chain for roles created during the compile step had bugs, in
which the dep chain was overwriten and the original tasks in the role
were not assigned a dep chain. This lead to problems in determining
whether roles had already run when in a "diamond" structure, and in
some cases roles were not correctly getting variables from parents.

Fixes #14046
9 years ago
Toshio Kuratomi 8f7868aead Note bugfix for unicode characters and the pager 9 years ago
Toshio Kuratomi 9ddb4a985c Changes to convert to unicode at the borders
The module docs and vault changes solve issues where tracebacks can
happen.  The galaxy changes are mostly refactoring to be more pythonic
with a small chance that a unicode traceback could have occurred there
without the changes.  The change in __init__.py when we actually call
the pager makes things more robust but could hide places where we had
bytes coming in already so I didn't want to change that without auditing
where the text was coming from.

Fixes #14178
9 years ago
Toshio Kuratomi 55db4d9e23 Add squashing fix to the changelog 9 years ago
Toshio Kuratomi 849def8d6e Squashing was occuring even though pkgs didn't have a template that would be affected by squash
This broke other uses of looping (looping for delegate_to in the
reported bug)

Fixes #13980
9 years ago
Toshio Kuratomi c0d6a0c11a Update submodule refs 9 years ago
Brian Coca 97cd0bc803 fixed unit test to match new output of become/su 9 years ago
Brian Coca 7c7e849a27 fixed issue with vars prompt warning causing error
sometimes display object is not magically available, use it explicitly,
no need to be classmethod anymore
fixes #14147
9 years ago
Brian Coca 9eaa5fecc1 fix for so su works in more cases
should not fail anymore on csh, fish nor the BSDs
fixes #14116
9 years ago
Toshio Kuratomi a0b7620b8e Add fix for 2831 to the changelog 9 years ago
Toshio Kuratomi 3906614538 Fix for inventory hosts on localhost with alternate ports.
Fixes https://github.com/ansible/ansible-modules-core/issues/2831
9 years ago
Brian Coca 03a89e17b9 fixed permissions check for ansible.log
fixes #13990
9 years ago
Sergii Korochkin c52a35ff34 [hotfix] add missed playbook file 9 years ago
Sergii Korochkin 16ee2090bd Adding support for scm-based role source urls (incl. integration test to cover it) 9 years ago
Toshio Kuratomi 7e1a3da97c Add last few major fixes to the 2.0.1 changelog 9 years ago
Toshio Kuratomi 625e8f2030 Update submodule refs 9 years ago
Toshio Kuratomi 826f42a153 For synchronize, fix sudo to execute on the remote end of the connection
* In 2.0.0.x become was reversed for synchronize. It was happening on
  the local machine instead of the remote machine. This restores the
  ansible-1.9.x behaviour of doing become on the remote machine.
  However, there's aspects of this that are hacky (no hackier than
  ansible-1.9 but not using 2.0 features).  The big problem is that it
  does not understand any become method except sudo.  I'm willing to use
  a partial fix now because we don't want people to get used to the
  reversed semantics in their playbooks.
* synchronize copying to the wrong host when inventory_hostname is
  localhost
* Fix problem with unicode arguments (first seen as a bug on synchronize)

Fixes #14041
Fixes #13825
9 years ago
Toshio Kuratomi 1fdf8bca2a python3 doesn't have raw explicit-unicode literals. Workaround it with a raw native string that we make unicode in py2. 9 years ago
Toshio Kuratomi 6eaf9b9fa2 Transform tracebacks into unicode before printing
Fixes #14042
9 years ago
Brian Coca 9a3515357b raise AnsibleError as an 'expected' exception
fixes #14065
9 years ago
Brian Coca cd0812a187 adhoc now respects limit when listing hosts
also removed cruft about localhost as if used it is specified inline
fixes #13848
9 years ago
Brian Coca 864c67cec5 ensure stdout callback alwasy is loaded first
it is now called for every event prior to any other callbacks
fixes #14114
9 years ago
Brian Coca 7fe91e1848 better error when host inventory script isnt dict 9 years ago
Brian Coca 084bacc4a4 add webdocs as alias 9 years ago
Graham Ullrich e6c9d9c81b Update CHANGELOG.md 9 years ago
James Cammarata 0c250f2b07 Use templated handler name during callback
Fixes #14082
9 years ago
nitzmahone a516f883ac convert winrm put_file script template to Unicode string literal
Fixes traceback on homedirs with non-ascii chars
9 years ago
Brian Coca 95f7aa2b53 corrected submodule ref 9 years ago
James Cammarata da4a9d6da0 Fix bug with any_errors_fatal where task was not available 9 years ago
Alexey Shabalin d18cc79873 add detect Altlinux distributive 9 years ago