summaryrefslogtreecommitdiff
path: root/lib/ansible
Commit message (Collapse)AuthorAgeFilesLines
* Show filename additionally if missing secrets prevents decryption (#79732)Carsten Grohmann2023-01-181-1/+4
| | | Fixes #79723
* 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/
* Truthy value should be one of false or true (#79730)Hofer-Julian2023-01-171-5/+5
| | | Otherwise ansible-lint complains: https://yamllint.readthedocs.io/en/stable/rules.html#module-yamllint.rules.truthy
* Fix reporting of deprecated arguments for modules. (#79681)Felix Fontein2023-01-132-3/+19
|
* Correctly count rescued tasks in play stats (#79724)Martin Krizek2023-01-132-2/+4
| | | | | Fixes #79711 ci_complete
* Better json content type detection for uri (#79719)Matt Martz2023-01-131-3/+3
| | | | | * Better json content type detection for uri * typo
* Ensure we are passing ciphers to all url_get calls (#79718)Matt Martz2023-01-131-1/+1
| | | | | | | * Ensure we are passing ciphers to all url_get calls. Fixes #79717 * Add clog frag * Fix tests
* 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-109-165/+350
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-093-10/+56
| | | fixes https://github.com/ansible/ansible/issues/75536
* ansible-galaxy - fix turning off the ConcreteArtifactManager's validate ↵Sloane Hertel2023-01-091-10/+9
| | | | | | | certs at the global level (#79561) Fix ignoring certs when downloading tarballs Fix ignoring certs when downloading a collection from a specific source that isn't in the configured servers list
* ansible-galaxy collection|role init - fix preserving symlinks (#79134)Sloane Hertel2023-01-091-2/+7
| | | | | * Preserve symlinks in custom role/collection skeletons * changelog
* systemd: ignore errors in daemon_reload and daemon_reexec when running in a ↵Olaf Klischat2023-01-091-2/+8
| | | | | chroot or with $SYSTEMD_OFFLINE==1 (#79643) Signed-off-by: Olaf Klischat <olaf.klischat@gmail.com>
* 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
|
* Fixed incorrect spelling of the word overridden. (#79620)jbreitwe-rh2023-01-034-4/+4
|
* filter/test plugin listing, fix bug on file sorting (#79591)Brian Coca2022-12-151-4/+1
| | | | | | | * filter/test plugin listing, fix bug on file sorting avoid legacy/builtin special casing for 'all'
* Update split.yml (#79570)Rafał Osiecki2022-12-131-1/+1
| | | typo fix
* Simplify AnsibleJ2Vars by using ChainMap for vars (#78713)Martin Krizek2022-12-091-100/+48
| | | Co-authored-by: Matt Martz <matt@sivel.net>
* fix: broken link (#79461)Thomas Poindessous2022-12-081-1/+1
|
* fixed misleading setup example (#79495)zitatorocsik2022-12-081-1/+1
|
* Set locale for python apt (#79546)Sloane Hertel2022-12-091-0/+2
| | | | | | | | | * set locale to get_best_parsable_locale for the python-apt API * add a test case * add changelog * remove test that tests nothing
* Prevent stdio deadlock in forked children (#79522)Matt Davis2022-12-052-4/+35
| | | | | * background threads writing to stdout/stderr can cause children to deadlock if a thread in the parent holds the internal lock on the BufferedWriter wrapper * prevent writes to std handles during fork by monkeypatching stdout/stderr during display startup to require a mutex lock with fork(); this ensures no background threads can hold the lock during a fork operation * add integration test that fails reliably on Linux without this fix
* Removed sorting to preserve original order (#74839)Brian Coca2022-11-301-9/+8
| | | updated tests to reflect new order
* Always create new role (#78661)Matt Martz2022-11-295-58/+85
| | | | Don't use role cache for determining whether to create a new instance of role
* Fix repr(Task) to check action when testing for a meta task (#79464)Martin Krizek2022-11-291-1/+1
| | | Fixes #79459
* add ansible-galaxy cli documentation for parallel execution (#79433)Sloane Hertel2022-11-291-1/+5
| | | | | | | | | | | | | | * add ansible-galaxy cli documentation for parallel execution Co-authored-by: saranti <tsarantis@proton.me> * Update lib/ansible/cli/galaxy.py * Update lib/ansible/cli/galaxy.py Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua> Co-authored-by: saranti <tsarantis@proton.me> Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
* Fix password lookup rewrites file when using encrypt (#79431)Gaudenz Steinlin2022-11-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | * Remove unused mock from test_password_already_created_encrypt The _get_paths mock is never used in the test_password_already_created_encrypt test case. * Add test to assert the password file is not rewritten If the password file already contains the salt and the hasing algorithm does not use the ident parameter, the password lookup should not write to the password file. * Fix "changed" if using "encrypt" in password lookup When using the "encrypt" parameter to the password lookup without the ident parameter, the password file was always marked as "changed". This caused the file to be rewritten with the same content. This is fixed by only marking the file as changed, if an "ident" value needs to be added to the file. Fixes #79430. Add changelog entry
* Fix file touch check mode result (#79360) (#79422)sbettid2022-11-291-27/+31
| | | Fixes #79360
* galaxy: Add license_file to manifest directives (#79420)Maxwell G2022-11-291-5/+12
| | | | | | | | | | * galaxy: Add license_file to manifest directives * ag collection build: Test license handling This adds tests to ensure that - REUSE licensing files: .reuse/dep5, LICENSES/*, anyfile.license - galaxy.yml license_file are always included in the manifest.
* local connection: avoid tb when running in container with invalid user (#79414)Brian Coca2022-11-291-3/+7
| | | | | | | | | * local connection: avoid tb when running in container with invalid user * clog * cannot use uid, leave empty and ~/ will resolve itself * get back to what it did
* Update vendored distro (#79227)Christian Loos2022-11-231-80/+71
| | | | Commit bb35d41 in branch python2.7-support from 2022-10-10: https://github.com/python-distro/distro/commit/bb35d41
* more strftime docs (#79417)Brian Coca2022-11-231-1/+11
| | | | | | | | * more strftime docs fixes #79397 Co-authored-by: Matt Martz <matt@sivel.net> Co-authored-by: Don Naro <dnaro@redhat.com> Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
* ansible-galaxy - support ``resolvelib >= 0.5.3, < 0.10.0`` (#79399)Wong Hoi Sing Edison2022-11-231-2/+2
| | | | | | | | | | * Upgrade `resolvelib >= 0.5.3, < 0.10.0` https://pypi.org/project/resolvelib/0.9.0/ released on 2022-11-17: * https://github.com/sarugaku/resolvelib/blob/master/CHANGELOG.rst#090-2022-11-17 * https://github.com/sarugaku/resolvelib/releases/tag/0.9.0 Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
* fix reject list (#79391)Brian Coca2022-11-181-7/+14
|
* Add manifest includes for reuse licenses (#79403)Matt Martz2022-11-171-9/+11
| | | | | | | * Add includes for reuse licenses * Add additional exludes to follow REJECT_EXTS * clog frag
* Allow pip like version syntax for installing collections (#79405)Matt Martz2022-11-171-3/+16
|
* Update fileglob.py (#78887)seachanged2022-11-171-0/+1
| | | Improve documentation for relative file paths
* Clarify that b64decode does not work with binary output (#79294)Joseph Shraibman2022-11-171-0/+4
|
* typos (#79377)faust2022-11-171-4/+4
|
* Update pull.py (#79387)saranti2022-11-171-0/+3
|
* Replace _valid_attrs with fattributes (#79376)Rabi Mishra2022-11-151-1/+1
| | | It was missed in one place it seems.
* ansible-doc and validate-modules: remove underscore deprecation handling for ↵Felix Fontein2022-11-151-1/+3
| | | | | | | collections (#79362) * Remove underscore deprecation handling for collections. * Also consider ansible.legacy.
* file lookup now works with general lookup error framework (#79339)Brian Coca2022-11-141-3/+3
| | | * file lookup now works with general lookup error framework
* Allow force deletion of group (#78172)Tom Page2022-11-101-0/+37
| | | | | | | * Allow force deletion of group * Update version_added Co-authored-by: Jordan Borean <jborean93@gmail.com>
* openbsd factgs, use physmem instead of usermem for total mem (#79316)Darshan2022-11-081-1/+1
| | | Signed-off-by: darshanip <darshancoding@gmail.com>
* Move collection playbook output from "warning" to "-v" (#79320)stmps2022-11-081-2/+2
| | | | | * lib/ansible/executor/playbook_executor.py: fix minor typo in comment * lib/ansible/executor/playbook_executor.py: move 'running playbook inside collection' from warning to -v debugging output
* Add missing type to the `reference` option of the documentation of the `git` ↵Louis Mandel2022-11-081-0/+1
| | | | | | | module (#79305) * Add missing type to the `reference` option of the `git` module * No more doc-missing-type error in validate-modules
* Fix typo 'Ansbile'. (#79318)Felix Fontein2022-11-072-2/+2
|