Commit Graph

51461 Commits (8b34aab73278cddea8a84f91f0dacf0d89c93506)
 

Author SHA1 Message Date
Brian Coca 8b34aab732
Fix --list-hosts when undefined var is used (#75533) (#75551)
fixes #75354

(cherry picked from commit ff72908b4d)
3 years ago
Brian Coca d6da3b8c85
Return correct url for relative paths in messages (#75562) 3 years ago
Deric Crago bb6355c453
backport of #75567 (#75571)
updated 'Installing Ansible on Debian' details (#75567)
3 years ago
Martin Krizek a6f24c407c
Fix templating task action with host-specific vars (#75600) (#75613)
Fixes #75568

(cherry picked from commit 9c2f44b884)
3 years ago
Martin Krizek 999c2e603d
paramiko_ssh - mark connection as connected when successful (#74459) (#75614)
* Remove unused import from test

(cherry picked from commit 74b2add460)

Co-authored-by: Sam Doran <sdoran@redhat.com>
3 years ago
Alicia Cozine 2af206399d
makes Fest link from docs trackable (#75594) (#75595)
Co-authored-by: Alicia Cozine <acozine@users.noreply.github.com>
(cherry picked from commit e35e8ed2ec)
3 years ago
Felix Fontein 9691eb5f20
Also allow .yml. (#75439) (#75460)
(cherry picked from commit 0055a328b3)
3 years ago
Alicia Cozine 5a35a95ceb
new antsibull supports breadcrumbs toggle (#75424) (#75425)
* new antsibull supports breadcrumbs toggle

* let antsibull versoin float free

Co-authored-by: Alicia Cozine <acozine@users.noreply.github.com>
(cherry picked from commit d9d98740f2)
3 years ago
Andrew Klychkov 9e022484b7
Docsite: improve reporting_bugs_and_features.rst (#75234) (#75450)
* Docsite: improve reporting_bugs_and_features.rst

* Add clarification

(cherry picked from commit 61b81bcd10)
3 years ago
Sandra McCann 362e6c5cc4
Add AnsibleFest banner (#75476) (#75493)
* add AnsibleFest banner

* fix nit

(cherry picked from commit dc6878007b)
3 years ago
Rick Elrod 9dba4dbf82
[hacking] finally update announce script for core (#75523)
Change:
- s/base/core/ in announcement script for releases

Test Plan:
- Have been using it locally every time

Signed-off-by: Rick Elrod <rick@elrod.me>
3 years ago
Christian M. Adams 96d2f79e4c
Update Ansible release version to v2.11.4.post0. 3 years ago
Christian M. Adams 2344b18382
New release v2.11.4 3 years ago
Alicia Cozine f22eab3dfe
fixes typo in changelog entry (#75461)
Co-authored-by: Alicia Cozine <acozine@users.noreply.github.com>
3 years ago
Rick Elrod 1330747880 Update Ansible release version to v2.11.4rc1.post0. 3 years ago
Rick Elrod 08db988f7b New release v2.11.4rc1 3 years ago
Yanis Guenane f4c8e93024
Update Japanese translation for stable-2.11 (#75429) 3 years ago
Sloane Hertel e1f406699b
Fix dnf test assertion (#75426) (#75427)
(cherry picked from commit e23fdee45e)
3 years ago
Sloane Hertel f0b227009c
Fix dnf package matching (#75411) (#75418)
* Fix a bug with the dnf module not using all components of a package name when filtering to determine if it's installed

* changelog

* Simplify splitting on the last '.'

* Update lib/ansible/modules/dnf.py

(cherry picked from commit b541a148d5)
3 years ago
Brian Coca de1129c8e5
Skip python interpreter discovery for 'forced local' module execution (#74824) (#75402)
mostly for use with network_os
  use 'remote is local' property as indicator
  ensure task_vars are as expected in test

(cherry picked from commit 8d41b97329)
3 years ago
Brian Coca bb993dc877
ensure we convert path in warning or py2.6 breaks (#75413) (#75414)
(cherry picked from commit 75e6bdb579)
3 years ago
Sandra McCann 2023363b39
incorporate minimalism feedback on distributing collections page (#75266) (#75302)
(cherry picked from commit 0e9d1ab1cc)

Co-authored-by: Alicia Cozine <879121+acozine@users.noreply.github.com>
3 years ago
Sandra McCann ab05ac25d2
Issue 73792: Removed mentions of R() and M() (#74708) (#75300)
* 73792: Removed mentions of R and M

(cherry picked from commit bf9944266c)

Co-authored-by: Lydie <44351234+lmalivert@users.noreply.github.com>
3 years ago
Sandra McCann 0413498234
Docs: talk about AWX or the Platform, not Tower (#74952) (#75298)
* updates Tower page to talk about RHAAP

* updates scenario guide Tower references

* updates Tower references to use AWX and/or RHAAP

* more scenario guides fixes

* fix CI failures

* Update docs/docsite/rst/porting_guides/porting_guide_2.8.rst

* removes tower link

* for 2.8, still mention Tower along with AWX and RHAAP

* aws guides should be updated in the collection, where they now exist

Co-authored-by: Alicia Cozine <acozine@users.noreply.github.com>
(cherry picked from commit 13c28664ae)

Co-authored-by: Alicia Cozine <879121+acozine@users.noreply.github.com>
3 years ago
Abhijeet Kasurde 7f6415ee14
[bp-2.11] unarchive - do not fail in init when trying to find required binary (#75363)
Test for the required binaries in the can_handle_archive() method and fail there. This
prevents failures for missing binaries unrelated to the archive type.

* Update missing zip binary message to match tar message
* Update unit tests
* Add integration tests
* Define packages based on the system rather than ignoring failures

(cherry picked from commit 004c33d9c5)

Co-authored-by: Sam Doran <sdoran@redhat.com>
3 years ago
Martin Krizek 71a6954b51
Globals should be accessible when importing a template without the context (#75384) (#75409)
Fixes #75371

(cherry picked from commit 5a38076568)
3 years ago
Felix Fontein e2f14d94b8
[2.11] Improve handling of AnsibleModule arguments in validate-modules (#75360)
* Improve handling of AnsibleModule arguments in validate-modules (#75332)

* Make sure AnsibleModule positional arguments are validated.

* Extract ANSIBLE_MODULE_CONSTURCTOR_ARGS with inspection.

* Remove no longer necessary return value.

* Fix PR #.

* argument_spec might not have been specified, as in community.general.xenserver_facts.

* Fix typo.

(cherry picked from commit 7726b70d9a)

* Make sure self doesn't end up in fake.args (#75403)

(cherry picked from commit 2455d82c14)

Co-authored-by: Matt Martz <matt@sivel.net>
3 years ago
Felix Fontein 54119d71f8
Move Docker scenario guide to community.docker. (#74736) (#75294)
The scenario guide has already been added to community.docker in
ansible-collections/community.docker#140

(cherry picked from commit 7f6edd78f9)
3 years ago
Andrew Klychkov b9a5208e38
developing_collections_testing: Fix formatting (#75233) (#75239)
(cherry picked from commit f8bb182589)
3 years ago
Brian Coca d18ac7bdc0
fix ssh cli defaults (#75245) (#75314)
* fix ssh cli defaults (#75245)

* fix ssh cli defaults

  fixes #75221

(cherry picked from commit e5a2fe4c41)

* github conflict?

* removed retries backrpot

  also removed tests since they rely on features that don't exist in this version
3 years ago
Brian Coca b866d6f708
fix: action _fixup_perms2 macos +a remote_paths in list() as it can be a tuple (#74613) (#75336)
* fix: action _fixup_perms2 macos +a remote_paths in list() as it can be tuple

in `lib/ansible/plugin/action/__init__.py`'s `_fixup_perms2`,
`remote_paths` can be a list or tuple. however, the macos
specific attempt to use chmod +a attempts to concatenate
`remote_paths` with a list, which will fail if it is a tuple.
wrapping `remote_paths` in `list()` fixes this error.

* Update changelogs/fragments/74613-actionfixup_perms2_macos_remote_paths_ensure_list.yml

Co-authored-by: Rick Elrod <rick@elrod.me>
(cherry picked from commit df6554c4ec)

Co-authored-by: Shane St Savage <shane@axiomdatascience.com>
3 years ago
Martin Krizek 66ca0abaf4
Ensure Jinja2 template header overrides are used (#75306) (#75342)
Fixes #75275

(cherry picked from commit 767b2f07b0)
3 years ago
Martin Krizek 4078765379
Fix when evaluation on Native Jinja and Python 3.10 (#75202) (#75380)
* Fix when evaluation on Native Jinja and Python 3.10

* Add unit test

* Add explaining comment

* Enable jinja2_native before tests

Co-Authored-By: Matt Martz <matt@sivel.net>

* Sanity

* Return native template module instead of modifying globals

Co-authored-by: Matt Martz <matt@sivel.net>
(cherry picked from commit 58e38044fe)
3 years ago
Sergey da1baaf485 [stable-2.11] Add packaging to requirement of ansible-test (#75356)
* Add packaging to requirement of ansible-test

Fix #75353

After requires_ansible field was added as mandatory to runtime.yml
file, ansible-test fails to check this field if it doesn't have
packaging module.

[1] https://github.com/ansible/galaxy-importer/pull/124
(cherry picked from commit 40ca87a963)

Co-authored-by: Sergey <sshnaidm@users.noreply.github.com>
3 years ago
Rick Elrod 647c1db762 Update Ansible release version to v2.11.3.post0. 3 years ago
Rick Elrod 4cafc937f0 New release v2.11.3 3 years ago
Yanis Guenane b5c9c7d0ea
Update Japanese translation for stable-2.11 (#75246) 3 years ago
Rick Elrod 4d2cdf2ed5 Update Ansible release version to v2.11.3rc1.post0. 3 years ago
Rick Elrod 90c8ab0c8c New release v2.11.3rc1 3 years ago
Sam Doran 78c7721052
[stable-2.11] slurp - improve error code and test coverage (#75038) (#75045)
* Improve the error handling code

Rather than multiple return paths, have a single return and set the message based
on the type of failure.

* Add another test for non-specific failures

* Reorganize tests so failure tests are in one tasks file

* Remove os.stat() call and add changelog.
(cherry picked from commit afe6eb574e)

Co-authored-by: Sam Doran <sdoran@redhat.com>
3 years ago
Sam Doran 420527bebf
[stable-2.11] module_common - handle cache directory creation collision (#75106) (#75132)
* module_common - handle cache directory creation collision

Occasionally multiple workers can try to create the cache directory if it exists. Catch the exception
and handle it.

* Just re-raise if it doesn't exist rather than trying again

* Use exists_ok rather than handling an exception

* Remove unused import and unused variable

* Go back to try/except but with OSError

Since we do not have split controller remote, this needs to be able to run in Python 2 in order
to be merged currently.
(cherry picked from commit 16a74b798c)

Co-authored-by: Sam Doran <sdoran@redhat.com>
3 years ago
Sam Doran 1f4d1dfa0b
[stable-2.11] command - remove unreachable code and achieve full test coverage (#75036) (#75044)
(cherry picked from commit 4ab791d501)
3 years ago
Sam Doran 6d2e8f7729
[stable-2.11] file integration test - cleanup testing users and group (#75037)
(cherry picked from commit 0467b1d477)

Co-authored-by: Sam Doran <sdoran@redhat.com>
3 years ago
Martin Krizek b3115e3c16
2.11: Add support for unicode in ansible-inventory CLI (#74912) (#75008)
(cherry picked from commit 5ac1b04929)
3 years ago
Felix Fontein 36eef4b9f8
Do not show empty version_added_collection values in ansible-doc text output. (#74999) (#75003)
(cherry picked from commit 58450f041a)
3 years ago
Sloane Hertel 35383360d2
Template suboptions in a role's arg spec (#75073) (#75094)
(cherry picked from commit ca6123e0ee)
3 years ago
Gonéri Le Bouder 1b6698aba8
ansible-test: exposes tiny_prefix variable (#75128)
ansible-test aws provider now creates and exposes a new tiny_prefix
variable to provide a shorter prefix for the AWS tests.

(cherry picked from commit 5b8fb4dcd3)
3 years ago
Brian Coca 3b5bc9b3fa
Unfrack extra vars (#75127) (#75148)
* Ensure we keep the original path as per cli

  fixes #75126

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 60c9f045cc)
3 years ago
Sam Doran a2239d8819
[stable-2.11] task_executor - use correct value for ssh connection retries (#75155) (#75191)
Since the task and connection both have the same 'retries' keyword, the task default
would override the connection value.

Do not pass 'retries' from the task to the connection options.

* Set ssh_connection retries default value back to 0
  It was 0 before the move to config and was changed to 3 by accident.
(cherry picked from commit a8de35e131)

Co-authored-by: Sam Doran <sdoran@redhat.com>
3 years ago
Lydie 40ecd27211
Removed Galaxy banner (#75163) (#75217)
(cherry picked from commit 1e00099753)
3 years ago