summaryrefslogtreecommitdiffstats
path: root/changelogs (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* isidentifier: Remove Python 2 specific code (#83688)Abhijeet Kasurde2024-09-231-0/+3
| | | Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* ansible-test - Use Python version in pylint contexts (#83984)Matt Clay2024-09-231-0/+4
|
* dnf5: re-introduce ``state: installed`` alias (#83961)Martin Krizek2024-09-231-0/+2
| | | Fixes #83960
* Do not convert floats to ints when there is truncation (#83864)Brian Coca2024-09-201-0/+2
| | | | | | | Adjusted error messages fixed tests removed py2 compat tests, since no more py2 Co-authored-by: Matt Clay <matt@mystile.com>
* Add mount_facts module (#83508)Sloane Hertel2024-09-191-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add a mount_facts module capable of gathering mounts skipped by default fact gathering * By default, collect mount facts from standard locations including /etc/mtab, /proc/mounts, /etc/fstab, /etc/mnttab, /etc/vfstab, and on AIX, /etc/filesystems. When no file-based source for the current mounts can be found (like /proc/mounts), the module falls back to using mount as a source. This allows BSD and AIX to collect the existing mounts by default, without causing Linux hosts to use both /proc/mounts and mount output. * Non-standard locations and "mount" can be configured as a sources. * Support returning an aggregate list of mount points in addition to first found. When there are multiple mounts for the same mount point in an individual source, a warning is given if the include_aggregate_mounts option is not configured. * Add options to filter on fstypes and devices (supporting UNIX shell wildcards). * Support configuring a timeout and timeout behavior to make it easier to use the module as a default facts module without risking a hang. * Include the source and line(s) corresponding to a mount for easier debugging. Co-authored-by: Brian Coca <bcoca@users.noreply.github.com> Co-authored-by: Matt Clay <matt@mystile.com> Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
* Clarify galaxy CLI --help about install locations (#83919)Sloane Hertel2024-09-181-0/+5
| | | | | | | | | | * add descriptions for `ansible-galaxy install` and `ansible-galaxy role|collection install` * fix the usage for installing roles and collections together and include collections in the description for -r Closes #81159 Co-authored-by: Alan Rominger <arominge@redhat.com> Co-authored-by: Sandra McCann <samccann@redhat.com>
* timedout extended (#83953)Brian Coca2024-09-181-0/+2
| | | | | * timedout extended * add timedout test
* runas - create new SYTEM token for become (#83827)Jordan Borean2024-09-131-0/+4
| | | | | | | | | | Instead of re-using the token used in impersonation, this change will create a new token for the SYSTEM account as returned by LogonUser. The benefits of this is that the token will contain the full privileges for the SYSTEM account rather than potentially one that has restricted privileges we used during impersonation. It should also help avoid problems on Windows that fails on status 0x0000016F when the impersonated token during become was from a process that is restricted from creating sub processes.
* service_facts, fix systemd/ubuntu failed reporting (#83424)Brian Coca2024-09-101-0/+2
| | | Avoid check description, better comments
* delay keyword changed from int to float (#83901)Brian Coca2024-09-061-0/+2
| | | | | | | | | | | | | * delay keyword changed from int to float * draft test * fixed test * expanded test, fixed 'name' tests also * cleanup * fix
* loop_control "early exit" feature (#62151)Brian Coca2024-09-051-0/+2
| | | | | | | | | | | | | | | | | * add a loop_control break_when directive to break out of a loop after any item * remove loop var as normal exit would * example usage: - name: generate a random password up to 10 times, until it matches the policy set_fact: password: "{{ lookup('password', '/dev/null', chars=character_set, length=length) }}" loop: "{{ range(0, 10) }}" loop_control: break_when: - password is match(password_policy) Co-authored-by: s-hertel <19572925+s-hertel@users.noreply.github.com>
* psrp - Remove extras lookups (#83760)Jordan Borean2024-09-021-0/+3
| | | | | | | | | | * psrp - Remove extras lookups Removed the extras variable lookups for the psrp connection plugin. All valid options are already documented and the extras functionality is slated to be deprecated at a future point in time. This should have affect on existing user's playbooks. * Fix up sanity tests and add explicit boolean conversion test
* Add location on include_tasks fail inside include (#83876)Jordan Borean2024-09-011-0/+4
| | | | | | Adds the datastore details to the parser error when attempting to include tasks that contain include_tasks without a filename set. This change will now display the exact location of the include_tasks that failed like any normal syntax error.
* ansible-test - Reduce scope of empty-init test (#83878)Matt Clay2024-08-311-0/+2
|
* Improve testing for Windows SSH and other connection plugins (#83834)Jordan Borean2024-08-281-0/+13
| | | | | | | | | Expands the test matrix used for testing on Windows to cover the three connection plugins we support for all the tasks. This change also changes how raw commands are run over SSH to avoid starting a `powershell.exe` process that was uneeded in the majority of cases used in Ansible. This simplifies our code a bit more by removing extra Windows specific actions in the ssh plugin and improves the efficiency when running tasks.
* ansible-test - Update nios-test-container to 5.0.0Matt Clay2024-08-281-1/+1
|
* copy, fix permissions and atime on diff partitions (#83824)Brian Coca2024-08-261-0/+2
| | | we just set time also, when on diff partitions
* runtime-metadata sanity test: do not fail deprecation version checks if ↵Felix Fontein2024-08-261-0/+3
| | | | | | | 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-261-0/+4
| | | | | | | | | 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-231-0/+3
| | | | 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-221-0/+2
| | | Fixes #70019
* dnf: stop filtering exceptions by matching on text (#83297)Martin Krizek2024-08-211-0/+2
| | | | | | | | | | | * 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
* connection plugins: extras fix (#83353)Brian Coca2024-08-191-0/+4
| | | | 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-191-0/+2
| | | | | | * 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-181-0/+3
| | | | | | | | | | | | | | * 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
* ansible-test - Add Windows remote connection optionMatt Clay2024-08-151-0/+2
|
* ansible-test - Remove generation of egg-info (#83786)Matt Clay2024-08-141-0/+2
| | | Also remove egg-info generation from hacking/env-setup scripts.
* fix copy module update atime/mtime (#83235)dkuji2024-08-141-0/+2
| | | | | | 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-131-0/+2
| | | ci_complete
* Ensure skipped loop iteration register var is available (#83756)Martin Krizek2024-08-131-0/+2
| | | Fixes #83619
* Fix meta tasks breaking host/fork affinity with host_pinned (#83438)Martin Krizek2024-08-131-0/+2
| | | | Fixes #83294
* ini lookup: add new interpolation option (#83773)Martin Krizek2024-08-131-0/+2
| | | Fixes #83755
* Suppress cryptography warnings for paramiko (#83772)Matt Clay2024-08-131-0/+2
|
* atomic_move - fix creating file in directory with setgid bit (#83718)Sloane Hertel2024-08-121-0/+2
| | | | | | | * 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-121-0/+4
| | | | | | | | | | | | | | | | | | * 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-091-0/+4
| | | | | adds color included configuration and applies to include message Co-authored-by: Achille Myette <amyette@drw.com>
* Add vaulted_file test (#83717)Brian Coca2024-08-081-0/+5
| | | | | | | * Add vaulted_file test * fix is_encrypted_file while we are here Co-authored-by: Martin Krizek <martin.krizek@gmail.com>
* Deprecate remaining safe evals (#83293)Martin Krizek2024-08-081-0/+2
|
* ansible-test - Update venv management and sanity requirements (#83729)Matt Clay2024-08-062-0/+5
| | | | | | | | | | * 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-061-0/+2
| | | | | * 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-061-0/+2
| | | Fixes #83689
* core: raw params better error msg (#83726)Brian Coca2024-08-061-0/+2
| | | | | * less confusing error msg * also remove 'removed' include
* Fix display to log severity mapping (#83712)Brian Coca2024-08-061-0/+4
| | | | | | | | 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>
* ansible-test - Update coverage to 7.6.1 (#83723)Matt Clay2024-08-061-1/+1
|
* Remove extraneous get_bin_path call (#83675)Abhijeet Kasurde2024-08-021-0/+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>
* systemd facts: Handle AttributeError (#83684)Abhijeet Kasurde2024-08-011-0/+3
| | | | | | * 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-011-0/+3
| | | | | Handle errors raised when role doc has errors Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Add UID and GID min/max keys (#81770)skupfer2024-08-011-0/+3
| | | Fixes: #72183
* add error handling when parsing values in ini files (#82718)Karl G2024-08-011-0/+3
| | | | | Fixes: #82717 Co-authored-by: Karl A. Grindley <kgrindley@ll.mit.edu>
* winrm - quota retry handling (#83656)Jordan Borean2024-07-311-0/+3
| | | | | | | | | | | * winrm - quota retry handling Add a retry attempt when receiving ERROR_WSMAN_QUOTA_MAX_OPERATIONS when starting a command. This can occur when running a loop with multiple iterations or an action plugin that runs multiple commands. * Update pywinrm constraint for test * Add verbose hint and mark test as destructive