summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update Ansible release version to v2.14.6rc1.post0. (#80803)stable-2.14Matt Martz2023-05-151-1/+1
|
* New release v2.14.6rc1 (#80798)v2.14.6rc1Matt Martz2023-05-154-1/+74
|
* [stable-2.14] ansible-test - Fix handling of long timeouts (#80769) (#80773)Matt Clay2023-05-102-1/+3
| | | (cherry picked from commit aacab0633a963e7a89fc1e6ac71cdf06553f96ab)
* [stable-2.14] ansible-test - Fix timeout handling (#80764) (#80766)Matt Clay2023-05-107-36/+83
| | | (cherry picked from commit 4c6aa70662e6f2804686a32bea611a8aa870b363)
* [stable-2.14] ansible-test - Avoid use of deprecated utcnow (#80750) (#80758)Matt Clay2023-05-107-12/+16
| | | | | The timestamps are only used by ansible-test, not the junit callback, so this change only impacts ansible-test. (cherry picked from commit fd341265d001d4e6545ffb2b7d154340cb1f1931)
* [ansible-galaxy] Fix installing signed collections (#80661) (#80666)Sloane Hertel2023-05-094-32/+12
| | | | | | | | | | | * Fix installing signed collections by using the fqcn, version, source, and type as a unique identifier. Define __hash__ and __eq__ methods to handle Candidate/Requirement comparison excluding signatures which aren't fully populated until install time. * Remove PinnedCandidateRequests since it is redundant now. * Fix verifying against a signed remote when the keyring isn't configured (cherry picked from commit d5e2e7a0a8ca9017a091922648430374539f878b)
* Account for overlays when interacting with Jinja envs (#80705) (#80717)Martin Krizek2023-05-095-4/+30
| | | | | | | | | | Instead of using Templar.environment in Templar.do_template for accessing/mutating the environment, myenv local variable should be used because it is the environment used for actual templating. It can either point to Templar.environment or newly created environment overlay. Fixes #80605 (cherry picked from commit 8cd95a8e664ccd634dc3a95642ef7ad41f007169)
* [stable-2.14] pep517 backend - Copy symlinks when copying source (#80690) ↵Matt Clay2023-05-092-1/+4
| | | | | (#80701) (cherry picked from commit 54576cd794530768a67bddba2f7450b614611e92)
* Reconfigure stdout/stderr to replace invalid UTF-8 characters. Fixes #80258 ↵Matt Martz2023-05-092-0/+9
| | | | (#80552)
* [stable-2.14] Release tool improvements (#80641) (#80680)Matt Clay2023-05-011-1/+50
| | | | | | | * Provide reproducible sdist builds. * Use reproducible wheel builds. * Add PyPI artifact checks. (cherry picked from commit d37678c5ff221ada71afc0cad3ff7b70e0a0ec2f)
* [stable-2.14] ansible-test - Use FreeBSD packaged setuptools (#80615) (#80617)Matt Clay2023-04-242-0/+3
| | | | | This will avoid issues during bootstrapping caused by breaking changes in setuptools. (cherry picked from commit abc58c026b2e91af4a2bb57f7bfe21c609bd3de9)
* Update Ansible release version to v2.14.5.post0. (#80614)Matt Martz2023-04-241-1/+1
|
* New release v2.14.5 (#80611)v2.14.5Matt Martz2023-04-244-4/+18
|
* Update Ansible release version to v2.14.5rc1.post0. (#80539)Matt Martz2023-04-171-1/+1
|
* New release v2.14.5rc1 (#80536)v2.14.5rc1Matt Martz2023-04-174-1/+81
|
* password lookup, handle ident properly when saved (#80251) (#80310)Brian Coca2023-04-174-48/+103
| | | | | | | | | | | | | | | | | | * 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 block indent# https://chris.beams.io/posts/git-commit/ * clog (cherry picked from commit 97c8da77838e93b416c5e700abafa89a8383e950) * fix bad merge indentation
* Change ansible_job_id format (#79951) (#80282)Martin Krizek2023-04-177-17/+19
| | | | | | | | | | | | * Change ansible_job_id format ...to be something that does not resemble float or other type which value could be changed by literal_eval that jinja2_native uses. Specifically the format of '%d.%d' is converted from str to float and then back to float which may result in truncating the number resulting in the job not being found because the job id does not exist. (cherry picked from commit 09e0fb3516a793009a1b2ac8bfcc758016a10c6d)
* [stable-2.14] ansible-galaxy collection install retry improvements (#80180) ↵Matt Martz2023-04-175-27/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#80274) * 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) [stable-2.14] ansible-galaxy collection install retry improvements (#80180) * 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)
* fix using templated values for include/import role FA (#80320) (#80378)Sloane Hertel2023-04-178-3/+48
| | | | | | | | | | | | | * fix using templated values for include/import role options 'public', 'allow_duplicates', and 'rolespec_validate' * pass templated values without changing the instance * Fix templating by setting always_post_validate to True and calling IncludeRole.post_validate() instead ci_complete * add changelog (cherry picked from commit 666188892ed0833e87803a3e80c58923e4cd6bca)
* Ansible.Basic - Improve temporary file cleanup process (#80293) (#80324)Jordan Borean2023-04-123-6/+433
| | | | | | | * 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) (#80331)Jordan Borean2023-04-122-1/+4
| | | | | | | | | | | | | * 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)
* [stable-2.14] --syntax-check is only applicable to ansible-playbook. Fixes ↵Matt Martz2023-04-123-2/+5
| | | | | #80506 (#80507) (#80510) (cherry picked from commit f3774ae)
* [stable-2.14] pep517 backend - Use correct import_module import (#80480) ↵Matt Clay2023-04-122-1/+3
| | | | | (#80502) (cherry picked from commit e87802cf2c75c5f2578e58ed2edb3e033623cc78)
* Fetch signatures from galaxy after the dependency resolver runs (#80334) ↵Sloane Hertel2023-04-126-5/+19
| | | | | | | | | | (#80398) 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.14] ansible-test - Add support for argcomplete 3 (#80482) (#80485)Matt Clay2023-04-113-5/+25
| | | (cherry picked from commit 0371ea08d6de55635ffcbf94da5ddec0cd809495)
* [stable-2.14] ansible-test - Fix packaging change classification (#80360) ↵Matt Clay2023-03-293-5/+15
| | | | | (#80361) (cherry picked from commit 5d64024f1ab1283750f2211692970dfa1b351ed5)
* Backportapalooza 03 29 (#80350)Sandra McCann2023-03-2915-112/+703
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update special_variables.rst (#80210) The usage of a glossary on this page will allow linking to a specific special variable, like on the glossary page, e.g.: https://docs.ansible.com/ansible/latest/reference_appendices/glossary.html#term-Idempotency (cherry picked from commit 1491ec8019b064374145dace41b1320e04fb494b) * uri: improve force_basic_auth documentation (#80211) Add more details about what "true" and "false" mean for the force_basic_auth setting. Give example scenarios when clients may want to use this setting. (cherry picked from commit fc8203168e964b26478a0f28b0e34d9b34331fde) * Improve dirname and basename filter doc (#80054) (cherry picked from commit 93beef053eabdb6ff2a9823bc8d0d1037671b1e3) * Move Collection requirements to ansible/ansible (#80234) (cherry picked from commit cba395243454b0a959edea20425618fe7b9be775) * Add Ansible community 7.4.0 porting guide (#80338) (cherry picked from commit 29e0a68af251981b97b6c594e52051652ef472d3) * Add antsibull-changelog and antsibull-docs to other tools and programs page. (#80340) (cherry picked from commit cf44c84396ee2afdd0258aed1d09d5eecde94d17) --------- Co-authored-by: Benoît Geeraerts <10222438+b-enoit-be@users.noreply.github.com> Co-authored-by: Ken Dreyer <kdreyer@redhat.com> Co-authored-by: Daniel Ziegenberg <daniel@ziegenberg.at> Co-authored-by: Anwesha Das <anwesha@das.community> Co-authored-by: Felix Fontein <felix@fontein.de>
* [2.14] ansible-doc: fix broken seealso links in text output (#80285)Felix Fontein2023-03-287-6/+85
| | | | | | | | | | | | | * 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)
* [stable-2.14] New upstream release tool (#80179) (#80321)Matt Clay2023-03-271-0/+1420
| | | (cherry picked from commit a6bfa82bd061d1d66e7d67064f2e78774a103b54)
* [stable-2.14] Use variable instead of container resource in AZP (#80299) ↵Matt Clay2023-03-273-7/+4
| | | | | (#80316) (cherry picked from commit 93d0253292dc2e66432d96f047b66200a2d2e35b)
* Update Ansible release version to v2.14.4.post0. (#80314)Matt Martz2023-03-271-1/+1
|
* New release v2.14.4 (#80313)v2.14.4Matt Martz2023-03-274-5/+19
|
* [stable-2.14] Fix url lookup test to use test container (#80284) (#80287)Matt Clay2023-03-231-2/+2
| | | (cherry picked from commit 054aa9215857f376ee4d387339e6b82bcc14b437)
* Update Ansible release version to v2.14.4rc1.post0. (#80266)Matt Davis2023-03-211-1/+1
|
* New release v2.14.4rc1 (#80265)v2.14.4rc1Matt Davis2023-03-214-1/+106
|
* [stable-2.14] 📦 Switch sdist build-system to pure setuptools (#80255) ↵Matt Clay2023-03-212-9/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#80261) * [stable-2.14] 📦 Switch sdist build-system to pure setuptools (#80255) This patch modifies the in-tree build backend to build sdists that swap out pointers to it in the `pyproject.toml`'s `[build-system]` section. The effect of this is that the first build from source (for example, from a Git checkout) uses our PEP 517 in-tree build backend. But the produced tarball has `build-backend` set to `setuptools.build_meta` which is the native build backend of `setuptools`. So any following builds from that sdist will skip using the in-tree build backend, calling the setuptools' one. The good news is that if the first build generated the manpages, they will be included and won't go anywhere even though, a different build system is in place. Combined with #80253, this will make sure not to modify the current source checkout on that first build. Co-authored-by: Matt Clay <matt@mystile.com> (cherry picked from commit 7097df3eed979446830fc579613ffb9b7e7c19bf) Co-authored-by: Sviatoslav Sydorenko <webknjaz@redhat.com> * Make PEP 517 mutation tests use pinned old setuptools (#80262) * Pin setuptools to lowest supported @ PEP 517 test This allows catching the behavior of builds under old setuptools. * Stop invoking `setup.py install` in tests This is not the part we care about since it involves dealing with the external runtime dependencies rather than building our source distribution. (cherry picked from commit eebfd71a6da396b011e664604c9991543205d780) --------- Co-authored-by: Sviatoslav Sydorenko <webknjaz@redhat.com>
* [stable-2.14] Make isolated source changes @ PEP 517 backend (#80253)Sviatoslav Sydorenko2023-03-201-16/+45
| | | | | | (cherry picked from commit 888abf5d6e13880ba82d02c5f8a57ca1f90a992f) Co-authored-by: Sviatoslav Sydorenko <webknjaz@redhat.com>
* Use FAs with inheritance only when applicable (#80026) (#80076)Martin Krizek2023-03-2013-53/+68
| | | | | | | | | | ... and set default value of an attribute on an object only in NonInheritableFA. Fixes #79777 ci_complete (cherry picked from commit 6c3d2a4e51df560e350d1ca3d6a039bf0e05f2ab)
* Avoid redundant unsafe wrapping in ansible_eval_concat (#80143) (#80162)Martin Krizek2023-03-202-5/+2
| | | | | | The wrap_var is done in do_template for all concat functions after their return. (cherry picked from commit 694f12d01b17e4aba50bda55546edada6e79b5a8)
* copy - fix check mode with remote_src=True (#78624) (#80176)Sloane Hertel2023-03-203-5/+46
| | | | | | | | | * Don't create dest directory in check mode uncomment existing test Fix checking for file attribute changes in check mode and add a test (cherry picked from commit b7a0e0d79278906c57c6dfc637d0e0b09b45db34)
* ansible-galaxy role info - fix unhandled AttributeError (#80187)Sloane Hertel2023-03-202-2/+4
| | | | | * catch GalaxyError instead of its base class to ensure it will have a http_error attribute (cherry picked from commit 6165dfea4040fdac9d73e9f415f3da9b0b8a3591)
* Backportapalooza 03 16 (#80246)Sandra McCann2023-03-177-18/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * improve doc dependency install steps (#80120) (cherry picked from commit 352010f9c322f5cfd1f61d5e66cd8eb7fa0b49b6) * docs: automatic `always` tag in gather_facts (#80052) (cherry picked from commit 3216e071c7024084045ae1528bad8d66faf2512a) * docsite requirements path (#80134) (cherry picked from commit 1055803c3a812189a1133297f7f5468579283f86) * Adjust release schedule docs to four weeks (#80166) (cherry picked from commit 7ce951ff48baaf53feab1ca09930281706813c70) * Fix spelling and grammar in subelements filter doc (#80137) (cherry picked from commit 12c1891ce65ade57551560836d371c3c0af5c47a) * Fixed typo (#80184) `uvault` should be `unvault` (cherry picked from commit cb2180e286eb20af32ae5df5c942f2ee989338e2) * Document debugging conditionals (#80239) ##### SUMMARY Add a section to the docs describing how to debug conditional statements - how to get Ansible to show you whether your `when:` clause evaluates to `true` or `false`. I ran into trouble with this and couldn't find anything in the docs. Thought I'd add it. ##### ISSUE TYPE - Docs Pull Request +label: docsite_pr (cherry picked from commit 507fd1bd60f529681c96fa526ffa7835e122ddcb) * Update connection.rst (#80194) (cherry picked from commit 0937cc486219663b6b6e6a178ef40798217864fa) --------- Co-authored-by: Don Naro <dnaro@redhat.com> Co-authored-by: Jairo Llopis <973709+yajo@users.noreply.github.com> Co-authored-by: Kristian Heljas <11139388+kristianheljas@users.noreply.github.com> Co-authored-by: Zachary Peschke <8718570+zpeschke@users.noreply.github.com> Co-authored-by: Harmdhast <pandemonium.harmdhast@gmail.com> Co-authored-by: Alicia Cozine <879121+acozine@users.noreply.github.com> Co-authored-by: Esther Christopher <estheradamuchris@gmail.com>
* [backport-2.14] 🎨 Convert RST to manpage in-memory @ PEP 517 (#80237)Sviatoslav Sydorenko2023-03-151-23/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add _convert_rst_in_template_to_manpage arg types * 📦 Make manpage build dependencies conditional Previously, said dependencies were declared as unconditionally required even when manpages not needed to be built. This patch Makes it so they are only required when needed. * Correct _generate_rst_in_templates returned type It was marked as Path before this patch but in fact, it's iterable of paths. * 🎨 Convert RST to manpage in-memory @ PEP 517 Previously, the automation was writing a temporary templated RST on disk and calling a helper CLI script on that. But with this change, it happens with less unnecessary I/O. Co-Authored-By: Matt Davis <6775756+nitzmahone@users.noreply.github.com> * 📦Expose sdist manpage build deps unconditionally Due to a bug in pypa/build, the `get_requires_for_build_sdist()` hook is always invoked with `config_settings=None`. This means that we cannot conditionally extend build requirements in said hook. As a workaround, this patch makes hook pretend that `--built-manpages` is always passed. Ref: https://github.com/pypa/build/issues/559. --------- Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com> (cherry picked from commit 67bafafbc0d61751d2ec10b0aeccb6b01482a074) This is a backport of #80098.
* [stable-2.14] ansible-test - Update git diff handling (#80202)Matt Clay2023-03-1514-187/+198
| | | | | | | This change allows ansible-test to work with newer versions of git on AZP.. (cherry picked from commit bad8843124a50493141a3e3d7920353239021389) Co-authored-by: Matt Clay <matt@mystile.com>
* [stable-2.14] Relocate the AZP entry point scripts (#80114)Matt Clay2023-03-1423-44/+41
| | | | | | | Scripts previously under `test/utils/shippable/` are now under `.azure-pipelines/commands/` instead. (cherry picked from commit f47bc03599eedc48753d2cd5e1bea177f35e6133) Co-authored-by: Matt Clay <matt@mystile.com>
* [stable-2.14] ansible-test - Remove pointless comparison (#80168)Matt Clay2023-03-142-1/+3
| | | | | | (cherry picked from commit 31658031ed40f3db002b690b436b793634c2b5e7) Co-authored-by: Matt Clay <matt@mystile.com>
* [stable-2.14] ansible-test - Fix vendoring support (#80074)Matt Clay2023-03-146-0/+70
| | | | | | | | - Support loading of vendored Python packages. - Exclude vendored Python packages from payloads. (cherry picked from commit 6bfe6b899a4881ebc065834a43a26e123d7fdab3) Co-authored-by: Matt Clay <matt@mystile.com>
* [stable-2.14] ansible-test - Show Python version before install (#80022)Matt Clay2023-03-142-0/+18
| | | | | | | Always indicate the Python version being used before installing requirements. (cherry picked from commit 5e3db6e44169aa88cd027f469eea96f1f17fea95) Co-authored-by: Matt Clay <matt@mystile.com>
* [stable-2.14] ansible-test - Allow target prefixes to use `_` (#80021)Matt Clay2023-03-146-7/+21
| | | | | | | Integration test target prefixes defined in a `tests/integration/target-prefixes.{group}` file can now contain an underscore (`_`) character. (cherry picked from commit e6cffce0eb58ba54c097f4ce7111bb97e6805051) Co-authored-by: Matt Clay <matt@mystile.com>
* [stable-2.14] ansible-test - Improve code formatting (#79983) (#80206)Matt Clay2023-03-13111-294/+724
| | | | | | | | | | | | | | | | | | * ansible-test - Add blank lines after docstrings * ansible-test - Preserve formatting of arg pairs * ansible-test - Remove unused string * ansible-test - Remove pointless dict() usage * ansible-test - Clean up initial func arg indenting * ansible-test - Clean up constructor arg indenting * ansible-test - Clean up func arg wrapping * ansible-test - Clean up comma and paren placement (cherry picked from commit 715ab99462b1799f4a0c1caeddf161e930adf13f)