summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Print the name of the option being deprecated (#83761)Martin Krizek2024-08-274-18/+8
| | | Fixes #83759
* fix delegate_to integration test (#83865)Matt Davis2024-08-271-9/+28
| | | * the test was previously passing erroneously due to the `timeout` elapsing in CI, and that the `failed` test does not encompass `unreachable`
* copy, fix permissions and atime on diff partitions (#83824)Brian Coca2024-08-263-3/+49
| | | we just set time also, when on diff partitions
* runtime-metadata sanity test: do not fail deprecation version checks if ↵Felix Fontein2024-08-2612-2/+69
| | | | | | | galaxy.yml has empty `version` (#83831) * Do not create invalid SemanticVersion objects. * Fix SemanticVersion.parse(). * Add basic runtime-metadata tests.
* galaxy-cli tasking polling interval from environment variable (#83803)jctanner2024-08-263-2/+23
| | | | | | | | | Added configuration options, including environment variables to control the polling No-Issue --------- Signed-off-by: James Tanner <tanner.jc@gmail.com> Co-authored-by: s-hertel <19572925+s-hertel@users.noreply.github.com> Co-authored-by: Jordan Borean <jborean93@gmail.com>
* powershell - Improve CLIXML parsing (#83847)Jordan Borean2024-08-234-11/+89
| | | | Improves the logic used when parsing CLIXML to support all escaped character sequences and not just newlines.
* Handle authentication errors and token expiration (#83695)Matt Martz2024-08-222-8/+22
| | | Fixes #70019
* dnf: stop filtering exceptions by matching on text (#83297)Martin Krizek2024-08-212-51/+15
| | | | | | | | | | | * Rely on dnf.base.remove, no special handling isn't needed, let the dnf internals figure out what is needed to be done. This is more in line with what dnf cli does. * "already installed" in Exception (if it is even a thing) should be caught by special exceptions like MarkingError or CompsError. This appears to be a historic check that is no longer needed. Supersedes: #83295
* Fix up raw_params for ansible.windows modules (#83830)Jordan Borean2024-08-202-9/+30
| | | | | | | | | | | * Fix up raw_params for ansible.windows modules Fixes up the logic for detecting if using ansible.windows.win_command or ansible.windows.win_shell with _raw_params. These two modules are special in that they can be referenced in 4 different ways but the ansible.windows collection specific prefix needs to be manually added to the list. * Fix up sanity issue
* connection plugins: extras fix (#83353)Brian Coca2024-08-194-11/+23
| | | | Currently we match the load name, which can be an fqcn, but most users expect the 'naked' name Now plugins can declare that name by setting _extras_prefix property or fallback to 'non fqcn' if no extras prefix
* Gather mount facts, fallback for when multiproc is not feasable (#83750)Brian Coca2024-08-196-39/+104
| | | | | | * fallback to 'single threaded gathering' for when multiproc fails Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
* ssh and psrp - Support more complex characters in fetch_file (#83753)Jordan Borean2024-08-185-23/+51
| | | | | | | | | | | | | | * ssh and psrp - Support more complex chars in fetch_file Fixes the psrp and ssh (with piped) fetch function to work with paths that contains glob like characters in the path. For Windows this was needed when using paths that contain `[]` in the path. For ssh this was a problem with FreeBSD when using the piped transfer method with similar characters. Also tidies up the psrp logic to not inject the paths and buffer size in the script but pass it as an object through an argument/parameter. * Fix sanity check
* Add explicit winrm/psrp tests for HTTP and HTTPS (#83769)Jordan Borean2024-08-162-0/+27
|
* Fix tests when running against SSH targetJordan Borean2024-08-152-1/+10
|
* ansible-test - Add Windows remote connection optionMatt Clay2024-08-159-19/+72
|
* Use a venv in more integration tests (#83799)Matt Clay2024-08-157-9/+11
| | | | | * Use venv for pause test * Use venv for debugger test * Use venv for builtin_vars_prompt test
* ansible-test - Update base/default containers (#83796)Matt Clay2024-08-141-3/+3
|
* ansible-test - Update sanity test requirements (#83795)Matt Clay2024-08-144-5/+5
| | | | * Remove PyYAML pin for yamllint sanity test * Freeze sanity test requirements
* ansible-test - Remove generation of egg-info (#83786)Matt Clay2024-08-144-64/+5
| | | Also remove egg-info generation from hacking/env-setup scripts.
* fix copy module update atime/mtime (#83235)dkuji2024-08-144-0/+46
| | | | | | Ensure we force mtime/atime update when using copystat Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com> Co-authored-by: Brian Coca <bcoca@users.noreply.github.com>
* Add end_role meta task (#83263)Martin Krizek2024-08-1314-3/+124
| | | ci_complete
* Fix ansible-vault integration test for missing vault ids (#83777)Sloane Hertel2024-08-131-11/+12
| | | | | | | * Fix broken, circumvented test for missing vault ids * verify the command returns a non-zero exit code Co-authored-by: Matt Clay <matt@mystile.com>
* Ensure skipped loop iteration register var is available (#83756)Martin Krizek2024-08-135-9/+33
| | | Fixes #83619
* Fix meta tasks breaking host/fork affinity with host_pinned (#83438)Martin Krizek2024-08-137-1/+121
| | | | Fixes #83294
* ini lookup: add new interpolation option (#83773)Martin Krizek2024-08-136-1/+26
| | | Fixes #83755
* Suppress cryptography warnings for paramiko (#83772)Matt Clay2024-08-132-1/+8
|
* Drop use of setup.py and setup.cfg (#81443)Matt Clay2024-08-127-143/+120
|
* atomic_move - fix creating file in directory with setgid bit (#83718)Sloane Hertel2024-08-125-1/+48
| | | | | | | * fix creating file in directory with setgid bit * add a test using the copy module's content option to create a file in a directory with setgid bit Co-authored-by: Martin Krizek <martin.krizek@gmail.com>
* Enable validation of subkeys in rpm key module (#83716)Kellin2024-08-123-11/+96
| | | | | | | | | | | | | | | | | | * Enable validation of subkeys in rpm key module A gpg subkey may change while the primary key remains the same. Due to this behavior, there are situations where validation of the primary gpg key fingerprint is not sufficient because the desired target is actually the gpg subkey. This change allows the user to validate against either the fingerprint of the primary gpg key or its subkey. Signed-off-by: Kellin <kellin@retromud.org> * Improve tests, add multi-fingerprint - Improve tests to cover all cases - add multi fingerprint validation Signed-off-by: Kellin <kellin@retromud.org>
* fix: `COLOR_INCLUDED` to colorize `included` output (#83711)akire0ne2024-08-094-1/+14
| | | | | adds color included configuration and applies to include message Co-authored-by: Achille Myette <amyette@drw.com>
* use diff intermediate var to preserve functionality (#83738)Brian Coca2024-08-083-2/+31
| | | | add tests
* Add vaulted_file test (#83717)Brian Coca2024-08-0811-14/+74
| | | | | | | * Add vaulted_file test * fix is_encrypted_file while we are here Co-authored-by: Martin Krizek <martin.krizek@gmail.com>
* Fix csvfile test - quote file argument (#83751)Sloane Hertel2024-08-081-1/+1
| | | file was intended to be a string, not an undefined variable
* Deprecate remaining safe evals (#83293)Martin Krizek2024-08-084-7/+26
|
* ansible-test - Update default and distro containers (#83736)Matt Clay2024-08-071-7/+7
|
* try disabling negative values win_reboot test (#83735)Matt Davis2024-08-071-4/+5
| | | * hoping to improve CI stability
* ansible-test - Update mypy and package-data tests (#83734)Matt Clay2024-08-0714-292/+395
| | | | | | | | | | | * package-data - Test min/max setuptools version * Fix multi-version abstraction * Convert mypy test to script based test * Fix f-string in pymarkdown test * Sanity test fixes
* ansible-test - Update venv management and sanity requirements (#83729)Matt Clay2024-08-0627-74/+80
| | | | | | | | | | * ansible-test - Update venv management * Upgrade from pip 24.0 to 24.2 * Omit `wheel` and `setuptools` from ansible-test managed virtual environments * Drop pre-release hacks * Update mypy requirements * Freeze sanity test requirements * Update sanity test configuration * Update sanity ignores
* Fix task-adjacent search path in roles (#83621)Sloane Hertel2024-08-066-5/+18
| | | | | * Restore search path in the current task file’s directory for roles
* csvfile lookup - fix giving an error when no search term is provided (#83710)Sloane Hertel2024-08-063-0/+31
| | | Fixes #83689
* core: raw params better error msg (#83726)Brian Coca2024-08-063-12/+13
| | | | | * less confusing error msg * also remove 'removed' include
* Fix display to log severity mapping (#83712)Brian Coca2024-08-064-21/+49
| | | | | | | | add caplevel to display to pass through also reverse dict order as 'last update wins' added tests ... and also log severity to log Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
* Fix type hints and misc mypy/pylint issues (#83724)Matt Clay2024-08-064-20/+17
|
* ansible-test - Update coverage to 7.6.1 (#83723)Matt Clay2024-08-063-3/+3
|
* release.py - Auto-update setuptools upper bound (#83713)Matt Clay2024-08-053-17/+77
| | | | | | | | | | | When releases are prepared, the upper bound on setuptools in pyproject.toml will be automatically updated to the latest version available on PyPI. This version will then be tested by the package-data sanity test during the release process and will be used to build the release. This change ensures that a released version of ansible-core can be built in the future if a new setuptools release includes breaking changes that would prevent building a functional package. If a downstream package maintainer requires a newer setuptools version than the upper bound permits, they can patch pyproject.toml as needed. Since ansible-core releases support specific Python versions, lack of support for new setuptools releases will have no effect on support for future Python versions.
* test: Handle Singleton Display class (#83673)Abhijeet Kasurde2024-08-024-10/+28
| | | | | Fixes: #83538 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Remove extraneous get_bin_path call (#83675)Abhijeet Kasurde2024-08-022-2/+3
| | | | | | | ip_path is already calculated before calling get_interfaces_info Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com> Co-authored-by: Brian Coca <bcoca@users.noreply.github.com>
* Remove EXTERNALLY-MANAGED marker in apt test (#83706)Matt Clay2024-08-011-0/+13
| | | | | | | The marker is removed in ansible-test managed environments, but the apt test restores it by installing/upgrading packages. To avoid breaking later tests, the marker needs to be removed again. ci_complete
* systemd facts: Handle AttributeError (#83684)Abhijeet Kasurde2024-08-014-10/+30
| | | | | | * Handle AttributeError raised while running systemd facts on non-systemd hosts Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* ansible-doc: handle on_fail (#83676)Abhijeet Kasurde2024-08-013-2/+17
| | | | | Handle errors raised when role doc has errors Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>