summaryrefslogtreecommitdiffstats
path: root/changelogs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* user module, avoid chmoding symlink'd home file (#83956)Brian Coca2024-10-081-0/+2
| | | | | | | also added tests --------- Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua> Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
* PlayIterator: skip tasks from already ran roles (#83793)Martin Krizek2024-10-081-0/+2
| | | ... so strategies do not have to filter them.
* ansible-galaxy - fix ignoring certs when installing from git repos (#83332)Sloane Hertel2024-10-081-0/+2
| | | | | | | | | * Fix installing collections|roles from git repos with GALAXY_IGNORE_CERTS * Fix installing collections from git repos with --ignore-certs * Update unit test * Add test case
* ansible-test - Disable pylint deprecated-* rules (#84050)Matt Clay2024-10-041-0/+1
|
* Implicit flush_handlers inherit play tags (#83968)Martin Krizek2024-10-041-0/+2
|
* Fix error message given by ansible.module_utils.facts.timeout.timeout (#83945)Sloane Hertel2024-10-031-0/+2
| | | | | * Update unit test Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
* ansible-test - Update sanity tests and default Python (#83998)Matt Clay2024-10-031-0/+3
| | | | | * ansible-test - Update sanity test requirements * ansible-test - Default to Python 3.13 in base/default containers * ansible-test - Fix incorrect AnyStr type hints
* Reduce number of implicit meta tasks (#84007)Martin Krizek2024-10-031-0/+2
| | | | | | | | | | | | | | | | | This greatly reduces run time on large inventories since meta tasks are executed in the main process sequentially and just executing them is expensive. This change avoids running the following implicit meta tasks: * ``flush_handlers`` on hosts where no handlers are notified * ``noop`` for the linear strategy's lockstep, instead hosts that are not executing the current task are just not part of the current host loop A playbook consiting of two simple plays both running on ~6000 hosts runs in: devel: 37s this PR: 1.3s Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com> Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
* file: simplify the code (#84043)Abhijeet Kasurde2024-10-031-0/+3
| | | | | | * Remove unnecessary code * Make code simple to read Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* get_url: properly parse filename in content-disposition (#83748)Martin Krizek2024-10-031-0/+2
| | | | | | | | | | Since we don't really care about the type we don't have to query for it and just retrieve the filename value. Unfortunately we cannot use module_utils.urls.get_response_filename as we don't have the response object, so just utilize email.message.Message to parse the filename instead of manually doing the work ourselves. Fixes: #83690
* ansible-test - Update nios-test-container to 6.0.0 (#84042)Matt Clay2024-10-021-0/+2
|
* remove one ignore clause for module copy (#83643)Alexei Znamensky2024-10-021-0/+3
| | | | --------- Co-authored-by: flowerysong <junk+github@flowerysong.com>
* cron: return stdout and rc for cron command (#83290)Jack Farzan2024-10-011-0/+3
| | | Co-authored-by: Jack Farzan <jfarzan@adobe.com>
* debconf: set empty password value (#83217)Abhijeet Kasurde2024-10-011-0/+3
| | | | | | Fixes: #83214 --------- Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Add additional logging for SSH runtime output timeouts and escalation ↵uber-dendy2024-09-301-0/+3
| | | | | | | messages (#84008) Signed-off-by: Yuri Savinkin <stkwar@gmail.com> Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
* INVENTORY_IGNORE_EXTS stop ignoring ini (#84001)Brian Coca2024-09-261-0/+2
| | | | | | | | | | | | * INVENTORY_IGNORE_EXTS stop ignoring ini Originally added to avoid configuration files for inventory scripts now clashes with the much more common ini inventory files. * add a note to script plugin * Update lib/ansible/plugins/inventory/script.py Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
* facts: Skip path if the distribution path is directory (#84012)Abhijeet Kasurde2024-09-261-0/+3
| | | | | | | | | | | | | | | | * facts: Skip path if the distribution path is directory Skip path if the distribution path is directory instead of file. Handle exception raised while handling distribution path. Fixes: #84006 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> * Review requests --------- Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* package/dnf action plugins: better facts failure msg (#83995)Martin Krizek2024-09-261-0/+2
|
* Ansible Errors, Don't hide stacked messages when yaml (#83933)Brian Coca2024-09-241-0/+2
| | | | | | Also remove redundant msg now that we fixed yaml case So no more need to %s % e. Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
* Add basic validation for action_groups (#83965)Felix Fontein2024-09-241-0/+2
| | | Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
* dnf5: fix tb when plugins API is not available (#83969)Martin Krizek2024-09-241-0/+2
| | | Follow up on https://github.com/ansible/ansible/pull/83105
* zap changelogs (#83988)Matt Davis2024-09-24157-446/+1
|
* 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>