summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* doc: fix ansible_play_hosts description about failure (#73190)Koki Kato2021-01-181-1/+1
| | | | | The variable ansible_play_hosts actually does _not_ includes failed or unreachable hosts. +label: docsite_pr
* Update documentation for "contains" parameter (#73107)Jan2021-01-181-0/+1
| | | Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
* Make sure to mention collection version for version_added as well. (#73270)Felix Fontein2021-01-183-5/+7
|
* fix inventory source parse error handling (#73160)Brian Coca2021-01-183-8/+27
| | | | | fixes #51025 added test cases
* add changelog fragment for 73176 (#73259)Sandra McCann2021-01-151-0/+2
|
* Added TLS security protocol for Powershell downloads (#73226)Martijn Suijlen2021-01-141-0/+3
| | | | | | | | | | ##### SUMMARY Added `[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12` to the Powershell scripts that use a file download. If not specified the script won't be allowed to download data from the mentioned URL's. ##### ISSUE TYPE - Docs Pull Request +label: docsite_pr
* Allow restricting config values to enumerated list (#73162)Brian Coca2021-01-1410-26/+63
| | | | | | | * Allow restricting config values to enumerated list * dont document internal entries * also ignore private defs for ansible-config * remove invalid value from tests * added porting entry
* update rstcheck and sphinx versions in contraints (#73176)Sandra McCann2021-01-141-1/+2
| | | | * update rstceck and sphinx versions in contraints * fix test error
* Fix block example line emphasis (#73238)Adam Miller2021-01-141-4/+4
| | | Signed-off-by: Adam Miller <admiller@redhat.com>
* Fix list to dict example (#73213)Gregor Riepl2021-01-141-1/+1
| | | | | | | | | | ##### SUMMARY <!--- Your description here --> single_list must be transformed to a list of pairs before feeding it into dict() ##### ISSUE TYPE - Docs Pull Request +label: docsite_pr
* ansible-galaxy - correct collections-path command line arg (#73193)Sam Doran2021-01-142-1/+3
| | | It should be plural to match other options and environment variables.
* Add integration tests to ansible-galaxy-collection for 'ansible-galaxy ↵Sloane Hertel2021-01-143-0/+278
| | | | collection verify' (#73229)
* Always mention the name of the deprecated plugin in routing deprecation ↵Felix Fontein2021-01-142-4/+8
| | | | messages (#73059)
* facts - properly report virtualization facts for Linux guests on bhyve (#73204)Sam Doran2021-01-144-0/+37
|
* pause - adjust warning when run in background (#73182)Sam Doran2021-01-143-7/+23
| | | | | | | | When the pause module is run in the background and seconds parameter is provided, do not warn. * Add tests * Fix existing tests The test wasn't failing when it should have.
* [facts] Differentiate CentOS vs CentOS Stream (#73034)Rick Elrod2021-01-135-34/+113
| | | | | | | | | | | | | | | | | | | Change: - On CentOS Stream, make distribution_release be "Stream" - On CentOS Core, it continues to be "Core" - Implement custom distribution file parser for CentOS, so we can look for "CentOS Linux" and "CentOS Stream" - Two new fixtures introduced (CentOS Linux 8.1 and CentOS Stream 8) - Removed two dicts from `Distribution` class that were seemingly not used anywhere. Test Plan: - ci_complete - New test fixtures Tickets: - Fixes #73027 Signed-off-by: Rick Elrod <rick@elrod.me>
* Remove obsolete `tower` plugin from ansible-test.Matt Clay2021-01-134-274/+2
|
* Make `test_adhoc` succeed from within a git checkoutAlexander Sowitzki2021-01-131-1/+1
| | | | | | | | | The test currently only expects the literal `ansible` followed by a semver in the first output line of `ansible --version`. When running from within a git checkout, additional information like the currently checkout branch are attached, which lets the test fail. This commit allows arbitrary information to follow the semver.
* Make `test_prepare_multipart` succeed on non Debian distrosAlexander Sowitzki2021-01-132-1/+2
| | | | | | | | | `test_prepare_multipart` fails in non Debian environments since Debian installations map the file ending `.key` to the MIME type `application/pgp-keys`, which is not IANA conformant. This commit explicitly sets the corresponding file type to `application/octet-stream` and adjusts the expected serialized result.
* Remove 'type: complex' from the example, and mention that it should be ↵Felix Fontein2021-01-131-2/+4
| | | | avoided. (#73171)
* Cleanup provisioning code in ansible-test. (#73207)Matt Clay2021-01-1312-169/+82
| | | | | | | | | | | * Remove unused code in ansible-test. * Remove obsolete endpoint logic from ansible-test. * Remove obsolete region selection in ansible-test. * Remove obsolete port logic in ansible-test. * Clean up ansible-test remote providers.
* Added clog missing for issue 70722 (#73175)Brian Coca2021-01-121-0/+4
|
* Add tests for merging and replacing vars from inventory sources (#73181)Sloane Hertel2021-01-114-0/+62
|
* iptables: Added set module/match_set support (#72984)Martin Zimmermann2021-01-113-0/+98
|
* hostname module: advise 'use:systemd' for RHEL/EL/CentOS 7+ (#72444)Brad Solomon2021-01-111-0/+1
| | | | | Closes: https://github.com/ansible/ansible/issues/72429 Co-authored-by: Brad Solomon <brsolomon@deloitte.com>
* Add macOS 11 to CI (#72622)Sam Doran2021-01-117-2/+7
| | | | | * Fix connection_paramiko_ssh test for macOS 11 * Update Azure Pipelines config * Add changelog
* user - properly handle password and password lock when used together (#73016)Sam Doran2021-01-1119-1149/+1283
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do the right thing on Linux when password lock and a password hash are provided by writing out the password hash prepended by the appropriate lock string rather than using -U and -L. This is the correct way to set and lock the account in one command. On BSD, run separate commands as appropriate since locking and setting the password cannot be done in a single action. FreeBSD requires running several commands to get the account in the desired state. As a result, the rc, output, and error from all commands need to be combined and evaluated so an accurate and complete summary can be given at the end of module execution. * Improve integration tests to cover this scenario. * Break up user integration tests into smaller files * Properly lock account when creating a new account and password is supplied * Simplify rc collection in FreeBSD class Since the _handle_lock() method was added, the rc would be set to None, which could make task change reporting incorrect. My first attempt to solve this used a set and was a bit too complicated. Simplify it my comparing the rc from _handle_lock() and the current value of rc. * Improve the Linux password hash and locking behavior If password lock and hash are provided, set the hash and lock the account by using a password hash since -L cannot be used with -p. * Ensure -U and -L are not combined with -p since they are mutually exclusive to usermod. * Clarify password_lock behavior.
* Documentation: fix formatting (#73060)Andrew Klychkov2021-01-1110-121/+127
| | | Co-authored-by: Andrew Klychkov <andrew.klychkov@gmail.com>
* Update developing_collections.rst (#73142)Jens Heinrich2021-01-081-1/+1
| | | Fix typo - FQCN not FCQN.
* Document install_python_apt option of apt_repository (#72959)Felix Fontein2021-01-082-3/+10
| | | | | | | | * Update lib/ansible/modules/apt_repository.py * Remove unnecessary ignored sanity tests Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Alicia Cozine <879121+acozine@users.noreply.github.com> Co-authored-by: Amin Vakil <info@aminvakil.com>
* add note regarding datetime docs (#72976)Sascha Marcel Schmidt2021-01-081-0/+2
| | | | Adds a note pointing to the datetime documentation as to_datetime does not use the time library but instead uses datetime. Co-authored-by: Alicia Cozine <879121+acozine@users.noreply.github.com>
* Documentation change to the apt module to reference lock files (#73079)Jon "The Nice Guy" Spriggs2021-01-081-0/+11
| | | | This change references the suggested workaround in #25414. Co-authored-by: Alicia Cozine <879121+acozine@users.noreply.github.com>
* Update pip integration test to use venv on py3.Matt Clay2021-01-082-14/+24
|
* ansible-test - No virtualenv install on Python 3Matt Clay2021-01-082-3/+14
| | | | | | | Tests should use the Python built-in ``venv`` module on Python 3 instead of the standalone ``virtualenv`` module. On Python 2 the ``virtualenv`` module continues to be the only option. The version installed is either the OS packaged version or the last release to support Python 2, which is version 16.7.10.
* Fix example with the backwards counting in the sequence lookup plugin. (#73081)Jorge Rua2021-01-071-2/+3
| | | | | | | The old example failed with: fatal: [localhost]: FAILED! => {"msg": "to count backwards make stride negative"} I fixed this and placed a start parameter to consolidate with the rest of the examples provided. Co-authored-by: Jorge Rua <jorua@redhat.com>
* Fix a typo in the documentation of ansible.builtin.apt (#73061)Louis Sautier2021-01-071-1/+1
|
* Added NO_COLOR as config option (#73105)Brian Coca2021-01-072-1/+7
|
* Update windows_winrm.rst (#73101)Tim Herty2021-01-071-0/+1
| | | | | | The standard Port for ansible winrm is set to 5986/HTTPS. To be able to use Kerberos, you need to set ansible_port: 5985/HTTP otherwiese you get error message or timeout. HTTPS is not needed for environments with Kerberos, since kerberos has server identification built in to the protocoll. FYI: HTTP traffic will by default also be encrypted when using kerberos
* update the docs requirements versions (#73108)Sandra McCann2021-01-071-3/+3
|
* [dnf] Make "remove" filtering closer to dnf CLI (#73033)Rick Elrod2021-01-074-15/+76
| | | | | | | | | | | | | | | Change: - Internally, use dnf.subject.Subject#get_best_query for state: absent - Add a bunch of tests for removing packages, given a bunch of different pkg specs (nv, nvr, nvra, wildcard, etc.) Test Plan: - New tests - Local experiments with DNF API via PDB. Tickets: - Fixes #72809 Signed-off-by: Rick Elrod <rick@elrod.me>
* Refactor ansible-test cryptography install code.Matt Clay2021-01-072-15/+27
|
* Add support for argument_specs attribute to RoleMetadata class (#73120)David Shrewsbury2021-01-073-0/+5
|
* Update azure pipelines containerSam Doran2021-01-071-1/+1
|
* Rewrite Docker scenario guide (#73069)Felix Fontein2021-01-061-204/+101
|
* left a stray </div> by mistake (#73132)Alicia Cozine2021-01-061-1/+0
| | | Co-authored-by: Alicia Cozine <acozine@users.noreply.github.com>
* Update the porting guide for a new ansible version (#73124)Deric Crago2021-01-061-0/+73
|
* galaxy: handle plus sign in user token appearing in role url (#73057)Abhijeet Kasurde2021-01-064-4/+92
| | | | | Fixes: #45475 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Declare support for Python 3.9 in the metadataSviatoslav Sydorenko2021-01-062-0/+3
| | | | Co-authored-by: Rick Elrod <rick@elrod.me>
* [ansible-test] Add Fedora 33 support and drop F31Rick Elrod2021-01-067-36/+48
| | | | | | | | | | | | Change: - Changes to make F33 work with current tests - Add F33 to docker.txt - Add F33 to AZP config Test Plan: - ci_complete Signed-off-by: Rick Elrod <rick@elrod.me>
* remove doc survey banner (#73119)Sandra McCann2021-01-051-7/+3
|