summaryrefslogtreecommitdiff
path: root/lib/ansible
Commit message (Collapse)AuthorAgeFilesLines
...
* 2.11 `action_groups` normalization (#76171)Matt Martz2021-11-241-1/+11
| | | | | | | | | * Have tests use shortname in action_groups to uncover an issue * Alias shortname from action_groups to FQCR of owning collection * Add clog frag * Don't overwrite
* [bp-2.11]: hostname: update example with 'use' (#75990)Rémi REY2021-10-271-1/+1
| | | | | | | | | | | * hostname: Change "strategy" to "use" (#74815) Fixed typo: 'strategy' to 'use' (cherry picked from commit 63701b1b6b18a0d396c8b96debebf4de1cd20098) * Add changelog fragment for backport of #74815 Co-authored-by: bdouxx <bdouxx-git@yahoo.fr>
* Update Ansible release version to v2.11.6.post0. (#76006)Christian Adams2021-10-111-1/+1
|
* New release v2.11.6 (#75999)v2.11.6Christian Adams2021-10-111-1/+1
|
* Update Ansible release version to v2.11.6rc1.post0.Christian M. Adams2021-10-041-1/+1
|
* New release v2.11.6rc1v2.11.6rc1Christian M. Adams2021-10-041-1/+1
|
* config: small typo fix (#74845) (#75864)Sandra McCann2021-10-021-1/+1
| | | | | (cherry picked from commit 99a983c92ca981f189ce97bec7b566d59300950a) Co-authored-by: Boris Korzun <drtr0jan@yandex.ru>
* netconf - handle import error when running in FIPS mode (#73992) (#75706)Nathaniel Case2021-09-291-1/+4
| | | | | | | | | | | * Handle netconf plugin ncclient import error when running in FIPS mode * While running in FIPS mode importing ncclient result in InternalError raised by cryptography * Refer https://github.com/ansible/ansible/pull/65477 (cherry picked from commit d8bf4206e446c45ba057e85819278cef5fbeff2c) Co-authored-by: Ganesh Nalawade <ganesh634@gmail.com>
* Fix unexpected exception when a role has an empty argument_specs.yml ↵Sloane Hertel2021-09-291-1/+4
| | | | | | | | | | | | | | | (#75604) (#75684) * Fix role with empty argument_specs.yml * Use try/except and add changelog fragment * Always return a dict * Add test for empty argument_specs key (cherry picked from commit 3e7a6222047aae29db4ce0005c0bdf320c7f7918) Co-authored-by: devon-mar <devon-mar@users.noreply.github.com>
* PowerShell - Ignore LIB env var when building C# code (#75698) (#75725)Jordan Borean2021-09-291-1/+22
| | | | | | | | | * PowerShell - Ignore environment variables when building C# code * Just unset LIB for now * Fix sanity issue (cherry picked from commit 097bc07b6663932705dc2a4baaa5765112fc270e)
* Try all galaxy servers when locating available versions for a collection ↵Sloane Hertel2021-09-291-3/+63
| | | | | | | | | | | | | | | | (#75468) (#75750) * If an exception occurs when getting a collection's metadata, continue to the next in the server list. * Warn for unknown exceptions when finding versions of a collection * Test that an invalid server is no longer fatal if a subsequent server has the collection * Fix server for verify tests - compare checksums against the server from which it was installed * Add tests for verify and fix that code path to mirror install/download behavior for server errors Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua> (cherry picked from commit 469b559ebe44451ad60b2e534e284b19090b1c18)
* [stable-2.11] Don't show params when there is an issue with `set_option(s)` ↵Matt Martz2021-09-292-2/+15
| | | | | | | (#75805) (#75808) (cherry picked from commit 79e9dae) Co-authored-by: Matt Martz <matt@sivel.net>
* Update Ansible release version to v2.11.5.post0.Christian M. Adams2021-09-131-1/+1
|
* New release v2.11.5v2.11.5Christian M. Adams2021-09-131-1/+1
|
* Update Ansible release version to v2.11.5rc1.post0.Christian M. Adams2021-09-081-1/+1
|
* New release v2.11.5rc1v2.11.5rc1Christian M. Adams2021-09-081-1/+1
|
* various fixes to command (#74212) (#74257)Brian Coca2021-09-032-55/+68
| | | | | | | | | | | | * various fixes to command - Updated splitter to allow for all expected args in ad-hoc - Ensure we always return the returns we promissed to always return (i.e stderr/stdout) - Updated docs to clarify creates/removes precdence in checking - Removed abspath from chdir to allow reporting to handle symlinks correctly - Corrected tests to new output messages Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit b3b1dde64887b1646633f0c30eecd03bbbe9218c)
* setup module, dont truncate hpux interfaces (#75423) (#75490)Brian Coca2021-09-021-1/+1
| | | | | | | | | * setup module, dont truncate hpux interfaces fixes #70533 no hpux to test so relying on man page and users that reported successful testing (cherry picked from commit 03083c3139fa4b4da19ddec143f5f7d9e69dee9a)
* Avoid accessing delegated vars when you dont have a host (#75524) (#75534)Brian Coca2021-09-021-8/+10
| | | | | | | | | | | | | | | | | | * avoid getting delegated vars w/o inventory host fixes #75512 In the case of imports, we don't have a host, so getting host vars for the delegated host makes no sense and should be avoided. * also avoid error on vars_files with per host vars * test * testing given case * oops (cherry picked from commit 91319c5cfc523fb9dfb343be81ff373ec394818a)
* Fix build_ignore when installing a collection from source (#75547) (#75623)Sloane Hertel2021-09-011-5/+2
| | | | | | | | | | | | | | | | | | * Make individual dirs that should exist instead of using shutil.copytree * Test build_ignore when installing collections in git repos * changelog * Fix assertion Fix git directory * Fix nested content while building the collection dir Test installing a collection from a git repo and artifact have the same result Refactor to use variables (cherry picked from commit f38a97cece7eb28ee93dac9ff4d734f657b7a9c4)
* [2.11] Improve ansible-galaxy error for InconsistentCandidate exception (#75462)Sloane Hertel2021-09-012-0/+32
| | | | | | | | | | | | | | | * Improve ansible-galaxy error for InconsistentCandidate exception (#75235) * Improve error for InconsistentCandidate exceptions * Add test case for installing a collection with an inconsistent version * Add test case for installing a collection that has a dependency with an inconsistent version Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com> Co-authored-by: Sviatoslav Sydorenko <webknjaz@redhat.com> (cherry picked from commit e24eb59de55c55a6da09757fc5947d9fd8936788) * Handle extra stderr for Python 2.7
* Clarify get_bin_path error message (#75544) (#75564)Brian Coca2021-09-011-1/+1
| | | (cherry picked from commit 3ca50a2200cba04b6fa82e27e485784cee011277)
* Attributes compat (#75563)Brian Coca2021-09-012-0/+25
| | | | | | | | | | | | | | | | | | | | * ignore attributes in output * ignore 'attributes' for json dump * actually add file * clog * sometimtes its not a dict * always ignore * also allow validation to work on newer modules * remove attributes doc let existing overrides display, wont be full info but still pertinent info though user will have to check newer versions
* validate_args_spec, use combine vars and in precedence (#75471) (#75602)Brian Coca2021-09-012-3/+35
| | | | | | * combine vars and in correct precedence * add examples (cherry picked from commit 2462ec74a06a61fe548891844e998f7b747a7be7)
* Fix --list-hosts when undefined var is used (#75533) (#75551)Brian Coca2021-09-011-1/+7
| | | | | fixes #75354 (cherry picked from commit ff72908b4d740ce560ab4c2e639960e91b4e507b)
* Return correct url for relative paths in messages (#75562)Brian Coca2021-09-011-1/+1
|
* Fix templating task action with host-specific vars (#75600) (#75613)Martin Krizek2021-09-011-3/+3
| | | | | Fixes #75568 (cherry picked from commit 9c2f44b8848a317a2304254eba0b9b348d5034ad)
* paramiko_ssh - mark connection as connected when successful (#74459) (#75614)Martin Krizek2021-09-011-0/+2
| | | | | | | * Remove unused import from test (cherry picked from commit 74b2add460f25b83ae728b06e50d06321a2a9b79) Co-authored-by: Sam Doran <sdoran@redhat.com>
* Update Ansible release version to v2.11.4.post0.Christian M. Adams2021-08-161-1/+1
|
* New release v2.11.4v2.11.4Christian M. Adams2021-08-161-1/+1
|
* Update Ansible release version to v2.11.4rc1.post0.Rick Elrod2021-08-101-1/+1
|
* New release v2.11.4rc1v2.11.4rc1Rick Elrod2021-08-101-1/+1
|
* Fix dnf package matching (#75411) (#75418)Sloane Hertel2021-08-061-16/+32
| | | | | | | | | | | * Fix a bug with the dnf module not using all components of a package name when filtering to determine if it's installed * changelog * Simplify splitting on the last '.' * Update lib/ansible/modules/dnf.py (cherry picked from commit b541a148d51e75b298e71161c022b12cd8ebba7c)
* Skip python interpreter discovery for 'forced local' module execution ↵Brian Coca2021-08-062-34/+50
| | | | | | | | | (#74824) (#75402) mostly for use with network_os use 'remote is local' property as indicator ensure task_vars are as expected in test (cherry picked from commit 8d41b97329cae281ce194dbb8cb3ce35fdce23ec)
* ensure we convert path in warning or py2.6 breaks (#75413) (#75414)Brian Coca2021-08-051-1/+1
| | | (cherry picked from commit 75e6bdb5799ffb310bca9fee0707b5c6ffb15cc5)
* [bp-2.11] unarchive - do not fail in init when trying to find required ↵Abhijeet Kasurde2021-08-051-17/+32
| | | | | | | | | | | | | | | binary (#75363) Test for the required binaries in the can_handle_archive() method and fail there. This prevents failures for missing binaries unrelated to the archive type. * Update missing zip binary message to match tar message * Update unit tests * Add integration tests * Define packages based on the system rather than ignoring failures (cherry picked from commit 004c33d9c5fdb20a46b9ef8fb0e203dd34bed3b3) Co-authored-by: Sam Doran <sdoran@redhat.com>
* Globals should be accessible when importing a template without the context ↵Martin Krizek2021-08-051-7/+9
| | | | | | | (#75384) (#75409) Fixes #75371 (cherry picked from commit 5a3807656860cc52c7e6b3eebc5c9397585525ba)
* fix ssh cli defaults (#75245) (#75314)Brian Coca2021-08-042-4/+8
| | | | | | | | | | | | | | | * fix ssh cli defaults (#75245) * fix ssh cli defaults fixes #75221 (cherry picked from commit e5a2fe4c419740e9a709b07b064063f54277b983) * github conflict? * removed retries backrpot also removed tests since they rely on features that don't exist in this version
* fix: action _fixup_perms2 macos +a remote_paths in list() as it can be a ↵Brian Coca2021-08-031-1/+1
| | | | | | | | | | | | | | | | | | tuple (#74613) (#75336) * fix: action _fixup_perms2 macos +a remote_paths in list() as it can be tuple in `lib/ansible/plugin/action/__init__.py`'s `_fixup_perms2`, `remote_paths` can be a list or tuple. however, the macos specific attempt to use chmod +a attempts to concatenate `remote_paths` with a list, which will fail if it is a tuple. wrapping `remote_paths` in `list()` fixes this error. * Update changelogs/fragments/74613-actionfixup_perms2_macos_remote_paths_ensure_list.yml Co-authored-by: Rick Elrod <rick@elrod.me> (cherry picked from commit df6554c4ec8b1256067bc2510134ac49cfc3003c) Co-authored-by: Shane St Savage <shane@axiomdatascience.com>
* Ensure Jinja2 template header overrides are used (#75306) (#75342)Martin Krizek2021-08-031-5/+11
| | | | | Fixes #75275 (cherry picked from commit 767b2f07b00be12b9366655095cf24120d35092e)
* Fix when evaluation on Native Jinja and Python 3.10 (#75202) (#75380)Martin Krizek2021-08-031-2/+9
| | | | | | | | | | | | | | | | | | * Fix when evaluation on Native Jinja and Python 3.10 * Add unit test * Add explaining comment * Enable jinja2_native before tests Co-Authored-By: Matt Martz <matt@sivel.net> * Sanity * Return native template module instead of modifying globals Co-authored-by: Matt Martz <matt@sivel.net> (cherry picked from commit 58e38044fe9c8fc7e06ffd61a93f88db27536af1)
* Update Ansible release version to v2.11.3.post0.Rick Elrod2021-07-191-1/+1
|
* New release v2.11.3v2.11.3Rick Elrod2021-07-191-1/+1
|
* Update Ansible release version to v2.11.3rc1.post0.Rick Elrod2021-07-131-1/+1
|
* New release v2.11.3rc1v2.11.3rc1Rick Elrod2021-07-131-1/+1
|
* [stable-2.11] slurp - improve error code and test coverage (#75038) (#75045)Sam Doran2021-07-121-5/+6
| | | | | | | | | | | | | | | * Improve the error handling code Rather than multiple return paths, have a single return and set the message based on the type of failure. * Add another test for non-specific failures * Reorganize tests so failure tests are in one tasks file * Remove os.stat() call and add changelog. (cherry picked from commit afe6eb574ef8e53e805cc1ff2b25dd9108b29e1c) Co-authored-by: Sam Doran <sdoran@redhat.com>
* [stable-2.11] module_common - handle cache directory creation collision ↵Sam Doran2021-07-121-5/+10
| | | | | | | | | | | | | | | | | | | | | | (#75106) (#75132) * module_common - handle cache directory creation collision Occasionally multiple workers can try to create the cache directory if it exists. Catch the exception and handle it. * Just re-raise if it doesn't exist rather than trying again * Use exists_ok rather than handling an exception * Remove unused import and unused variable * Go back to try/except but with OSError Since we do not have split controller remote, this needs to be able to run in Python 2 in order to be merged currently. (cherry picked from commit 16a74b798c) Co-authored-by: Sam Doran <sdoran@redhat.com>
* [stable-2.11] command - remove unreachable code and achieve full test ↵Sam Doran2021-07-121-4/+1
| | | | | coverage (#75036) (#75044) (cherry picked from commit 4ab791d501771d34fef6edb8f2f7932ed3885687)
* 2.11: Add support for unicode in ansible-inventory CLI (#74912) (#75008)Martin Krizek2021-07-121-6/+6
| | | (cherry picked from commit 5ac1b04929aae38e4a4cfd199051f76c7aa187a0)
* Do not show empty version_added_collection values in ansible-doc text ↵Felix Fontein2021-07-121-0/+4
| | | | | output. (#74999) (#75003) (cherry picked from commit 58450f041a6ffc343e5d19569580f5189e09200c)