summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* New release v2.13.9 (#80610)v2.13.9Matt Martz2023-04-241-1/+1
|
* Update Ansible release version to v2.13.9rc1.post0. (#80538)Matt Martz2023-04-171-1/+1
|
* New release v2.13.9rc1 (#80535)v2.13.9rc1Matt Martz2023-04-171-1/+1
|
* password lookup, handle ident properly when saved (#80251) (#80312)Brian Coca2023-04-172-45/+88
| | | | | | | | | | | | | | | | * password lookup, handle ident properly when saved (#80251) * password lookup, handle ident properly when saved Currently we format and save ident when present but we didn't account for this when reading the saved file Also added some more robust error handling. (cherry picked from commit 0fd88717c953b92ed8a50495d55e630eb5d59166) * fix try indent * clog * fix bad merge indentation
* Ansible.Basic - Improve temporary file cleanup process (#80293) (#80325)Jordan Borean2023-04-141-6/+263
| | | | | | | * Ansible.Basic - Improve temporary file cleanup process * Add comment on struct value used (cherry picked from commit ba4505f5cb2fb52cda450a06679ddea3599e3e70)
* Improve Ansible.Basic.cs tempdir uniqueness (#80328) (#80330)Jordan Borean2023-04-141-1/+2
| | | | | | | | | | | | | * Improve Ansible.Basic.cs tempdir uniqueness The current tempdir naming scheme can result in the same name if the remote worker starts at the same time as another. By using the process id it should add enough uniqueness to avoid this situation. * Fix sanity issues * Fix up compile issue on older hosts (cherry picked from commit fb6b90fe4255e9995706905e2a9cde205648c0d2)
* Fetch signatures from galaxy after the dependency resolver runs (#80334) ↵Sloane Hertel2023-04-144-4/+15
| | | | | | | | | | (#80399) Reduce the number of Galaxy API calls made during dependency resolution by fetching remote signatures afterwards, since these are not used in backtracking. Reduce the verbosity to `-vvvv` (to match other Galaxy API calls) to see this activity. Co-authored-by: Sviatoslav Sydorenko <webknjaz@redhat.com> (cherry picked from commit 460abe0ceffc5ca99b3cc2f2e3ef07aa2cb225dc)
* [stable-2.13] ansible-galaxy collection install retry improvements (#80180) ↵Matt Martz2023-04-123-26/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#80275) * clog frag * Fix retries so that each explicit call to _call_galaxy is retried for the correct number of attempts. Fixes #80174 * Extend retry logic to common URL related connection errors. Fixes #80170 * Extend retries to downloading artifacts * Extend param docs for change * Rework the exception handling * Don't be overly broad, reduce to TimeoutError, and BadStatusLine for now * _download_file needs to raise AnsibleError.orig_exc * Remove unused import * Add IncompleteRead * Add socket.timeout for py39 * Add 502 to retry codes * Move http error code checking first * Use itertools.tee to replay the backoff_iterator instead of using a callable * Actually set a CLI default of 60s for timeout, to prevent implicit galaxy from using 10s as default from Request.open * Import typing * fix type hints * Use http.HTTPStatus instead of int HTTP error codes where feasible * Split exception handling * Add missing import --------- . (cherry picked from commit 2ae013667ef226635fe521be886efd1bf58cd46f)
* [2.13] ansible-doc: fix broken seealso links in text output (#80286)Felix Fontein2023-03-281-4/+10
| | | | | | | | | | | | | * ansible-doc: fix broken seealso links in text output (#80280) * Fix broken URLs. * Also remove auto-generated description for modules outside ansible.builtin. (cherry picked from commit fafb23094e77a619066a92a7fa99a7045292e473) * Fix URL processing. (#80295) (cherry picked from commit 086ae4220957cdb66eee8aa060c151a071f3b9bd)
* Update Ansible release version to v2.13.8.post0. (#80099)jamesmarshall242023-02-271-1/+1
|
* New release v2.13.8 (#80082)v2.13.8jamesmarshall242023-02-271-1/+1
|
* Update Ansible release version to v2.13.8rc1.post0. (#80042)jamesmarshall242023-02-201-1/+1
|
* New release v2.13.8rc1 (#80028)v2.13.8rc1jamesmarshall242023-02-201-1/+1
|
* [2.13] don't ignore templated _raw_params that k=v parser failed to parse ↵Matt Davis2023-02-151-0/+4
| | | | | | | | | (#79913) (#79965) * don't ignore templated _raw_params that k=v parser failed to parse (#79913) fixes #79862 * backport test changes
* [stable-2.13] Ansible.Basic.cs - Fix compile error on PS 7.3.x (#79848) (#79851)Matt Clay2023-02-021-0/+4
| | | (cherry picked from commit 83fe75db07cb55dc2efeb437ce20b9d4462860c3)
* [stable-2.13] Fix file touch check mode result (backport of #79422) (#79526)sbettid2022-12-061-27/+31
| | | | | | | | | * Fix file touch check mode result (#79360) (#79422) Fixes #79360 (cherry picked from commit 3936b5c471068d86c3e51a454a1de2f0d2942845) * Rename changelog fragment according to PR number
* Update Ansible release version to v2.13.7.post0. (#79529)Ricardo Carrillo Cruz2022-12-051-1/+1
|
* New release v2.13.7 (#79528)v2.13.7Ricardo Carrillo Cruz2022-12-051-1/+1
|
* Update Ansible release version to v2.13.7rc1.post0. (#79494)Ricardo Carrillo Cruz2022-11-281-1/+1
|
* New release v2.13.7rc1 (#79477)v2.13.7rc1Ricardo Carrillo Cruz2022-11-281-1/+1
|
* file lookup now works with general lookup error framework (#79339) (#79388)Gaudenz Steinlin2022-11-161-3/+3
| | | | | | | * file lookup now works with general lookup error framework (cherry picked from commit 3448fcabc539fb2d3351c20a5b82c3558d037c75) Co-authored-by: Brian Coca <bcoca@users.noreply.github.com>
* Fix typo 'Ansbile'. (#79318) (#79331)Felix Fontein2022-11-102-2/+2
| | | (cherry picked from commit 2a03c8028eed986cd84b9165f47afcf39d4835e0)
* Update Ansible release version to v2.13.6.post0. (#79323)Dimitri Savineau2022-11-071-1/+1
|
* New release v2.13.6 (#79315)v2.13.6Dimitri Savineau2022-11-071-1/+1
|
* Update Ansible release version to v2.13.6rc1.post0. (#79261)Ricardo Carrillo Cruz2022-10-311-1/+1
|
* New release v2.13.6rc1 (#79258)v2.13.6rc1Ricardo Carrillo Cruz2022-10-311-1/+1
|
* File lookup handle missing file more gracefully (#79230) (#79245)Brian Coca2022-10-281-7/+7
| | | | | | previously it would have a 2nd tb due to bad error raising also remove superfluous warning (cherry picked from commit aaab0791d9507b64ea04903bf35500c87ebb33b4)
* mention acl in permissions errors (#79209) (#79251)Brian Coca2022-10-281-4/+4
| | | | | | | | as chmod/mode is not the only thing we attempt and Ubuntu not shipping acl in newer versions can lead to some confusion fixes #79146 (cherry picked from commit 0f18ddca9f4b04cacd85a8a54a6fcc8f8b2ee38e)
* [stable-2.13] Don't assume column index for netmask and broadcast (#79121) ↵Matt Martz2022-10-261-8/+19
| | | | | | | | | | (#79133) * Don't assume column index for netmask and broadcast. Fixes #79117 * fix typo (cherry picked from commit f53dbf9) Co-authored-by: Matt Martz <matt@sivel.net>
* [stable-2.13] Use python re to parse service output instead of grep (#79015) ↵Matt Martz2022-10-261-8/+12
| | | | | | | | | | | | (#79051) * Use python re to parse service output instead of grep. Fixes #78541 * Add clog frag * Add an extra guard to abort if rc is 4, and /etc/init.d is missing (cherry picked from commit 4458128) Co-authored-by: Matt Martz <matt@sivel.net>
* [2.13] ansible-galaxy - fix unnecessary api check when installing role (#79143)Sloane Hertel2022-10-262-24/+47
| | | | | | | | | | | | | | | * ansible-galaxy install - fix unnecessary api check when installing a role from git repo (#79090) * delay server api evaluation until a GalaxyRole needs to make an api call for info, list, and install (cherry picked from commit cb2e434dd2359a9fe1c00e75431f4abeff7381e8) * fix type for older python * Fix isinstance check (#79159) Use GalaxyAPI for isinstance check instead of RoleDistributionServer, since the latter is defined in __main__ sometimes (when running integration tests or ansible-galaxy from source) and importing from ansible.cli.galaxy won't reference the same object. (cherry picked from commit 89d682464b65af6d2f77a148fc6abb2c38b0e994)
* copy, avoid moving non temp remote 'non' files (#79102) (#79155)Brian Coca2022-10-261-13/+18
| | | | | | * copy, avoid moving non temp remote files that are not dirs/files fix tests (cherry picked from commit f66016df0e22e1234417dc3538bea75299b4e9eb)
* fix password lookup's use of f=v settings (#76551) (#79108)Brian Coca2022-10-261-62/+60
| | | | | | | | | | | | | * fix password lookup's use of f=v settings (#76551) update tests (cherry picked from commit 5d253a13807e884b7ce0b6b57a963a45e2f0322c) * fix password unit tests (#79113) (cherry picked from commit c4d6629bce3cbcaff56685315b98b98027fdd3a4) Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
* Update Ansible release version to v2.13.5.post0. (#79099)jamesmarshall242022-10-111-1/+1
|
* New release v2.13.5 (#79075)v2.13.5jamesmarshall242022-10-101-1/+1
|
* Update Ansible release version to v2.13.5rc1.post0. (#78995)jamesmarshall242022-10-031-1/+1
|
* New release v2.13.5rc1 (#78937)v2.13.5rc1jamesmarshall242022-10-031-1/+1
|
* apt module, prevent tb from invalid type for pkg (#78666) (#78908)Brian Coca2022-09-291-3/+7
| | | | | | | * apt module, prevent tb from invalid type for pkg see #78663 (cherry picked from commit 7acd4f75c037974be7fa4e7eabe55152dfc57500)
* [stable-2.13] Add ssh_args and friends back, add var for proxy_command ↵Matt Martz2022-09-291-4/+43
| | | | | | | | | | | | | | (#78826) (#78837) * [stable-2.13] Add ssh_args and friends back, add var for proxy_command (#78826) Fixes #78750 (cherry picked from commit 1b47def) Co-authored-by: Matt Martz <matt@sivel.net> * Remove non-backportable changes (cherry picked from commit ba2938a388c065da7897aceb2d0890a656957cd3)
* [2.13] apt - fix failure when package is not installed and only_upgrade=True ↵Sloane Hertel2022-09-291-1/+6
| | | | | | | | | | | | | | | (#78791) * apt - fix failure when package is not installed and only_upgrade=True (#78781) * apt - fix module failure when package is not installed and only_upgrade is True * changelog (cherry picked from commit 4b45b4b09d9257006f7b23237293c8c1a04521d8) * apt - fix module short-circuiting when a package is not installed and only_upgrade is True (cherry picked from commit 14f46845f9e74aac26aa54004c88a414926afc6a)
* [2.13] Limit Galaxy API calls during ansible-galaxy dependency resolution ↵Sloane Hertel2022-09-281-12/+24
| | | | | | | | | | (#78722) * Limit Galaxy API calls during ansible-galaxy collection dependency resolution when possible Installing a tarfile with a dependency from a Galaxy server (e.g. dependencies: {'ns.coll': '>=1.0.0'}) does not get the available versions of the dependency from the galaxy server if a sufficient version is already installed. Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua> (cherry picked from commit 41b62f7db459b7c3a1d97302da3b9f2cbf302670)
* [stable 2.13] Fix known host changed status when removing non-existing key ↵sbettid2022-09-281-0/+6
| | | | | | | | | | | | | | | | | #78598 (#78878) * Fix known_hosts changed status when removing non-existing key (#78748) * Ensure no change is reported when removing missing key for host with other keys Co-authored-by: Matt Martz <matt@sivel.net> * Add changelog for fix known hosts wrong changed status cherry pick * Remove old changelog for fix known hosts wrong changed status * Rename changelog according to PR number Co-authored-by: Matt Martz <matt@sivel.net>
* plugin loader fix existing config testing (#78859) (#78890)Brian Coca2022-09-282-1/+9
| | | | | create specific function to find config entry to avoid repopulating constantly (cherry picked from commit 4115ddd135a0445092c9f9a7b5904942ceedd57c)
* Backportapalooza 9 15 (#78787)Sandra McCann2022-09-152-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add galaxy docs back to core' (#78764) (cherry picked from commit df6a564abd9a63e1bff0ad14f9b800ceccc2da31) * Ansible 6.4.0: Porting Guide (#78775) (cherry picked from commit d4407ca68822b1f12254957ec9918f94c23d374f) * Documented connection parameters required to enable scp (OpenSSH >=9.0) (#78745) (cherry picked from commit 952ee88f33de4d49ff5f7bd4bec3431a4b0fdc78) * Fix Issue #78564 (#78741) (cherry picked from commit f50ff1c2dbb2eee88b2ac9e50e9f13d942e41f12) * faq legacy vs builtin (#78769) (cherry picked from commit db33ca8e1a8b9805eb0a074eee86aaa2237065cd) * Removed repeated introduction paragraph (#78691) (cherry picked from commit e276770ee9efac3a98c3f1116d9cd9c992ca8c9e) Co-authored-by: Ompragash Viswanathan <21008429+Ompragash@users.noreply.github.com> Co-authored-by: wnjuguna <jbworldus@gmail.com> Co-authored-by: Ronan <ronandoudies@gmail.com> Co-authored-by: Brian Coca <bcoca@users.noreply.github.com>
* Update Ansible release version to v2.13.4.post0. (#78753)Christian Adams2022-09-121-1/+1
|
* New release v2.13.4 (#78751)v2.13.4Christian Adams2022-09-121-1/+1
|
* Update Ansible release version to v2.13.4rc1.post0. (#78718)Christian Adams2022-09-061-1/+1
|
* New release v2.13.4rc1 (#78717)v2.13.4rc1Christian Adams2022-09-061-1/+1
|
* Fix typos in stat module examples (#78651) (#78687)Sandra McCann2022-09-011-2/+2
| | | | | (cherry picked from commit 38c3b5e8f1cd6898b8dfe54f1849c8e424b5dd49) Co-authored-by: NitrogenPointBlue <110332643+NitrogenPointBlue@users.noreply.github.com>
* [stable-2.13] Guard urllib3 imports against all exceptions. Fixes #78648 ↵Matt Martz2022-08-311-4/+4
| | | | | | | (#78667) (#78672) (cherry picked from commit f8e24e4) Co-authored-by: Matt Martz <matt@sivel.net>