summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* New release v2.11.2rc1v2.11.2rc1Rick Elrod2021-06-144-1/+90
|
* psrp - cleanup command (#74985) (#75001)Jordan Borean2021-06-142-14/+22
| | | (cherry picked from commit 58d83977718363c15fb5954a7d5e05e81548b590)
* delegation fix (#74685) (#74811)Brian Coca2021-06-144-4/+24
| | | (cherry picked from commit b518aabf81213dd4d8b5b46a1a0657b5d8408238)
* role argspec - tag role argspec validation task with 'always' (#74994) (#74996)David Shrewsbury2021-06-145-0/+23
| | | | | * update tag docs (cherry picked from commit 97acb0f470471c9dcf1e357f1672127f146240a8)
* Ssh opts fix (#74972)Brian Coca2021-06-142-2/+6
| | | (cherry picked from commit 675df166c27bc82a4d9a7cba45e11aec0300ae2c)
* [2.11] Fix using module-specific module_defaults in action plugins (#74849)Sloane Hertel2021-06-1410-18/+226
| | | | | | | | | | | | | | | | | * Use the module redirect_list when getting defaults for action plugins (#73864) * Fix module-specific defaults in the gather_facts, package, and service action plugins. * Handle ansible.legacy actions better in get_action_args_with_defaults * Add tests for each action plugin * Changelog Fixes #72918 (cherry picked from commit 5640093f1ca63fd6af231cc8a7fb7d40e1907b8c) * Fix tests for < 3.8
* [stable-2.11] slurp - handle error when path is a directory (#74930). (#74964)Sam Doran2021-06-144-8/+15
| | | | | (cherry picked from commit 0a5cc80ce22debfe9879ab95e3d332522b3ea6ec) Co-authored-by: Sam Doran <sdoran@redhat.com>
* [stable-2.11] subversion - fix stack trace when getting repository ↵Sam Doran2021-06-142-4/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | information (#74405) (#74977) * subversion - set LC_ALL for accurate command output parsing When LC_ALL is not set, the output language of commands will differ based on locale. There is a lot of history of trying to fix this. See the following pull requests: https://github.com/ansible/ansible-modules-core/pull/4358 https://github.com/ansible/ansible-modules-core/pull/4358 This patch attempts to fix this my setting LC_ALL to a UTF-8 locale. Setting LC_ALL to C reintroduces this bug https://github.com/ansible/ansible-modules-core/issues/4178. I'm sure there are some problems I am not seeing with setting this to en_US.UTF-8, but that is the only way I could find to fix this bug without reintriducing the bug mentioned above. * Rather than setting locale, just check for matches before trying to get groups This is a pragmatic solution to avoid the stack trace since setting the locale correctly to ensure message parsing is accurate is problematic. * Improve regexps for finding revision and URL (cherry picked from commit a8cf0196f7) Co-authored-by: Sam Doran <sdoran@redhat.com>
* [2.11] Fix slurp error handling for unreadable files and directories (#74915)Hideki Saito2021-06-146-6/+76
| | | | | | - Fixes #67340 - Backport PR for #68608 Signed-off-by: Hideki Saito <saito@fgrep.org>
* Apply display_failed_stderr on loop item results (#74865) (#74898)Martin Krizek2021-06-144-5/+11
| | | (cherry picked from commit 01ab6c6ec73915412f1a1d00f7c247147ccfd606)
* Basic: don't call lstat when check_mode (#64279) (#74883)Felix Fontein2021-06-143-1/+11
| | | | | | | | | While mode is specified in check_mode, don't call lstat. Since file may not present. Fixes: #61185 (cherry picked from commit 7099657dd7279ef2989d601251f46e7407a86fa6) Co-authored-by: Logistic Bot <logistic-bot@protonmail.com>
* Due to the takeover of freenode we're moving to a different irc network. ↵Andrew Klychkov2021-06-1496-107/+108
| | | | | | | | | | | | | | (#74775) (#74968) * Updates our channels to point at the same channel name on libera.chat * Links that used to point to webchat.freenode.net now point to https://libera.chat * Removes http://irc.freenode.net from the linkcheck exceptions. * Updates docs/docsite/rst/dev_guide/developing_modules_in_groups.rst (cherry picked from commit 80e7e1a17cb6aaf10e289e671fc382a614018e6e) Co-authored-by: John R Barker <john@johnrbarker.com> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
* psrp - Fix reset connection on failed scenarios (#74967) (#74984)Jordan Borean2021-06-142-0/+12
| | | | | Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com> (cherry picked from commit cf3a304ce1711ed9a19549fbf58c004acd47c06a)
* ansible-pull - update help info for --directory option (#74936) (#74993)David Shrewsbury2021-06-142-1/+4
| | | | | | | * Update -d help info for ansible-pull * fix pep8 (cherry picked from commit 6539c598579f960c16745b3e35c8e841b23fb1a5)
* fix unsafe preservation across newlines (#74960) (#74973)Brian Coca2021-06-114-1/+29
| | | | | | | CVE-2021-3583 ensure we always have unsafe Co-authored-by: Rick Elrod <rick@elrod.me> (cherry picked from commit 4c8c40fd3d4a58defdc80e7d22aa8d26b731353e)
* [stable-2.11] version test - improve message when value is empty (#74754) ↵Sam Doran2021-06-113-1/+33
| | | | | | | | | | | | | | | (#74789) When an empty value is provided, no `version` attribute will exist on the `LooseVersion` or `StrictVersion` object. We catch and handle this, but it's not immediatebly clear that an AttributeError means an empty value was provided. Specifically handle the case where value or version are empty and add more helpful error messages. Add integration tests. (cherry picked from commit 71e33d2578) Co-authored-by: Sam Doran <sdoran@redhat.com>
* avoid literal quoting in config lists (#74740) (#74773)Brian Coca2021-06-112-1/+3
| | | | | * avoid literal quoting in config lists (#74740) * added tests (cherry picked from commit d2d1f01f9d067e82b6af0da156a24627d04b396c)
* Fix name of subkey. (#74939) (#74966)Felix Fontein2021-06-101-1/+1
| | | (cherry picked from commit 81ad125aa65ef6c1c1c4137f49c2f1c91bca7d2b)
* Localization: Import first set of translated files (#74954)Yanis Guenane2021-06-1017-0/+52839
| | | | | | | | | | | | | * Localization: Import first set of translated files (cherry picked from commit d45c2cec5530a916c2b16dae1ade6c0bdf04b38f) * Ignore smart quotes in the dev guide translation. The smart quotes are in the warning message to not use smart quotes. (cherry picked from commit 3f694e9f022b92c32486a148d695686b2f9833be) Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
* Update inventory script references from c.g to ↵Felix Fontein2021-06-075-12/+12
| | | | | ansible-community/contrib-scripts. (#74905) (#74926) (cherry picked from commit acf09e56a257d8b0548226cb9ab5ae9450df0d3d)
* adds banner for GalaxyNG survey (#74889) (#74906)Alicia Cozine2021-06-031-7/+16
| | | | | | | | | * adds banner for GalaxyNG survey (#74889) (cherry picked from commit 62fc4ad8dad1d1d18a6ff72b73bb546db0028055) * gives each banner a unique div ID (#74907) (cherry picked from commit 33924d7e8dac0736342032c79136bd75d8dc11bf)
* [bp-2.11] Fix small typo in playbook_filters doc (#74763)Abhijeet Kasurde2021-06-031-2/+2
| | | | | | | Move versionadded to next line to render correctly. (cherry picked from commit 888fea69e547f49a9267d2c8df71fac38e383ed4) Co-authored-by: Chander G <mail@chandergovind.org>
* Improve and extend changelog logs (#74106) (#74753)Felix Fontein2021-06-031-1/+67
| | | | | Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com> (cherry picked from commit 4bf420706b2bf8591366e9eadf0db0afc6eccb17)
* [bp-2.11] Update example and description of git:single_branch (#74832)Abhijeet Kasurde2021-06-031-2/+4
| | | | | (cherry picked from commit b63512774b7df8056fe34138b97115f1663d88d4) Co-authored-by: Daniel Chabrowski <dantezstudio@gmail.com>
* [bp-2.11] filters: Add a note about seed (#74874)Abhijeet Kasurde2021-06-031-0/+11
| | | | | | | | | | While using ``seed`` parameter of the 'random' filter, behavior changes between Python 2 and Python 3. Added a note about this in the documentation. Fixes: #63784 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> Co-authored-by: Sandra McCann <samccann@redhat.com> Co-authored-by: Alicia Cozine <879121+acozine@users.noreply.github.com>
* remove package porting guides from stable branch, point to devel (#74890)Alicia Cozine2021-06-035-2897/+18
| | | Co-authored-by: Alicia Cozine <acozine@users.noreply.github.com>
* Update Ansible release version to v2.11.1.post0.Rick Elrod2021-05-241-1/+1
|
* New release v2.11.1v2.11.1Rick Elrod2021-05-244-4/+18
|
* updates list of available versions for Ansible 3 (#74265) (#74757)Sandra McCann2021-05-181-3/+3
| | | | | | | | | | | * updates list of available versions for Ansible 3 (#74265) (cherry picked from commit 126e9244c2bbe12234d0cbd98c0802444ab103f5) * update conf.py (#74751) (cherry picked from commit cd8e3a2208dca4f56aaadab60be1d6296a85166c) Co-authored-by: Alicia Cozine <879121+acozine@users.noreply.github.com>
* Set the version to 4 (#74755)Sandra McCann2021-05-181-1/+1
|
* Update Ansible release version to v2.11.1rc1.post0.Rick Elrod2021-05-171-1/+1
|
* New release v2.11.1rc1v2.11.1rc1Rick Elrod2021-05-174-1/+147
|
* Add changelog for ansible-galaxy improvements (#74738) (#74739)Sloane Hertel2021-05-171-0/+6
| | | | | Changelog for #74240 (cherry picked from commit 9cfedcd9c911f994f830d494739a6bfe4de1b080)
* Fix world readable setting (#74324) (#74418)Brian Coca2021-05-173-19/+23
| | | | | | | | | now uses shell option in all cases, the old constant still exists as 'documentation' but it not settable. also fix the docsite link in warnings/errors import cleanup (cherry picked from commit d8fa2b50d59721cbee0da892bccaae3f78f56c60)
* restores delegated vars that were not passed (#74371)Brian Coca2021-05-173-18/+19
| | | | | | | | | | * restores delegatd vars that were not passed this will restore delegate display on callbacks using the vars also moves to use delegate_to directly on the default callback * clog (cherry picked from commit cbc83545582d8d7a718140263c465129e0e535d9)
* Fix pb subs collapse (#74301) (#74376)Brian Coca2021-05-176-0/+35
| | | | | | | | | * fix subdir parsing for plays fixes #74283 Co-authored-by: Nikolaos Kakouros <nkak@kth.se> (cherry picked from commit 6418f368e3d13c404cc2d53a6d5dab68f2809996)
* [2.11] Do not remove non-empty cron tabs (#74698)elara-leitstellentechnik2021-05-175-20/+121
| | | | | | | | | | | | | | | | | | | | | | | * Only remove crontabs if they are empty (cherry picked from commit fefda12827c2932c2d740af074e9a8d96202ed72) * Add integration test to ensure system cron tab doesn't get removed. Increase cron integration tests separation. (cherry picked from commit 1e37fa86b4d44b09bd7c17db3fa706ea620e4a9d) * Also detect crontab which only contains whitespace as empty. (cherry picked from commit 4b69c8f50152e434bb53013b46542f7ddb52240f) * cron integration test: Adjust system crontab path to be distribution specific. (cherry picked from commit 70be3730db8454841ae5ab1349df5104b8f14317) * Add changelog fragment for #74497. (cherry picked from commit c606b50a3d2c2a8fa7d7588b298a23ff73f2507b) Co-authored-by: Fabian Klemp <fabian.klemp@elara-gmbh.de>
* Map Debian 8 to Python 2 (#74152) (#74359)Matt Davis2021-05-173-2/+8
| | | | | | | | | | | | | | | | | | * Map Debian 8 to Python 2 If Python 3 is installed on Debian 8 Ansible cannot run, as the version is too old (3.4) * Add integration test for python interpreter discovery on Debian 8 * fix test issue on Debian 9, add changelog * un"fix" not broken test :D Co-authored-by: Fabian Klemp <fabian.klemp@elara-gmbh.de> Co-authored-by: Matt Davis <mrd@redhat.com> (cherry picked from commit 437a08eb6de7bf87a8c874e756f9b6b523911e68) Co-authored-by: elara-leitstellentechnik <elara-leitstellentechnik@users.noreply.github.com>
* Detect Homebrew on Mac M1 (Apple Silicon) (#74378) (#74401)Fernando Correia2021-05-173-0/+44
| | | | | | | Homebrew's default install location for macOS on ARM is /opt/homebrew. Source: https://docs.brew.sh/FAQ On a Mac M1 (Apple Silicon), homebrew will be installed at /opt/homebrew/bin/brew.
* [bp-2.11]: apt_key - Binary GnuPG keys downloaded via URL were corrupted ↵Maxim Masiutin2021-05-174-1/+21
| | | | | | | (#74522) * Binary GnuPG keys downloaded via URLs by the 'ansible.builtin.apt_key' module were corrupted so 'gpg' could not import them (https://github.com/ansible/ansible/issues/74424) (cherry picked from commit 03750708710b2e44a7ffa068c65f969ae4ed51f1) (cherry picked from commit 4cc80ef9c95e6eaf8d21415778dd984adcf088f9)
* Actually run blocks/finalized_task test (#74291) (#74312)Martin Krizek2021-05-171-0/+2
| | | (cherry picked from commit 7fecb7ccc381ef61cadc2702b3df0fc73393077a)
* defend against bad or missing crypt (#74304)Brian Coca2021-05-173-7/+21
| | | | | | | | * defend against bad or missing crypt fixes #74279 (cherry picked from commit 4494ef3a9d0b0816e228a2b0cf8ebce9b732253a)
* removed unused imports (#74299)Brian Coca2021-05-171-5/+2
| | | | (cherry picked from commit e3eeb88f7c7c6ccd9c30da3fb0b23a000ac344db)
* [become] Add Solaris chmod ACL fallbackRick Elrod2021-05-173-2/+27
| | | | | | | | | | | | | Change: - Newer Solaris drops setfacl. Add a fallback for its chmod ACL syntax. Test Plan: - New units Tickets: - Fixes #74282 Signed-off-by: Rick Elrod <rick@elrod.me>
* [become] Fix solaris permissions regressionRick Elrod2021-05-173-9/+42
| | | | | | | | | | | | | | | | | | | | | | Change: - Regression introduced in #70785 - When macOS chmod ACL syntax is used, Solaris-derived chmods return with a status of 5. This is also used for our sshpass handling, because sshpass will return 5 on auth failure. This means on Solaris, we incorrectly assume auth failure when we reach this branch of logic and try to run chmod with macOS syntax. - We now wrap this specific use of chmod in an exception handler that looks for AnsibleAuthenticationFailure and skips over it. This adds another authentication attempt (something we normally avoid to prevent account lockout), but seems better than the regression of not allowing other fallbacks to be used. - Without this patch, if setfacl fails on Solaris (and sshpass is used), we do not try common_remote_group or world-readable tmpdir fallbacks. Test Plan: - New unit Signed-off-by: Rick Elrod <rick@elrod.me>
* Prevent ansible_failed_task from further templating (#74290) (#74308)Martin Krizek2021-05-174-1/+23
| | | | | | | Fixes #74036 * Add changelog (cherry picked from commit 664531d7d6253d5bdb182727501c08e3b5aea0c1)
* fix config manager list loption with choices (#74267) (#74298)Brian Coca2021-05-175-1/+82
| | | | | | | fixes #74225 Co-authored-by: Kim Nørring <github@norring.dk> (cherry picked from commit b91749d671a5a0afa0b2380a60bff95da9060c02)
* The error message about the failure to import a 'gpg' key by the ↵Maxim Masiutin2021-05-174-2/+12
| | | | | | 'ansible.builtin.apt_key' module was incorrect (https://github.com/ansible/ansible/issues/74423) (#74521) Co-authored-by: Sam Doran <sdoran@redhat.com> (cherry picked from commit e4d7fc974538f38a0fee3b2a5b304d37e2fc9ab5)
* [incidental_setup_rabbitmq] [2.11] Remove main (#74728)Rick Elrod2021-05-171-5/+0
| | | | | | | | | | Change: - This file got missed in bcd7b61c032f17a8c5caecf4e2eda35b00211b09 / #74715 somehow. Test Plan: - If CI passes, it worked. Signed-off-by: Rick Elrod <rick@elrod.me>
* Makefile: Allow one to specify python version (#74517) (#74528)Rick Elrod2021-05-172-2/+1
| | | | | | | | | | Change: - Allow overriding python version as env var for Makefile - Including hacking directory in git export, for docs build Test Plan: - Tested as part of recent downstream work Co-authored-by: Yanis Guenane <yguenane@gmail.com>