summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [2.13] Log `runme.sh` execution in integration tests (#79283)Sviatoslav Sydorenko2022-11-038-11/+8
| | | | | | | | | | | | | | | | * Log `runme.sh` execution in integration tests (#79263) * Log `runme.sh` execution in integration tests This patch adds `set -x` where it's missing in the integration tests. It also enables `pipefail` in `runme.sh` scripts that use pipes. * Add a change note for PR #79263 (cherry picked from commit 6674c43edd203d1241507c4d857f555a7c844c18) * Delete a bad PR #79263 change note (cherry picked from commit 9cfb3f73e8d7f910e226de3aebe6f9b9b18327ec)
* [stable-2.13] ansible-test - Fix and update documentation links..Matt Clay2022-11-035-17/+36
| | | | | | (cherry picked from commit 938c0fa944cabdc1a21745abade7f05ac3e6ee26) Co-authored-by: Matt Clay <matt@mystile.com>
* 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-314-1/+55
|
* File lookup handle missing file more gracefully (#79230) (#79245)Brian Coca2022-10-282-7/+9
| | | | | | 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-283-5/+7
| | | | | | | | 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 docs build: do not use YAML parsing/serialization for .deps files ↵Felix Fontein2022-10-271-7/+23
| | | | | | | | | (#79233) (#79237) * Do not use YAML parsing/serialization for .deps files. * Prevent crash. (cherry picked from commit 9545f2e0deae73d142047f02b499940b07b700aa)
* Communication docs: note that editing Matrix messages causes IRC spam ↵Felix Fontein2022-10-271-1/+1
| | | | | (#79238) (#79241) (cherry picked from commit bc83da9a1b0f0cd6575d45d575bd679039585a89)
* [stable-2.13] Don't assume column index for netmask and broadcast (#79121) ↵Matt Martz2022-10-263-8/+65
| | | | | | | | | | (#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-262-8/+15
| | | | | | | | | | | | (#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-265-25/+57
| | | | | | | | | | | | | | | * 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-264-13/+62
| | | | | | * 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-262-93/+100
| | | | | | | | | | | | | * 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>
* [stable-2.13] Fix ansible-test-git test for newer git versions.Matt Clay2022-10-251-1/+1
| | | | | | | | | The latest versions of `git` include a fix for CVE-2022-39253. The fix blocks the file protocol by default. See: https://github.com/git/git/blob/45c9f05c44b1cb6bd2d6cb95a22cf5e3d21d5b63/Documentation/RelNotes/2.30.6.txt (cherry picked from commit 4202acb41b4ee42c5e9e52a07ac56d49045ec943) Co-authored-by: Matt Clay <matt@mystile.com>
* [stable-2.13] Restrict `wheel` below v0.38.0 under Pythons < 3.7 (#79187)Sviatoslav Sydorenko2022-10-244-0/+5
| | | | | | | | | | | | | | | | | * Restrict `wheel` below v0.38.0 under Pythons < 3.7 * Add a change note for PR #79187 * Update changelogs/fragments/79187--wheel-0.38.0.yml Co-authored-by: Matt Clay <matt@mystile.com> * Use constraints file when installing wheel. Co-authored-by: Matt Clay <matt@mystile.com> (cherry picked from commit a76bbb18a5a80cda0d9683677aa8d5cd8a2e6093) Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
* remove AnsibleFest banner (#79156) (#79158)Sandra McCann2022-10-181-2/+2
|
* Add Ansible community 6.5.0 porting guide (#79124)Don Naro2022-10-121-2/+26
| | | Co-authored-by: Ansible Service Account <chadams@redhat.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-104-4/+31
|
* 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-034-1/+49
|
* apt module, prevent tb from invalid type for pkg (#78666) (#78908)Brian Coca2022-09-292-3/+9
| | | | | | | * 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-292-4/+46
| | | | | | | | | | | | | | (#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-293-8/+23
| | | | | | | | | | | | | | | (#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-284-12/+87
| | | | | | | | | | (#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-284-0/+44
| | | | | | | | | | | | | | | | | #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-283-1/+11
| | | | | create specific function to find config entry to avoid repopulating constantly (cherry picked from commit 4115ddd135a0445092c9f9a7b5904942ceedd57c)
* [stable-2.13] ansible-test - Fix integration test target filter. (#78862)Matt Clay2022-09-2213-4/+72
| | | | | | | | - Allow disabled, unsupported, unstable and destructive integration test targets to be selected using their respective prefixes. - Allow unstable tests to run when targeted changes are made and the ``--allow-unstable-changed`` option is specified (resolves https://github.com/ansible/ansible/issues/74213). (cherry picked from commit d3d7785472ce18ee79c2abb893be1cf40ff563dd) Co-authored-by: Matt Clay <matt@mystile.com>
* [stable-2.13] Don't request repo updates when only testing modes (#78843) ↵Matt Martz2022-09-211-0/+5
| | | | | | | (#78849) (cherry picked from commit 2542048) Co-authored-by: Matt Martz <matt@sivel.net>
* Backportapalooza 9 15 (#78787)Sandra McCann2022-09-158-13/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-124-4/+18
|
* 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-064-1/+64
|
* 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>
* new: documentation update for galaxy usr guide (#78649) (#78688)Sandra McCann2022-09-011-0/+3
| | | Co-authored-by: Adrian Brown <ap.brown011@gmail.com>
* [stable-2.13] Guard urllib3 imports against all exceptions. Fixes #78648 ↵Matt Martz2022-08-312-4/+9
| | | | | | | (#78667) (#78672) (cherry picked from commit f8e24e4) Co-authored-by: Matt Martz <matt@sivel.net>
* [stable-2.13] wait_for - Read file and perform comparisons using bytes to ↵Matt Martz2022-08-314-22/+63
| | | | | | | | | | | | | | | | avoid decode errors (#78317) (#78660) * wait_for - Read file and perform comparisons using bytes to avoid decode errors. Fixes #78214 * Write non-ascii via script instead of static file * Use contexlib.closing to support py27 context manager * Use executable from task, instead of shebang * Update encoded bytes to utf16 (cherry picked from commit 9d4ced1) Co-authored-by: Matt Martz <matt@sivel.net>
* Fix pytest collection during test_host partial run (#78594)Sviatoslav Sydorenko2022-08-311-0/+0
| | | | | | | | | | | | | Sometimes pytest errors out with an `ImportError` during its tests collection stage when a Python package/directory containing the test module does not have an `__init__.py` in it. This is being observed under Python 3.9 and higher. The patch provides a workaround for this problem but does not address the root cause which is currently unknown. Ref: https://github.com/ansible/ansible/pull/78585#issuecomment-1220885431 (cherry picked from commit beb70daf14bc14acad076b34dca39a3ca6b633bb)
* [stable-2.13] Fix exit codes for role search and delete. Fixes #78516 ↵Matt Martz2022-08-312-3/+6
| | | | | | | (#78578) (#78583) (cherry picked from commit 4c8b8a0) Co-authored-by: Matt Martz <matt@sivel.net>
* [stable-2.13] Fix --role-file arg detection (#78475) (#78522)Matt Martz2022-08-313-2/+28
| | | | | | | | | | * Fix --role-file arg detection. Fixes #78204 * Do not traceback, give better error * Add coverage for compound shortopts to match -r. Fixes #78491 (cherry picked from commit 86298b7) Co-authored-by: Matt Martz <matt@sivel.net>
* Fail fast in stuck `ansible-galaxy-collection` (#78627)Sviatoslav Sydorenko2022-08-311-1/+12
| | | | | | | | | | | | This specific integration test gets stuck periodically causing the Galaxy jobs to be killed on timeout wasting an hour of runtime. The module that gets stuck waiting on Pulp is an in-test one, called `setup_collections`. When it works, the task is complete in around 70 seconds but when it doesn't, it just freezes the whole play. This patch attempts to make it fail faster by putting a reasonable timeout value of 2 minutes. (cherry picked from commit f1c56e988dbbb769b34a3c80baa40c916b4d0c88)
* Replace get_persistent_connection_options in task_executor with get_options ↵Kate Case2022-08-314-35/+41
| | | | | | | | | | | | (#74446) (#78590) Replace get_persistent_connection_options with get_options Remove special case for network sub_plugin in _set_plugin_options Try to avoid mock connection pretending to be persistent Rename variables->options to reflect what they actually are Gather options for ssh_type_conn on network_cli Drop reliance on sub_plugin["type"] (cherry picked from commit bf1ef5a1f3562c9a59168adbc78750304c3e4309)
* Fix apt making changes in check mode (#78496) (#78530)Sloane Hertel2022-08-314-3/+59
| | | | | | | | | | | | | | | * Don't actually update the cache in check mode Add tests for updating the cache in check mode * Don't mark packages as manually installed in check mode and add a test for it * changelog * Update test/integration/targets/apt/tasks/apt.yml * fix test (cherry picked from commit 3add5e932178799f8409f3255f148260efa7b4ac)
* apt: include apt preferences (e.g. pinning) when selecting packages (#78327) ↵Sloane Hertel2022-08-313-16/+98
| | | | | | | | | (#78462) Fixes #77969 (cherry picked from commit 04e892757941bf77198692bbe37041d7a8cbf999) Co-authored-by: Patrick Hemmer <phemmer@users.noreply.github.com>
* Filter on any Fedora-Cloud-Base image (#78669)Matt Martz2022-08-301-1/+1
|
* Backportapalooza 08 25 (#78647)Sandra McCann2022-08-254-5/+6
| | | | | | | | | | | | | | | | | | | | | | | * fix adhoc dev example (#78593) (cherry picked from commit 5ac40b358d7d64e4169813e400c19f869b17183c) * Docs: fix issue-76133-apt-repository (#78586) (cherry picked from commit 3b9f1871e512ffc4106348cadb2ea369eb8b4fd0) * Fixes parameter name in expect module examples (#78635) (cherry picked from commit 81813b7f23f6c33d9bec52f04d0d061bd5f1755e) * doc: Correct mixed up commentary and task name (#78610) Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com> (cherry picked from commit 87ba1e29d3ca1aec2d05782e0fe9a33c82701e62) Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com> Co-authored-by: Arnold Kamanzi <kamstan6@gmail.com> Co-authored-by: gmdmi <gmdmi@ya.ru> Co-authored-by: rawtaz <rawtaz@users.noreply.github.com>
* [2.13] Disable `connection_paramiko_ssh` under FreeBSD 13.0 (#78643)Sviatoslav Sydorenko2022-08-251-0/+1
|
* Add Porting Guide for ansible-community v6 (#78625) (#78631)Sandra McCann2022-08-241-0/+23
| | | | | (cherry picked from commit df497ea13bc77fb1862c94682949c133870b8238) Co-authored-by: Christian Adams <chadams@redhat.com>
* [stable-2.13] Fix file integration test chattr/lsattr check. (#78614) (#78618)Matt Clay2022-08-221-0/+2
| | | | | | | On BusyBox systems such as Alpine, chattr on a tmpfs fails with a status of 0 and output only on stderr. This change updates the test to not assume output on stdout. (cherry picked from commit 2e536c0afb9008884a0f12e8e650541e0ead76c9)