summaryrefslogtreecommitdiff
path: root/lib/ansible/plugins
Commit message (Collapse)AuthorAgeFilesLines
* fix error if path had wildcard in it (#74723)PRASOON KARUNAN V2023-05-101-2/+2
| | | | | | | * fix error if path had wildcard in it * add test * add changelog fragment
* first_found fix no terms option (#76550)Brian Coca2023-05-081-4/+8
| | | | | also fix bug with multiple items clobbering previous settings Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
* Use ansible.module_utils.common.text.converters (#80704)Matt Clay2023-05-0360-63/+63
| | | Replace use of old `ansible.module_utils._text` and add a unit test to maintain backwards compatibility.
* Fix typo in comment filter option (#80672)Chris van Meer2023-05-021-1/+1
|
* Removes extraneous parentheses; Fixes 80670 (#80671)Samarendra M Hedaoo2023-04-281-1/+1
| | | | | * Added missing parentheses; Fixes 80670 * Removes both parentheses.
* ActionBase: remove deprecated _remote_checksum (#80440)Martin Krizek2023-04-271-32/+0
|
* Remove deprecated default.fact_caching_prefix ini config option (#80441)Martin Krizek2023-04-271-6/+0
|
* source module compression setting directly from config (#80647)Brian Coca2023-04-261-1/+2
| | | | | * source module compression setting directly from config no need to proxy via play_context, which can fall out of date w/o constant variable updates.
* Fix gather parallel (#80597)Brian Coca2023-04-261-11/+35
| | | | | | | | * fix meaning of parallel in gather_facts * Update docs with note about parallel not always being faster * add 'smarter' usage of gahter_timeout for parallel tasks * restore async when needed, not always * added typing * parallelism tests
* Fix calling v2_playbook_on_notify callback (#80585)Martin Krizek2023-04-241-1/+1
| | | Co-authored-by: Matt Martz <matt@sivel.net>
* Implement checks, and backwards compat change, to move forward with UTF-8 ↵Matt Martz2023-04-171-0/+24
| | | | | only (#80370) Co-authored-by: Sandra McCann <samccann@redhat.com>
* feature: add support for symbolic links when passing "dir" (#80460)kloud-byun2023-04-141-1/+1
| | | * update the include_vars action plugin to always follow symbolic links when traversing directories
* Validate task attributes with first finalized attrs after loop (#80476)Sloane Hertel2023-04-131-5/+1
| | | | | | | | | * Validate task attributes `run_once` and `action` with finalized attrs after individual loop results * Validate task attribute `ignore_unreachable` using individual loop results Once there's a way to post validate only certain fields, we can use self._task.post_validate() instead This replaces the fix introduced in https://github.com/ansible/ansible/pull/80051.
* Last handler defined runs, fix for roles (#79558)Martin Krizek2023-04-121-84/+80
| | | | | | | | | Fixes #73643 * clear_notification method and simplify ifs * Deduplicate code * Limit number of Templar creations * Fix sanity * Preserve handler callbacks order as they were notified
* Update password.py documentation (#80297)aaronk12023-04-061-0/+3
| | | | | * Update password.py documentation with new semantic markup
* documents approaches to octal modes better (#80112)Alicia Cozine2023-04-061-3/+4
|
* Fix run_once by instantly tiny post_validate (#78492) (#80051)tu1h2023-03-311-1/+5
| | | Signed-off-by: tu1h <lihai.tu@daocloud.io>
* Add new dnf5 module (#80272)Martin Krizek2023-03-312-3/+88
|
* Improve dirname and basename filter doc (#80054)Daniel Ziegenberg2023-03-272-2/+6
|
* password lookup, handle ident properly when saved (#80251)Brian Coca2023-03-271-35/+58
| | | | | | | * 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.
* Fixed typo (#80184)Harmdhast2023-03-091-1/+1
| | | `uvault` should be `unvault`
* paramiko connection now uses the correct source of data (#79704)Brian Coca2023-03-071-28/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * paramiko connection now uses the correct source of data * keep orig name * added missing port to docs * Update changelogs/fragments/paramiko_config.yml Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com> * test ansible_host templating * added missing private_key_file * removed all play_context fallbacks * Update lib/ansible/plugins/connection/paramiko_ssh.py Co-authored-by: Jordan Borean <jborean93@gmail.com> * Update lib/ansible/plugins/connection/paramiko_ssh.py Co-authored-by: Jordan Borean <jborean93@gmail.com> --------- Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com> Co-authored-by: Jordan Borean <jborean93@gmail.com>
* Fix spelling and grammar in subelements filter doc (#80137)Zachary Peschke2023-03-071-1/+1
|
* improve password lookup syntax in examples (#80092)Klaus Frank2023-03-021-5/+5
|
* add a worker queue to get updates from the main results thread (#79886)Sloane Hertel2023-02-284-230/+91
| | | | | | | | * Create a queue per WorkerProcess to receive intra-task updates * Update `pause` action to use the worker queue * Deprecate ConnectionBase()._new_stdin * Add new `Display` convenience method `prompt_until` to manage both controller- and worker-sourced prompting without cross-fork stdin sharing, in-worker mechanism to handle request-response over new worker queue.
* Clarify combine filter examples (#80078)Klaus Frank2023-02-271-2/+7
|
* Remove trailing spaces from lines in YAML (#80032)Matt Clay2023-02-172-9/+9
|
* Change ansible_job_id format (#79951)Martin Krizek2023-02-091-1/+1
| | | | | | | | | | * 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.
* improve password_hash warning for unsupported algorithms (#79872)Sloane Hertel2023-02-081-1/+18
| | | | | * password_hash - give a warning for unsupported algorithms (that raise a TypeError) * add suggested changes, a test and changelog
* Fix "pointless" strings detected by pylint (#79943)Matt Clay2023-02-072-10/+8
| | | Convert these strings to comments, since they are not valid docstrings.
* Clean up pointless statements (#79941)Matt Clay2023-02-072-3/+2
| | | | | | | * Add ignores for intentional pointless statements * Remove redundant docstring * Fix function docstring placement
* Remove another unwanted comma from pause action (#79926)Sloane Hertel2023-02-061-1/+1
|
* Update collections.abc imports (#79911)Matt Clay2023-02-031-1/+2
| | | | | | | | | | | | | | * Update `collections.abc` imports - Use `six.moves` for modules and module_utils - Use `collections.abc` for controller code This avoids using `ansible.module_utils.common._collections_compat`, which was added before the vendored `six` was updated to provide these imports. * Update _collections_compat to use six.moves Also update the custom pylint rule to reflect this change.
* Remove unwanted comma from pause action (#79908)Matt Clay2023-02-031-1/+1
|
* Clean up unused imports in plugins (#79899)Matt Clay2023-02-0313-18/+4
|
* Clean up unused imports in core (#79900)Matt Clay2023-02-032-2/+2
| | | | | * Clean up unused imports in core * Add changelog fragment
* Use arg validation in debug action (#79866)Matt Martz2023-02-021-13/+18
| | | | | | | * Use arg validation in debug action. Fixes #79862 * Add clog frag * Move the msg default into the argspec
* Remove irrelevant line (#79865)Konrad Gawda2023-02-021-1/+0
| | | Remove irrelevant comment line form example code
* Description for changing User ID to match user value (#79470)Tabah Baridule M2023-02-021-0/+2
|
* strategy fix invalid variables being registered (#79706)Brian Coca2023-01-251-1/+5
| | | | also added tests for normal and bad cases
* Fix conditionally notified include handlers (#79804)Martin Krizek2023-01-241-5/+1
| | | | | Fixes #79776 ci_complete
* Fix traceback in template action with ANSIBLE_DEBUG=1 (#79764)Martin Krizek2023-01-201-1/+5
| | | Fixes #79763
* Fix regex filter docs (#79736)antonc422023-01-172-2/+2
| | | | | | | | | * Fix notes in regex_replace doc The documentation says that this maps to 'regex.replace' when it should say 're.replace'. The distinction is important because of the third-party 'regex' module that has more features than the built-in 're' module. https://pypi.org/project/regex/ * Fix notes in re.search docs The documentation says that this maps to 'regex.search' when it should say 're.search'. The distinction is important because of the third-party 'regex' module that has more features than the built-in 're' module. https://pypi.org/project/regex/
* Correctly count rescued tasks in play stats (#79724)Martin Krizek2023-01-131-1/+3
| | | | | Fixes #79711 ci_complete
* normal action plugin: remove superfluous code (#79690)Felix Fontein2023-01-111-16/+7
| | | | | | | | | | | | * Remove obsolete 'if' The result dict returned by super.run() will never have a 'skipped' entry. Without the if, it is more clear that wrap_async is actually defined at the end of the function. * Remove more dead code. The result dict will also not contain invocation. * Remove notes.
* Fix broken reference to FAQ (#79621)Rune Juhl Jacobsen2023-01-101-2/+2
|
* Add support for importlib.resources (#78915)Matt Martz2023-01-102-7/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support for importlib.resources * Remove the importlib.resources imports * return the correct data * Some code comments, and re-order for consistency * Disallow traversing packages below an individual collection * Add a traversable class for namespaces * Re-use variable * Utilize itertools.chain.from_iterable Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua> * Simplify logic to check for packages from ansible loaders Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua> * Just a generator expression, instead of a generator * docstrings * Add comment about find_spec for our namespaces * Add some initial unit tests for importlib.resources * normalize * Utilize importlib.resources for listing collections * collections_path is already in config, just use config * install uses a different default for collections_path * Remove unused import * Remove duplicate __truediv__ * Bring back TraversableResources * Apply some small suggestions from code review Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua> Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com> * Remove cross contamination between plugin loader code and CLI code * Remove unused import Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua> Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
* fix role argument spec error for invalid suboptions (#76578)Sloane Hertel2023-01-091-1/+1
| | | fixes https://github.com/ansible/ansible/issues/75536
* correct the mistake of example repeat_original (#79659)evangelionlion2023-01-051-1/+1
| | | | | | | | | there is a little mistake ##### ISSUE TYPE - Docs Pull Request +label: docsite_pr
* Fix a typo in the warning message (#79635)Jonathan Rietveld2023-01-051-1/+1
|