summaryrefslogtreecommitdiff
path: root/lib/ansible/modules
Commit message (Collapse)AuthorAgeFilesLines
* Use ansible.module_utils.common.text.converters (#80704)Matt Clay2023-05-0336-36/+36
| | | Replace use of old `ansible.module_utils._text` and add a unit test to maintain backwards compatibility.
* Better parse virtualenv_command option for pip (#80624)Dmitriy Rabotyagov2023-05-021-1/+14
| | | | | | | | | | Atthe moment if a users wants to protect virtualenv_command by using quotes around 'venv', module will fail out as literal parsing is used at the moment. In order to imrpove things, argparse is leveraged to parse out passed value to the virtualenv_command Closes-Bug: #76372 Signed-off-by: Dmitriy Rabotyagov <noonedeadpunk@gmail.com>
* service module : remove flag confugration from openbsd enable/disable ↵Brian Coca2023-04-271-91/+15
| | | | | | | | | | | | service (#80628) fixes #66434 * removed flag setting from enable/disable on openbsd service was changing permanent config on openbsd, which is not expected from the this module * if in check mode, module should not stop at enable/disable * simplify and clean up opensd service enable/disable * does break for those that were using service for configuring flags
* Fix gather parallel (#80597)Brian Coca2023-04-261-2/+6
| | | | | | | | * 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
* service_facts, get more info for rcctl services (#80630)Brian Coca2023-04-251-7/+30
| | | uses rcctl get function to get all settables for a service
* dnf5: use new API to check package signatures (#80609)Martin Krizek2023-04-251-19/+6
|
* apt key and repository example security patch (#80381)hexagon62023-04-202-4/+4
|
* note in systemd that systemctl can change behaviour due to diff order… ↵Brian Coca2023-04-201-0/+2
| | | | (#80570)
* uri module, fix example (#80554)Brian Coca2023-04-201-2/+2
|
* Update validate_argument_spec.py (#80547)7840vz2023-04-181-1/+1
| | | | | | | | | | ##### SUMMARY Fix example with file lookup, filter 'from_yaml' is required. ##### ISSUE TYPE - Docs Pull Request +label: docsite_pr
* Fix PolicyRcD.__exit__ docstring (#80528)Rodrigo Candido Gryzinski2023-04-181-1/+1
|
* Implement checks, and backwards compat change, to move forward with UTF-8 ↵Matt Martz2023-04-175-0/+10
| | | | | only (#80370) Co-authored-by: Sandra McCann <samccann@redhat.com>
* Extend OpenBSDStrategy to also update current hostname. (#80521)Rogier Krieger2023-04-141-1/+20
| | | Fixes #80520
* 📝 Document macOS user deletion over SSH (#80358)Sviatoslav Sydorenko2023-04-061-0/+2
| | | | Co-authored-by: Matt Clay <matt@mystile.com> Co-authored-by: Don Naro <dnaro@redhat.com>
* Correct bypass_host_loop attribute for group_by (#80380)flowerysong2023-04-051-1/+1
| | | | This action originally bypassed the host loop, but it does not currently.
* dnf5: fix module/pkg names in the failed respawn msg (#80402)Martin Krizek2023-04-051-2/+2
|
* dnf5: use the logs API to determine transaction problems (#80401)Martin Krizek2023-04-051-4/+5
|
* Add new dnf5 module (#80272)Martin Krizek2023-03-313-3/+732
|
* New deb822_repository module (#80018)Matt Martz2023-03-281-0/+554
| | | Fixes #77073
* validate-modules: check_mode attribute and compare with supports_check_mode ↵Felix Fontein2023-03-231-1/+1
| | | | | parameter (#80090) Co-authored-by: Brian Scholer <1260690+briantist@users.noreply.github.com>
* uri: improve force_basic_auth documentation (#80211)Ken Dreyer2023-03-171-3/+10
| | | | | Add more details about what "true" and "false" mean for the force_basic_auth setting. Give example scenarios when clients may want to use this setting.
* Replace deprecated BadZipfile with BadZipFile (#80198)Hugo van Kemenade2023-03-131-3/+8
| | | | | * Replace deprecated BadZipfile with BadZipFile * Retain support for Python 2.7
* copy - fix check mode with remote_src=True (#78624)Sloane Hertel2023-03-081-3/+4
| | | | | | | * Don't create dest directory in check mode uncomment existing test Fix checking for file attribute changes in check mode and add a test
* apt_repository, dont assume only missing apt-key will populate stderr (#79827)Brian Coca2023-03-061-1/+6
| | | | | fixes #79825
* unarchive - log errors from underlying commands (#75329)Sam Doran2023-03-011-0/+6
| | | | | | | * unarchive - log errors from underlying commands When a command run by the module fails, log the errors if debugging is enabled. * Use debug() method
* unarchive - properly handle relative path for `dest` (#75267)Sam Doran2023-03-011-1/+6
| | | | | | | | | | | | | * unarchive - properly handle relative path for dest * Add integration test * Return output of underlying commands with increased verbosity * Revert "Return output of underlying commands with increased verbosity" This reverts commit a2790c8275cdc5697b65670a0beffdc74b741bf6. * Warn when a relative destination path was provided
* add a worker queue to get updates from the main results thread (#79886)Sloane Hertel2023-02-281-1/+3
| | | | | | | | * 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.
* package_facts requires python-rpm on SUSE systems in ansible 2.12.1 (#80041)Desmond Obisi2023-02-231-0/+2
|
* user - fix comparing existing group names to group IDs (#79981)Sloane Hertel2023-02-141-10/+16
|
* Change `yes` to `true` in uri-module (#79934)Sebastian Gumprich2023-02-091-7/+7
|
* Fix detection of available hashlib algorithms (#79946)Matt Clay2023-02-081-1/+3
| | | | | | | | | | * Fix detection of available hashlib algorithms Detection of hashlib algorithms now works on Python 3.x. The new implementation works on Python 2.7 and later. Test coverage is provided by both integration and unit tests. * Add additional details about hashlib in docs
* Fix "pointless" strings detected by pylint (#79943)Matt Clay2023-02-073-36/+33
| | | Convert these strings to comments, since they are not valid docstrings.
* Clean up pointless statements (#79941)Matt Clay2023-02-071-1/+1
| | | | | | | * Add ignores for intentional pointless statements * Remove redundant docstring * Fix function docstring placement
* include_vars - document hash_behaviour + dir (#79790)Sloane Hertel2023-02-071-0/+1
| | | | | * document that hash_behaviour does not apply to individual files of variables when using the dir option * add tests
* Improving the RETURN and its docs on the apt_repository module (#79658)Mateus Rangel2023-02-061-11/+34
| | | | | | | | | | | | | | | | | | | | | | | * Improving the documentation on how we generate the default value of the filename parameter * fix pep8 * removing unnecessary documentation and improving the module's return * making the RETURN docs * pep8 * version_added and changelog * module._diff * module._diff fix * add rudimentary tests for new outputs --------- Co-authored-by: Matt Davis <mrd@redhat.com>
* Update collections.abc imports (#79911)Matt Clay2023-02-031-1/+1
| | | | | | | | | | | | | | * 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.
* Clean up unused imports in modules (#79898)Matt Clay2023-02-037-8/+2
|
* user - Remove invalid return docs (#79891)Matt Clay2023-02-021-10/+0
|
* Update dnf.py (#79679)Bartłomiej Kida2023-02-021-0/+8
|
* docs: Extend password entry of ansible.builtin.user (#79694)Hofer-Julian2023-01-261-4/+5
| | | | | | | * docs: Extend password entry of ansible.builtin.user Clarify that `password` sets the password hash. Not the actual password. Fixes part of #79684
* Update mypy and its dependencies. (#79812)Matt Clay2023-01-251-1/+1
| | | | | | | * Update mypy and its dependencies. * Fix requirements. * Remove unnecessary matching constraints.
* 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
* 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
* 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>
* Fixed incorrect spelling of the word overridden. (#79620)jbreitwe-rh2023-01-031-1/+1
|
* 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
* Fix file touch check mode result (#79360) (#79422)sbettid2022-11-291-27/+31
| | | Fixes #79360