summaryrefslogtreecommitdiff
path: root/lib/ansible
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* blockinfile - document multiline marker behavior (#79292)Sloane Hertel2022-11-031-0/+2
|
* added --allow-change-held-packages for apt remove (#78203)inifares23lab2022-11-021-3/+27
| | | | | | | | | * added --allow-change-held-packages for apt remove * add tests for apt remove (allow_change_held_packages=yes) * add changelog for apt remove (allow-change-held-packages=yes) * update tests for apt remove (allow_change_held_packages=yes)
* Fix up sanity problemsJordan Borean2022-11-023-11/+11
|
* replace yes/no with true/false in docstrings (#79274)Alicia Cozine2022-11-0126-98/+98
| | | Co-authored-by: Alicia Cozine <acozine@users.noreply.github.com>
* validate-modules: do not treat falsy non-`False` defaults as `None` (#79267)Felix Fontein2022-11-018-4/+17
| | | | | | | * Do not treat falsy non-False defaults as None. * Fix various instances of this in modules. * Add changelog fragment.
* De-duplicate initialisation of ConnectionBase._connected (#79256)Alex Willmer2022-11-011-2/+0
| | | The same value is unconditionally set 4 lines down.
* mention acl in permissions errors (#79209)Brian Coca2022-10-271-4/+4
| | | | | | | | as chmod/mode is not the only thing we attempt and Ubuntu not shipping acl in newer versions can lead to some confusion fixes #79146
* File lookup handle missing file more gracefully (#79230)Brian Coca2022-10-271-7/+7
| | | | | previously it would have a 2nd tb due to bad error raising also remove superfluous warning
* plugins/lookup/pipe: docs typo fixes (#79222)Kenyon Ralph2022-10-271-2/+2
|
* give a warning when no roles match the search instead of returning rc 1 (#79195)Sloane Hertel2022-10-251-2/+2
| | | | | | | | | * give a warning when no roles match the search instead of returning rc 1 * porting guide note * Update docs/docsite/rst/porting_guides/porting_guide_core_2.15.rst Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
* documentation fix for file module 78988 (#79182)prasadpatil492022-10-241-1/+2
|
* Revert "Fix yum exclude example to align to parameter doc (#79128)" (#79179)Sandra McCann2022-10-201-3/+1
| | | This reverts commit 062315ecaaf1096f808b68eb8d88cf8ab3ab2cfc.
* Setting indentation correctly in the Example section (#79072)Bart Dorlandt2022-10-201-2/+2
|
* Fix yum exclude example to align to parameter doc (#79128)Olivier Clavel2022-10-201-1/+3
|
* Fix isinstance check (#79159)Sloane Hertel2022-10-181-3/+2
| | | Use GalaxyAPI for isinstance check instead of RoleDistributionServer, since the latter is defined in __main__ sometimes (when running integration tests or ansible-galaxy from source) and importing from ansible.cli.galaxy won't reference the same object.
* copy, avoid moving non temp remote 'non' files (#79102)Brian Coca2022-10-171-13/+18
| | | | * copy, avoid moving non temp remote files that are not dirs/files fix tests
* ansible-galaxy install - fix unnecessary api check when installing a role ↵Sloane Hertel2022-10-142-24/+48
| | | | | from git repo (#79090) * delay server api evaluation until a GalaxyRole needs to make an api call for info, list, and install
* Docs: file parameter import_tasks and include_tasks (#79077)Don Naro2022-10-132-9/+17
| | | | | | | | | | | | | | | | | * issue #79022 file parameter import_tasks and include_tasks * adding details back * Update lib/ansible/modules/import_tasks.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update lib/ansible/modules/include_tasks.py Co-authored-by: Felix Fontein <felix@fontein.de> * use pipe as in original version Co-authored-by: Felix Fontein <felix@fontein.de>
* Don't assume column index for netmask and broadcast (#79121)Matt Martz2022-10-131-8/+19
| | | | | * Don't assume column index for netmask and broadcast. Fixes #79117 * fix typo