summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [stable-2.10] Normalize ConfigParser between Python2 and Python3 (#73715) ↵Matt Martz2021-03-084-1/+12
| | | | | | | | | | | | | | (#73723) * [stable-2.10] Normalize ConfigParser between Python2 and Python3 (#73715) * Normalize config parser between py2 and py3 * Add tests and changelog * Use different config entry, since we supply certain env vars (cherry picked from commit 950ab74) * Update config entry
* [stable-2.10] hostname - add Almalinux support (#73619) (#73648)Sam Doran2021-03-082-0/+8
| | | | | (cherry picked from commit ac0dedda72) Co-authored-by: Aaron Guise <guisea@users.noreply.github.com>
* galaxy: Handle ignored directory names in role skeleton (#72035) (#73806)Sloane Hertel2021-03-083-1/+18
| | | | | | | | | | | | | | | | * galaxy: restore left hand slicing in assignment Fix 'ansible-galaxy role init --role-skeleton=role-skeleton' when the role skeleton contains an ignored directory. The issue was because the 'dirs' variable was changed to reference a different list, but needs to be mutated instead to stop os.walk from traversing ignored directories. Fixes: #71977 Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com> (cherry picked from commit eb72c36a71c8bf786d575a31246f602ad69cc9c9) Co-authored-by: manas-init <70483021+manas-init@users.noreply.github.com>
* [2.10] find module - stop dir traversal when depth is exceeded (#73808)Sloane Hertel2021-03-083-0/+48
| | | | | | | * find module - stop traversing directories with os.walk when depth is already exceeded (#73718) (cherry picked from commit 8628c12f30693e520b6c7bcb816bbcbbbe0cd5bb) * Update tests since there are fewer prior tasks creating files/directories
* ansible-test: yamllint, check the assigment (#73583)Gonéri Le Bouder2021-03-082-1/+4
| | | | | | | | Ensure `yamllint`'s `check_assignment()` correctly ignore the attribute assignment. Those don't have any `.id` attribute and will trigger an `AttributeError` exception. See: https://github.com/ansible/ansible/pull/73322 (cherry picked from commit 0a8d5c098367a58eaff10fd5b3868f099c1e17a7)
* [stable-2.10] Let vault lookup output unicode string. (#73571) (#73573)Alexander Sowitzki2021-03-087-1/+26
| | | | | | | Until now, the lookup plugin returned a byte string. Changed this to output a unicode string instead. (cherry picked from commit d0fda3e9011ece1be85e08835550f5063823f087) Co-authored-by: Alexander Sowitzki <asowitzk@redhat.com>
* [ansible-test] attempt to work around podman (#72096) (#73569)Gonéri Le Bouder2021-03-083-3/+146
| | | | | | | | | | | | | | | Change: - podman > 2 && < 2.2 does not support "images --format {{json .}}" - podman also now outputs images JSON differently than docker - Work around both of the above. Test Plan: - Tested with podman 2.0.6 in Fedora 31. Signed-off-by: Rick Elrod <rick@elrod.me> Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua> (cherry picked from commit 03320466995a91f8a4d311e66cdf3eaee3f44934) Co-authored-by: Rick Elrod <rick@elrod.me>
* only add data when there is data to add (#54559) (#73566)Brian Coca2021-03-089-19/+60
| | | | | | | | | | | | Only add data when there is data to add also avoid clobbering existing data with empty file fixes #45843 * remove redundant code, update comments * fix mock dataloader, original does not return None * added test (cherry picked from commit ec8a5565386f514b34fb2b4969436672dfe5f71d)
* [stable-2.10] Bump azure-pipelines-test-container to version 1.8.0 (#73549)Alexander Sowitzki2021-03-081-1/+1
| | | | | (cherry picked from commit c3e2bdd3a876daaf18f35623f463203c972edb8d) Co-authored-by: Alexander Sowitzki <asowitzk@redhat.com>
* [stable-2.10] Add AlmaLinux to the family of Red Hat-like operating systems ↵Sam Doran2021-03-083-1/+56
| | | | | | | | | | (#73541) (#73543) * Add changelog and fixtures for AlmaLinux support Co-authored-by: Christoph Schug <com+github@schug.net> (cherry picked from commit 2f5c83dfb1) Co-authored-by: Sam Doran <sdoran@redhat.com>
* [stable-2.10] Don't treat host_pinned as lockstep (#73484) (#73504)Matt Martz2021-03-087-2/+91
| | | | | | | | | | | | | | * [stable-2.10] Don't treat host_pinned as lockstep (#73484) * Don't treat host_pinned as lockstep. Fixes #73364 * Add intg tests. (cherry picked from commit d3f3784b86789b7b55782b0af4fba6d6bb935f19) Co-authored-by: Matt Martz <matt@sivel.net> * Make non-lockstep callback tests more deterministic (#73511) (cherry picked from commit 125c220343deb60ad64f4a412e6f670ddb511f4c)
* add base 2.10 to docs version switcher (#73770) (#73773)Sandra McCann2021-03-031-1/+1
| | | (cherry picked from commit 65140279573dd1f91b1134b7057711c46bac06ba)
* Backport of Split Ansible docs from core docs (#73616) (#73637)Alicia Cozine2021-03-0317-55/+994
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Split Ansible docs from core docs (#73616) * excludes scenario guides from core docs, splits porting guides and roadmaps, symlinks indices to create index.html pages, and adds .gitignore entries for conf.py and the toplevel index.rst files generated by the docs build This solution builds three types of docs: * ansible-2.10 and earlier: all the docs. Handle this via `make webdocs ANSIBLE_VERSION=2.10` * ansible-3 and later: a subset of the docs for the ansible package. Handle this via `make webdocs ANSIBLE_VERSION=3` (change the ANSIBLE_VERSION to match the version being built for. * ansible-core: a subset of the docs for the ansible-core package. Handle this via `make coredocs`. * `make webdocs` now always builds all the collection docs * Use `make coredocs` to limit it to core plugins only * The user specifies the desired version. If no ANSIBLE_VERSION is specified, build plugins for the latest release of ansible Co-authored-by: Toshio Kuratomi <a.badger@gmail.com> Co-authored-by: Matt Clay <matt@mystile.com> (cherry picked from commit ccbfdec334a7b0443f2daecf9f96ac5c5a33fd45) * fix CI failures, correct version switcher and makefile logic, set args in all cases, allow 2.10 build Co-authored-by: Sandra McCann <samccann@redhat.com> Co-authored-by: Alicia Cozine <acozine@users.noreply.github.com>
* [stable-2.10] Fix ansible-test handling of egg-info. (#73595)Matt Clay2021-03-026-51/+83
| | | | | | | | | | | | * Add test to verify pkg_resources imports work. (cherry picked from commit 133a29acb4ab06ccc881dd851febfd426b17ead5) * [stable-2.10] Fix ansible-test handling of egg-info. Resolves https://github.com/ansible/ansible/issues/67990. (cherry picked from commit d092356fc510069fe59258230c94871f32995c61) Co-authored-by: Matt Clay <matt@mystile.com>
* Update signing key used in incidental_setup_flatpak_remote testsSam Doran2021-02-221-0/+0
| | | | | The original key was created using the default expiration time of two years. Signed the repo again using a key that expires in twenty years.
* Update Ansible release version to v2.10.6.post0.Rick Elrod2021-02-181-1/+1
|
* New release v2.10.6v2.10.6Rick Elrod2021-02-174-4/+18
|
* Update Ansible release version to v2.10.6rc1.post0.Rick Elrod2021-02-081-1/+1
|
* New release v2.10.6rc1v2.10.6rc1Rick Elrod2021-02-084-1/+123
|
* [stable-2.10] Temporary fix for cryptography issues. (#73530). (#73533)Matt Clay2021-02-0810-5/+52
| | | | | (cherry picked from commit 1a2da990a403e1c836574c5883ec0c17a98d2a65) Co-authored-by: Matt Clay <mclay@redhat.com>
* Bump antsibull-changelog version for changelog sanity test.Felix Fontein2021-02-082-1/+3
| | | | (cherry picked from commit 82cdd7e735eb6244bd9eb23c5c11bf82111f267c)
* [stable-2.10] pause - adjust warning when run in background (#73182) (#73231)Sam Doran2021-02-073-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. (cherry picked from commit 0e6c334115) Co-authored-by: Sam Doran <sdoran@redhat.com>
* bugfix: use to_text(stdout) in psrp.Connection.put_file method (#73491) - ↵Jordan Borean2021-02-072-1/+3
| | | | | | | 2.10 (#73496) (cherry picked from commit f271d02a9fa07299ea4fccbd7554a1bcec1782dc) Co-authored-by: jakegatsby <39974194+jakegatsby@users.noreply.github.com>
* [stable-2.10] Fix YAML error message when error is at the end of the file ↵Sam Doran2021-02-073-8/+54
| | | | | | | | | | | | | | | | | (#73241) (#73296) If a YAML file fails to load due to a syntax error in a file, or there is an error in the last line of a file, PyYAML reports the last line number of the file as the index where the error occurred. When reading the file lines, we use that index to the get the relevant line. If the index value is out of range, the relevant line is lost for error reporting. Subtract one from the index value to avoid the IndexError in this specific scenario. It is possible to still get an IndexError, which will be handled as it is currently. * Update existing tests and add new tests (cherry picked from commit e8d4b62b41) Co-authored-by: Sam Doran <sdoran@redhat.com>
* Use a pty for local connections (#73023) (#73281)Brian Coca2021-02-074-2/+36
| | | | | | Fixes #38696 Co-authored-by: James Cammarata <jimi@sngx.net> (cherry picked from commit 30d93995ddcf92636919c2238435064a8089e240)
* Always mention the name of the deprecated plugin in routing deprecation ↵Felix Fontein2021-02-072-4/+8
| | | | | messages (#73059) (#73237) (cherry picked from commit df9cf368c0bb5ff2f7152402b30a0f27a5571389)
* [stable-2.10] facts - properly report virtualization facts for Linux guests ↵Sam Doran2021-02-074-0/+33
| | | | | | | on bhyve (#73204). (#73233) (cherry picked from commit df451636e74fe6f0021a5555392f84c2bf194432) Co-authored-by: Sam Doran <sdoran@redhat.com>
* fix inventory source parse error handling (#73160) (#73276)Brian Coca2021-02-073-8/+27
| | | | | | | fixes #51025 added test cases (cherry picked from commit 1e27d4052a95d8f19c63d6a37909b3ec690ac832)
* Local vars should have highest precedence in AnsibleJ2Vars (#72830) (#73370)Martin Krizek2021-02-0714-22/+93
| | | | | | | | | | | | | | | | | | | | Ability to add local variables into AnsibleJ2Vars was added in 18a9eff11f0a6e51b17405ce596bd9ff7e676320 to fix #6653. Local variables are added using ``AnsibleJ2Vars.add_locals()`` method when creating a new context - typically when including/importing a template with context. For that use case local template variables created using ``set`` should override variables from higher contexts - either from the play or any parent template, or both; Jinja behaves the same way. Also removes AnsibleJ2Vars.extras instance variable which is not used. Also adds missing test for #6653. Fixes #72262 Fixes #72615 ci_complete (cherry picked from commit a2af8432f36ec8cc5368a747f1211d2b9ba01f2e)
* no_log mask suboption fallback values and defaults CVE-2021-20228 (#73487) ↵Jordan Borean2021-02-077-11/+125
| | | | | (#73494) (cherry picked from commit 0cdc410dce6658e93c06fa27e0100ddbb11e7015)
* fix typo (#73479)Akira Yokochi2021-02-071-3/+3
| | | (cherry picked from commit f72dec16eaa96295e750e1ab70ef265a788a0170)
* git: verify, only use --raw when we need it (#70900) (#73473)Rick Elrod2021-02-074-3/+28
| | | | | | | | | | | | | | | Change: - Allow older git to verify tags again - Enable verification tests everywhere, even if most of them only work on newer git. Some of them work on older git and they test the --raw parameter. Test Plan: - Re-enabled subset of git tests Tickets: - Fixes #64469 Signed-off-by: Rick Elrod <rick@elrod.me>
* Fix warning for nonexistent inventory cache (#72840) (#73443)Sloane Hertel2021-02-077-6/+93
| | | | | * Fix inventory cache warning by checking if the key exists before loading it (cherry picked from commit 840bdc1e10f1f0d3c8c0ce4109e9724b466202c0)
* ensure unsafe writes fallback (#70722) (#73144)Brian Coca2021-02-077-11/+79
| | | | | | | | | | | | * Ensure we actually fallback to unsafe_writes when set to true add integration test add fix for get_url not passing the parameter from args (cherry picked from commit 932ba3616067007fd5e449611a34e7e3837fc8ae) * Added clog missing for issue 70722 (#73175) (cherry picked from commit d6670da1d7bc81dccd522d1bc27cc25164ef1aba)
* [stable-2.10] import_playbook - change additional params to deprecation ↵Sam Doran2021-02-076-3/+12
| | | | | | | | | | (#72987) (#73015) I incorrectly recommended this be set as a warning when it should have been a deprecation. * Fix deprecation sanity test to not required a collection name when not inside a collection (cherry picked from commit 8e022ef00a) Co-authored-by: Sam Doooran <sdoran@redhat.com>
* [setup_rpm_repo test] Ensure rpm-build is present (#73516) (#73518)Rick Elrod2021-02-053-0/+3
| | | | | | | | | | | | | | Change: - Other targets might remove rpm-build as they clean up after themselves. Ensure that it's present in setup_rpm_repo because rpmfluff needs it. Test Plan: - Local experimentation with yum_repository and mysql_db (the latter of which depends on a handler which was removing rpm-build) on stable-2.9. Signed-off-by: Rick Elrod <rick@elrod.me> (cherry picked from commit aca5b0e43be4d7bd067abc6631978b1cdfa75d84)
* [stable-2.10] Make yum_repository test more reliable (#73467)Sam Doran2021-02-0313-74/+138
| | | | | | | | | | | | | * Improve setup_rpm_repo - add handlers to remove repos - add variable to control whethere or not repos are created * Use local repo for all distros * Change repo creation script to module. (cherry picked from commit 997b2d2a1955ccb4e70f805c18dc3e227e86c678) Co-authored-by: Sam Doran <sdoran@redhat.com>
* validate_modules: fails with .id attribute not found (#73322)Gonéri Le Bouder2021-02-032-0/+5
| | | | | | | | | | | | | | | | | | | | | | | * validate_modules: fails with .id attribute not found This patch addresses a problem in the `found_try_except_import` test. This module tries to identify lines like: `HAS_FOO = True` In this case, the target (`HAS_FOO`) is of type `ast.Name` and has a `id` attribute which provide the name. In my case, I've a line that set a module attribute`. In this case, the target (`module.var`) has the type `ast.Attribute` and no `id` attribute. The code trigger an `AttributeError` exception. This patch ensures we compare a `ast.Name`. * Update test/lib/ansible_test/_data/sanity/validate-modules/validate_modules/main.py (cherry picked from commit 7cf80f50d16b7a7a2ba9f1318bdca5df53936369)
* Documentation: fix formatting (#73186)Andrew Klychkov2021-02-0310-106/+110
|
* Make sure to mention collection version for version_added as well. (#73270) ↵Felix Fontein2021-02-033-5/+7
| | | | | (#73280) (cherry picked from commit 73aa571305f52df2a0995b77f51dafdc3787eb96)
* add new glossary terms for 2.10 (#71813) (#73293)David Moreau Simard2021-02-031-0/+27
| | | | | | | | * add new terms for 2.10 Co-authored-by: Alicia Cozine <879121+acozine@users.noreply.github.com> (cherry picked from commit 4aedd1b987150baae4b11200de916c87c53e6d30) Co-authored-by: Sandra McCann <samccann@redhat.com>
* Remove 'type: complex' from the example, and mention that it should be ↵Felix Fontein2021-02-031-2/+4
| | | | | avoided. (#73171) (#73222) (cherry picked from commit 270385f9490a0c9ee30fb3e17df7a09dd2a37433)
* Fix `versionadded` syntax @ galaxy user guide (#73350)Sviatoslav Sydorenko2021-02-021-1/+1
| | | (cherry picked from commit 6abeabaff1356d0f4b88e87b5dd1eb86f81993ed)
* Mention that C(...) should be used for inline code. (#73312) (#73374)Felix Fontein2021-02-021-1/+1
| | | (cherry picked from commit 76604397cb0940d27646d8764bc6d7c1c088aabd)
* Revert "[ansible-test] Bump CentOS 6 image (yum repos) (#73446) (#73447)" ↵Rick Elrod2021-02-012-3/+1
| | | | | (#73450) This reverts commit e4f8d528b9d6641db764736d68af01703ca49b8b.
* [ansible-test] Bump CentOS 6 image (yum repos) (#73446) (#73447)Rick Elrod2021-02-012-1/+3
| | | | | | | Change: - Bump centos6 image version to one which includes multiple fallbacks for vault.centos.org content. Signed-off-by: Rick Elrod <rick@elrod.me>
* [2.10] Add Ubuntu 20.04 to CI and ansible-test (#69161) (#73365)Rick Elrod2021-01-2613-12/+55
| | | | | | | | | | | | Change: - Add Ubuntu 20.04 to CI now that venv is default instead of virtualenv in ansible-test. Test Plan: - CI Tickets: - Fixes #69203 Signed-off-by: Rick Elrod <rick@elrod.me>
* [stable-2.10] Use a versioned pip bootstrapper in ansible-test. (#73359)Matt Clay2021-01-252-4/+3
| | | | | (cherry picked from commit fc590aeb2104c2c4e6a3aacba53852da1d7a26d9) Co-authored-by: Matt Clay <matt@mystile.com>
* [stable-2.10] Handle get-pip.py breaking change on Python 2.7.Matt Clay2021-01-232-1/+11
| | | | | | (cherry picked from commit 484e4af4d0b0f8ba88f73c20f592bb107eb9396a) Co-authored-by: Matt Clay <matt@mystile.com>
* Update Ansible release version to v2.10.5.post0.Rick Elrod2021-01-181-1/+1
|