Commit Graph

19573 Commits (f99060b3b9b292e2e82057b23a2520960269e160)
 

Author SHA1 Message Date
Matt Davis baaa1d3013 fix for unspecified retries on until + test (#16963)
fixes #16907
(cherry picked from commit 746ea64d30)
8 years ago
ovcharenko e464237894 Fix for issue @synchronize doesn't substitute variables properly #16347 (#16349)
* Fix for issue @synchronize doesn't substitute variables properly #16347
8 years ago
victoru 08ae111757 raise AnsibleError in hashi_vault lookup plugin when hvac module is not installed (#16859)
(cherry picked from commit 14901b65d9)
8 years ago
Brian Coca df16e37ad7 Implicit localhost ondemand (#16900)
* Revert "There can be only one localhost"

This reverts commit 5f1bbb4fcd.
this broke several usages of localhost, see #16882, #16898 and #16886

* ensure there is only 1 localhost

fixes #16886, #16882 and #16898

- make sure localhost exists before returning it
- optimzed host caching
- ensure we always return a host object

(cherry picked from commit f7570f1dc4)
8 years ago
Lukas Pirl db4e661fef (re)allow ansible_python_interpreter to contain more than 1 arg (#16247) 8 years ago
Andrew Gaffney 167a12003d Fix quoting of args for old-style modules
This removes the extra layer of quotes around values in the 'args' file.
These quotes were there before the pipes.quote() call was added, but
were not removed, resulting in too much quoting.
8 years ago
elotje 3b6b4f6ce4 Unprivileged become on HP-UX/UNIX (Fixes #16249) (#16275)
Problem: When setting the file permissions on the remote server for
unprivileged users ansible expects that a chown will fail for unprivileged
users. For some systems (e.g. HP-UX) this is not the case.

Solution: Change the order how ansible sets the remote permissions.
* If the remote_user sudo's to an unprivileged user then we attempt to
  grant the unprivileged user access via file system acls.
* If granting file system acls fails we try to change the owner of the
  file with chown which only works in case the remote_user is privileged
  or the remote systems allows chown calls by unprivileged users (e.g.
  HP-UX)
* If the chown fails we can set the file to be world readable so that
  the second unprivileged user can read the file. Since this could allow
  other users to get access to private information we only do this
  ansible is configured with "allow_world_readable_tmpfiles" in the
  ansible.cfg
8 years ago
James Cammarata 780c363482 New release v2.1.1.0-1 8 years ago
James Cammarata 32b6114bef Updating CHANGELOG for 2.1.1 8 years ago
James Cammarata 02389d6c51 New release v2.1.1.0-0.5.rc5 8 years ago
Alex Mirski-Fitton 044547034d Make returning results after loading vars optional
Reinstates some functionality removed by commit 0ba9a6a but
makes the expensive operation optional (and default to off)

(cherry picked from commit 7dc09adaf4)
8 years ago
James Cammarata 6ca9b406ec New release v2.1.1.0-0.4.rc4 8 years ago
nitzmahone 3ec6e95e47 bump core submodule ref 8 years ago
Toshio Kuratomi 53c348c89d Only show the traceback for importing cryptography when in Ansible Debug. (#16795) 8 years ago
Toshio Kuratomi 3e964dbfae Update submodules 8 years ago
Connor Osborn 505a1de605 Fix exceptions thrown from cryptography import (#16723)
A simple import of cryptography can throw several types of errors. For example,
if `setuptools` is less than cryptography's minimum requirement of 11.3, then
this import of cryptography will throw a VersionConflict here. An earlier case
threw a DistributionNotFound exception.

An optional dependency should not stop ansible. If the error is more than
an ImportError, log a warning, so that errors can be fixed in ansible or
elsewhere.
8 years ago
James Cammarata ed959d72f1 Fix bug where getting role vars does not follow the dep chain
This bug was introduced in 3ced6d3, where getting vars from a role
did not follow the dep chain. This was originally hidden by the fact
that we got vars twice (from the block and from the roles directly).

Fixes #16729

(cherry picked from commit d8a3feb976)
8 years ago
James Cammarata 35da6ba9d1 New release v2.1.1.0-0.3.rc3 8 years ago
Toshio Kuratomi cf6f46683a Update submodule ref 8 years ago
jctanner b7479a1dc6 Add a function to check for killed processes in all strategies (#16684)
* Add a function to check for killed processes so that if any
threads are sigkilled or sigtermed, the entire playbook execution is aborted.

(cherry picked from commit 238c6461f6)
8 years ago
Adrian Likins fb6e58e888 Update submodule refs 8 years ago
Toshio Kuratomi 87dcec9fc5 Update submodule refs 8 years ago
James Cammarata 137385059c Fixing type in 293723f (mock_handler -> mock_handler_task) 8 years ago
James Cammarata 293723f4f6 Fix unit test for base strategy in regards to handler changes 8 years ago
James Cammarata bac0028350 Fix unreachable host/any_errors_fatal bug in linear strategy
2e003adb added the ability for tasks using any_errors_fatal to fail
when there were unreachable hosts. However that patch used the running
unreachable hosts data rather than the results from the current task,
which causes failures when any run_once or BYPASS_HOST_LOOP task is hit
after an unreachable host causes a failure. This patch corrects that by
using the current set of results to determine if any hosts were
unreachable during the last task only.

Fixes ansible/ansible-modules-core#4160

(cherry picked from commit 245ce9461d)
8 years ago
nitzmahone ad3128e661 Revert "tkuratomi bugfix for BOMs in powershell modules"
This reverts commit 2398ca917f.
8 years ago
nitzmahone e7690b0dd1 Revert "update action unit test for powershell shebang behavior"
This reverts commit 637f6f23e1.
8 years ago
nitzmahone 637f6f23e1 update action unit test for powershell shebang behavior
(cherry picked from commit de549ad675)
8 years ago
nitzmahone 2398ca917f tkuratomi bugfix for BOMs in powershell modules
fixes #15998

(cherry picked from commit 31e963dd2a)
8 years ago
Andrew Gaffney 628a67563f Fix typo on -K/--ask-become-pass option in 'ansible' man page (#16667) 8 years ago
Chris Houseknecht 909d629c73 Upgrade to azure 2.0.0rc5 and add locations parameter.
(cherry picked from commit 7964a2fca3)
9 years ago
= c6faf106f8 fix win_msi tests by setting wait: true on all win_msi tasks.
I suspect this problem was masked previously as older versions of pywinrm
where significantly slower, allowing more time for the windows installer service to complete.
9 years ago
James Cammarata eff49c968a New release v2.1.1.0-0.2.rc2 9 years ago
James Cammarata 4b86191a24 Updating integration tests for async testing
(cherry picked from commit cd4412016a)
9 years ago
James Cammarata 1f74df5c91 Updating submodule refs 9 years ago
nitzmahone 9eb32357de bump extras submodule ref 9 years ago
James Cammarata 56737da097 Updating submodule refs 9 years ago
Brian Coca 11eefdc486 correctly set become value in console
fixes #16614

(cherry picked from commit 906dc99c64)
9 years ago
René Moser 5b9f795140 cloudstack: handle unicode API results in has_changed (#16601)
* cloudstack: handle unicode API results in has_changed

* cloudstack: add more case sensitve keys
9 years ago
James Cammarata 8a2f54bcee Force remote_user to be the currently user for connection=local
Fixes ansible-modules-core#4092

(cherry picked from commit 9248cde239)
9 years ago
Toshio Kuratomi 4dfc0edbc1 Update submodule for unarchive fixes 9 years ago
Toshio Kuratomi ef5a504b8b Update submodule refs 9 years ago
James Cammarata 68232d10cf Fix unit tests for handler stuff in base strategy test 9 years ago
Monty Taylor e5235e151d Don't treat parsing problems as async task timeout (#16458)
* Don't treat parsing problems as async task timeout

If there is a problem reading/writing the status file that manifests as
not being able to parse the data, that doesn't mean the task timed out,
it means there was what was likely a tempoarary problem. Move on and
keep polling for success. The only things that should cause the async
status to not be parseable are bugs in the async_runner.

* Add comment explaining not bailing out of loop

* Return different error when result is unparseable

* Remove extraneous else
9 years ago
James Cammarata feebe73ede Fix the way handlers are compiled and found/notified
* Instead of rebuilding the handler list all over the place, we now
  compile the handlers at the point the play is post-validated so that
  the view of the play in the PlayIterator contains the definitive list
* Assign the dep_chain to the handlers as they're compiling, just as we
  do for regular tasks

(cherry picked from commit 930d090507)
9 years ago
Michael Scherer ff601f4161 Port azure_rm_common.py to py3 syntax (#15880)
Since the rest of the file already use a non 2.4 syntax
(such as format), I didn't bother using the 2.4 syntax for
exceptions.
(cherry picked from commit eb52dc9af0)
9 years ago
Chris Houseknecht 6b84306f70 Fix authentication via params and env vars. Update guide to RC5.
(cherry picked from commit c71a939b08)
9 years ago
chouseknecht 5e04dcf026 Update and pin to azure-2.0.0rc5
(cherry picked from commit a076612b63)
9 years ago
nitzmahone 16c3fc5cec prevent spurious pywinrm arg warnings for non-pywinrm connection args
(cherry picked from commit c5e0d3d17b)
9 years ago
Brad Davidson 75a3526680 Ignore limits and restrictions when parsing inventory.
We want to update host vars for all hosts (even those that might
have failed), and the in case of a refresh_inventory, the code has
a stale restrictions list at this point anyway.

(cherry picked from commit 0c4effb8a6)
9 years ago