summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* New release v2.7.1v2.7.1Toshio Kuratomi2018-10-254-1/+261
|
* [stable-2.7] Fix from sivel for ansible-docToshio Kuratomi2018-10-252-5/+7
| | | | | | | | | * Major slow down due to using the wrong loader for plugin_types * traceback due to adding httpapi and cliconf plugins to the plugins we allow ansible-doc to process (cherry picked from commit e5a245d) Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
* [stable-2.7] Detect the socket path after starting the service. Fixes #47582Matt Martz2018-10-251-9/+9
| | | | | | (cherry picked from commit 10e129e) Co-authored-by: Matt Martz <matt@sivel.net>
* Fix mysql authentication errorsToshio Kuratomi2018-10-249-76/+371
| | | | | | | | | | | The mysql-server package on Ubuntu16.04 was recently updated to disallow unauthenticated root user login over tcp/ip. This, coupled with pymysql using tcp/ip whenever host and port is specified causes us to fail to connect to the database when testing Python3 on Ubuntu16.04. The fix is to use the unix socket instead. (cherry picked from commit 748ea39ecd99bcb476dc460bfdd054567ef2bfc6)
* Use kubeconfig if either context or kubeconfig is set (#47373) (#47496)Will Thames2018-10-242-1/+3
| | | | | | | | | | | | | | * Use kubeconfig if either context or kubeconfig is set (#47373) kubeconfig should be loaded if *either* or both of context or kubeconfig is set (this allows picking a context and default kubeconfig or picking a kubeconfig with default context) Fixes #47149 (cherry picked from commit 00ccad97642dd125c196e0336c79bac0a5250316) * Add changelog for k8s auth config fix
* WinRM/PSRP: Ensure shell returns UTF-8 output (#47404)Dag Wieers2018-10-234-0/+64
| | | | | | | | | | | | | | * WinRM/PSRP: Ensure shell returns UTF-8 output This PR makes UTF-8 output work in PSRP shells. * Add win_command and win_shell integration tests * Fix tests * more test fixes (cherry picked from commit 691ff4b9e61a019633e6da139539d4464b5557e5)
* psrp - fix unicode handling in Python 2 (#47461)Jordan Borean2018-10-235-21/+89
| | | | | | | | * psrp - fix unicode handling in Python 2 * skip psrp become test when on Server 2008 (cherry picked from commit f28b7c7ab1b58201977ee73644f113c1a32cba1b)
* dnf properly gpg check local packages based on param (#47455)Adam Miller2018-10-232-0/+4
| | | | | | | | | * dnf properly gpg check local packages based on param Fixes #43624 Signed-off-by: Adam Miller <admiller@redhat.com> (cherry picked from commit 079705f8daa9fff4df76d9f5a52cb761541f72e6)
* don't restrict disable_excludes choices incorrectly (#47453)Adam Miller2018-10-234-3/+4
| | | | | | | | | * don't restrict disable_excludes choices incorrectly Fixes #47085 (cherry picked from commit 0e3e646189552950a9ae2e681a21554b2003d910) Signed-off-by: Adam Miller <admiller@redhat.com>
* [stable-2.7] Handle sets differently than lists in wrap_var. Fixes #47372 ↵Matt Martz2018-10-233-1/+19
| | | | | | | | (#47510). (cherry picked from commit f6ecdf0b871e413df416437be5bd226b445f676e) Co-authored-by: Matt Martz <matt@sivel.net>
* [stable-2.7] Ensure we don't overwrite roles from include/import_role when ↵Matt Martz2018-10-235-1/+19
| | | | | | | | | | | loading the play (#47512) * Ensure we don't overwrite roles from include/import_role when loading the play. Fixes #47454 * Add changelog fragment (cherry picked from commit d5e4f37) Co-authored-by: Matt Martz <matt@sivel.net>
* [2.7] escape default prompt detection in telnet action plugin (#46573) (#47440)Nathaniel Case2018-10-232-1/+5
| | | | | | | | | | | | * [2.7] escape default prompt detection in telnet action plugin (#46573) This change fixes an issue with the default prompt handling. The value needs to be escaped otherwise it does not work when converted to bytes. (cherry picked from commit 9180d2c) Co-authored-by: Peter Sprygada <privateip@users.noreply.github.com> * Add changelog
* ovirt_vm: Check next_run configuration update if existOndra Machacek2018-10-232-0/+9
| | | | | | | | | | | | | | This PR fixes the update check method so it now check also the next_run configuration of the virtual machine if it exists. So if previously the VM was updated with new parameters, and then reset back, the module didn't set the parameters to be set back in next_run. This PR fixes it so the next run configuration is set back with proper parameters. Signed-off-by: Ondra Machacek <omachace@redhat.com> Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1639894 Signed-off-by: Ondra Machacek <omachace@redhat.com>
* [stable-2.7] Fix problem where pip module cannot accept multiple extras (#47449)Sviatoslav Sydorenko2018-10-233-2/+14
| | | | | | | | | | | | * [stable-2.7] Fix problem where pip module cannot accept multiple extras PR #46937 Fixes #46519 (cherry picked from commit b697da3) Co-authored-by: Zhikang Zhang <zzhang63@ncsu.edu> * Add changelog
* [2.7] fix error checking if netns exists (#47397) (#47441)Nathaniel Case2018-10-232-3/+10
| | | | | | | | | | | | | | | * [2.7] fix error checking if netns exists (#47397) This patch fixes an error that occurs when attempting to see if the netns already exists on the remote device. This change will now execute `ip netns list` and check if the desired namespace is in the output. Signed-off-by: Peter Sprygada <psprygada@ansible.com> (cherry picked from commit 299a5e4) Co-authored-by: Peter Sprygada <privateip@users.noreply.github.com> * Add changelog entry
* Fix nxos_ospf_vrf module auto-cost idempotency and module check mode (#47190)Dan2018-10-232-7/+7
| | | | | | | | * fixing idempotency and check mode * modified to avoid repetitive code (cherry picked from commit dcb35c427092b3bc2ef8f9b9e1132a3184b9e20b)
* Add changelogTrishna Guha2018-10-231-0/+2
| | | | Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* nxos_file_copy fix for binary files (#46822)Trishna Guha2018-10-231-1/+1
| | | | | Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> (cherry picked from commit 9c81634c771c59292356dc0171e4383e7c382e77)
* docker_container: fix interaction of detach:no with auto_remove:yes (#47396)Felix Fontein2018-10-233-11/+68
| | | | | | | | | | * Behave better if auto_remove and output_logs are combined. Warn if output cannot be retrieved because of auto_remove. * Add tests. * Added changelog. (cherry picked from commit 3afdb28209853364f61447ace191f648622bab24)
* [2.7] Fixes #33045: get existing containers in a network via inspect_network ↵Felix Fontein2018-10-232-7/+6
| | | | | | | | | | | (Rebased #33048) (#47472) * Fix #33045: get existing network via inspect_network (Rebased #33048) (#43997) (cherry picked from commit 2939f68897ed85b530249e9918eb0a6a9ef35ad4) * Add changelog.
* docker_container: warn if ipvX_address is used for networks but not ↵Felix Fontein2018-10-232-6/+16
| | | | | | | | | | | | supported by docker-py (#47395) * Only add parameters which are actually used. * Fail if ipvX_address is used when not supported. * Added changelog. (cherry picked from commit 4ffe3b14d4e90ee0daec7826db8361b4c71b1296)
* ovirt_host_network: check for empty user_opts (#46695)bverschueren2018-10-232-1/+4
| | | | Signed-off-by: Ondra Machacek <omachace@redhat.com>
* ovirt_vm: Fix issue in SSO optionNijin Ashok2018-10-232-1/+3
| | | | | | | Currently the module will disable the SSO if we didn't pass any value for SSO option. The PR fixes the same. Signed-off-by: Ondra Machacek <omachace@redhat.com>
* Fix option change detection / force support for docker_volume. (#47390)Felix Fontein2018-10-232-1/+3
|
* [2.7] zabbix_host: backport of #46521 (#47477)Dusan Matejka2018-10-232-3/+5
| | | | | | | | | | * zabbix_host: fix link template error (#46521) * add host interface before link template (cherry picked from commit 5a35907b714b2b597a3ad121a763933025a0ed29) * added changelog
* Fix prompt mismatch issue for ios (#47004)Ganesh Nalawade2018-10-234-8/+114
| | | | | | | | | | | | | | | | | | | | | | | | * Fix prompt mismatch issue for ios Fixes #40884 #44463 #46082 * If the command prompt is matched check if data is still pending to be read from buffer. * This fix adds a new timer `buffer_read_timeout` which will be trigerred after command prompt is matched and data is attempted to be read from channel. If not data is present of channel the timer will expire and response we be returned to calling function. * Update doc * Fix review comments * Update changelog * Fix unit test CI failure (cherry picked from commit 335a979f1d30d065504bf9222460f35356a2e0b6)
* fix yum proxy username/password handling (#47435)Adam Miller2018-10-234-6/+114
| | | | | | | | | | * fix yum proxy username/password handling Fixes #46249 Signed-off-by: Adam Miller <admiller@redhat.com> (cherry picked from commit e4a435732222999a27bc2d6e083402e09eed21e8) * add backport changelog
* ovirt_vm: Fix initialization of cloud initOndra Machacek2018-10-232-2/+4
| | | | | | | | | | | Fixes: https://github.com/ansible/ansible/issues/45900 This PR fixes the case when the cloud_init_persist was used, but we still sent use_cloud_init=False, which is in oVirt API evaluated as not to use cloud_init in first VM execution. This patch is changing it to send just None, instead of False. Signed-off-by: Ondra Machacek <omachace@redhat.com>
* ovirt_vm: Fix issue in setting the custom_compatibility_version to NULLNijin Ashok2018-10-233-6/+13
| | | | | | | | | | | | Currently there is no way to reset the custom_compatibility_version to NULL. If we provide a empty string('') to custom_compatibility_version, it will fail with error "IndexError: list index out of range" at _get_minor function. To reset the custom_compatibility_version, we have to pass None value to types.Version. The PR fixes the same. Signed-off-by: Ondra Machacek <omachace@redhat.com>
* [stable-2.7] Revert "[stable-2.7] Handle sets differently than lists in ↵Toshio Kuratomi2018-10-233-19/+1
| | | | | | | | | | | | wrap_var. Fixes #47372." This reverts commit 0e933f76ba4edb0e06f0779f5fb4b0ea85191e8b. The tests for this were broken on centos6 because jinja2 does not have a map filter on that platform. Tests need to be rewritten. (cherry picked from commit ccabc2bff57992772cb91ae46bce405580a22c8a) Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
* Fix auto scale create with fix date without recurrence (#47186) (#47258)Yuwei Zhou2018-10-222-2/+5
| | | | | | | | | | | | * Fix auto scale create with fix date without recurrence (#47186) * Fix auto scale create with fix date without recurrence * fix indent (cherry picked from commit 9258ffa478ecf528a50d416004bd64f7407f6dfc) * Create azure_rm_autoscale-fixed_date.yml changelog
* Ensure that k8s_facts always returns resources key (#46733) (#47253)Will Thames2018-10-223-2/+18
| | | | | | | | | | * Ensure that k8s_facts always returns resources key (#46733) Fix bug returning `items` key if NotFound exception is hit (cherry picked from commit b772485d97168722c241aca13906ab016b332cdd) * Add changelog for k8s_facts fix
* pamd: add delete=False to NamedTemporaryFile() (#47281)Daniel Shepherd2018-10-223-2/+10
| | | | | | | | | | * add delete=False to NamedTemporaryFile and remove print statement from module * add changelog fragment * use module.tmpdir from (#47133) and add changelog fragment for it as well (cherry picked from commit c67ab296bbbb90e7f701413fa793fc0cdbc4818a)
* 2.7: user: do not pass ssh_key_passphrase on cmdline (#47445)Martin Krizek2018-10-224-5/+84
| | | | | | | | | | | | | | | | | | | | | * user: do not pass ssh_key_passphrase on cmdline CVE-2018-16837 Co-authored-by: Toshio Kuratomi <a.badger@gmail.com> (cherry picked from commit a0aa53d1a1d6075a7ae98ace138712ee6cb45ae4) * Ignore user module use of subprocess. (cherry picked from commit 8d00afc0133fb5b2a33e4a528b0b6d05c7973b45) * Fix python3 problem in user module cve fix (cherry picked from commit 9088671c4ebe99e3b53cb270c3731ae9a8967a03) * Fix changelog entry for user module CVE fix (cherry picked from commit 210a43ebebceb2edd042d2fa4d5836f7baf2a0bf)
* Handle dnf immutable mutable datatypes (#47434)Adam Miller2018-10-222-3/+19
| | | | | | | | | | | | | | | | | | | | | * Handle dnf immutable mutable datatypes In DNF < 3.0 are lists, and modifying them works In DNF >= 3.0 < 3.6 are lists, but modifying them doesn't work In DNF >= 3.6 have been turned into tuples, to communicate that modifying them doesn't work Further explanation of this is available via Adam Williamson from the Fedora QA Team. https://www.happyassassin.net/2018/06/27/adams-debugging-adventures-the-immutable-mutable-object/ Signed-off-by: Adam Miller <admiller@redhat.com> (cherry picked from commit 70025e7b5632b872d03dca22318b30b79444f3f5) * add backport changelog Signed-off-by: Adam Miller <admiller@redhat.com>
* Revert "Fix prompt mismatch issue for ios (#47004)"Toshio Kuratomi2018-10-224-111/+9
| | | | | | This reverts commit 17cd01589a20567062e7cee6b8ba602100053cfd. This commit was not passing CI. Reverting
* mail: Fix regression when sending mail without SSL (v2.7) (#47019)Dag Wieers2018-10-222-0/+4
| | | | | | | | | | | | * mail: Fix regression when sending mail without SSL (v2.7) When this module was refactored in #37098 the non-SSL use-case was broken. The main cause is that we have no way to do integration tests for testing SMTP. This is a back-port to v2.7 of #46403 * Add changelog fragment
* [stable-2.7] Handle sets differently than lists in wrap_var. Fixes #47372.Matt Martz2018-10-223-1/+19
| | | | | | (cherry picked from commit c58de75f385dcfcef0531fc7c0cbb13bfdef0e83) Co-authored-by: Matt Martz <matt@sivel.net>
* [stable-2.7] Fix exception when including tasks from handlers (#47307)Pablo2018-10-224-1/+25
| | | | | | | | | Set _notified_handlers for the task's _uuid that is run as a handler Fix #47287 (cherry picked from commit 6497049) Co-authored-by: Pablo <pablorf.dev@outlook.com>
* Fix prompt mismatch issue for ios (#47004)Ganesh Nalawade2018-10-224-9/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix prompt mismatch issue for ios Fixes #40884 #44463 * If the command prompt is matched check if data is still pending to be read from buffer. * This fix adds a new timer `buffer_read_timeout` which will be trigerred after command prompt is matched and data is attempted to be read from channel. If not data is present of channel the timer will expire and response we be returned to calling function. * Fix unit test failure * Update to make buffer timeout float * Update doc and fix review comment * Fix CI issues * Update doc * Fix review comments * Update changelog (cherry picked from commit 335a979f1d30d065504bf9222460f35356a2e0b6)
* 2.7: yum/dnf: fail when space separated string of names (#47109) (#47414)Martin Krizek2018-10-224-3/+15
| | | | | | | | | | | | * yum/dnf: fail when space separated string of names (#47109) * yum/dnf: fail when space separated string of names * Groups allow spaces in names (cherry picked from commit e8b6864e21b52c6f9684c935d7363583d8e2598a) * Add changelog
* Fix AWS EC2 inventory plugin caching of groups (#46961)Jonathan Oddy2018-10-222-31/+5
| | | | | | | | | | | | | | | | | * Fix AWS EC2 inventory plugin caching of groups * Added changelog fragment for aws_ec2 caching fix * Store the AWS query results The underlying inventory object contains inventory from other sources, so caching it as ours would be wrong. It seems easiest and safest to just cache the boto query results instead. * Remove unused functions (cherry picked from commit 7ba09adee1d0ec37524359249af6440ae4a3fe82)
* psexec: Handle socket errors (Connection timeout) (Backport) (#47407)Dag Wieers2018-10-222-12/+33
| | | | | | | | * psexec: Handle socket errors (Connection timeout) This ensures we get a nicer error message from psexec. * Add changelog fragment
* psexec: better error on import failure (#47327)Jordan Borean2018-10-222-7/+16
| | | | (cherry picked from commit 013c44484ac662fa1ab5a6f5e61630246ecb6118)
* [2.7] docker_container: fix memory_swappiness documentation (#47378)Felix Fontein2018-10-222-1/+3
| | | | | | | | | * Documentation for docker_container: fix documentation for memory_swappiness. Default value will not equal 0, it will be inherited from the host machine (#47296) (cherry picked from commit 4c2efa4b67b9c97df79ed9dd56470abfc8255114) * Add changelog.
* docker_network: add basic integration tests (#46137)Felix Fontein2018-10-225-0/+158
| | | | | | | | * Adding very basic integration tests for docker_network. * Fixing some details (review comments). (cherry picked from commit 131efcff9d42eba027aaa34168fcee4045a72ffd)
* [2.7] Update some cliconf plugins (#47141) (#47310)Nathaniel Case2018-10-2218-39/+40
| | | | | | | | | | | * [2.7] Update some cliconf plugins (#47141) * Add `check_all` to many community cliconf plugins (cherry picked from commit 7844a40) Co-authored-by: Nathaniel Case <this.is@nathanielca.se> * Add changelog entry
* [stable-2.7] Don't use the task for a cache, return a special cache var (#47243)Matt Martz2018-10-225-9/+62
| | | | | | | | | | | | | | | | | * Don't use task to cache loop results, use hostvars. Fixes #47207 * Avoid a race condition, supply _ansible_loop_cache through get_vars directly * Add tests * Add changelog fragment * Remove unnecessary copy * Remove unnecessary host from _get_delegated_vars signature. (cherry picked from commit 77d32b8f5799b8a32f464a22e25b38e5ea4b260c) Co-authored-by: Matt Martz <matt@sivel.net>
* Do not strip new lines in native jinja (#46751)Martin Krizek2018-10-225-5/+36
| | | | | | | | * Do not strip new lines in native jinja * Add changelog/fragment (cherry picked from commit 541255a2d8795c45dd3a07993509ebbca6d46537)
* [stable-2.7] get_url: Updates documentation for proper use of headers (#47242)Nate Borener2018-10-221-1/+3
| | | | | | | | | | | * Fixes the example for headers in documentation * remove whitespace * missed a whitespace (cherry picked from commit 3b5471a) Co-authored-by: Nate Borener <33846287+borener@users.noreply.github.com>