Commit Graph

51485 Commits (651e69064da49bf970e36df75d1cbaa1df100cc7)
 

Author SHA1 Message Date
Jordan Borean 651e69064d ansible-test pslint - fix warning with nested objects (#75792)
* ansible-test pslint - fix warning with nested objects

(cherry picked from commit 7e19957afa)
3 years ago
Christian M. Adams 7fa59ed674
Update Ansible release version to v2.11.6rc1.post0. 3 years ago
Christian M. Adams d4e1017614
New release v2.11.6rc1 3 years ago
Sandra McCann a20323da3b
config: small typo fix (#74845) (#75864)
(cherry picked from commit 99a983c92c)

Co-authored-by: Boris Korzun <drtr0jan@yandex.ru>
3 years ago
Nathaniel Case a22fb928a5
netconf - handle import error when running in FIPS mode (#73992) (#75706)
* Handle netconf plugin ncclient import error when running in FIPS mode

*  While running in FIPS mode importing ncclient result in
   InternalError raised by cryptography
*  Refer https://github.com/ansible/ansible/pull/65477

(cherry picked from commit d8bf4206e4)

Co-authored-by: Ganesh Nalawade <ganesh634@gmail.com>
3 years ago
Sloane Hertel 4967b8650c
Fix unexpected exception when a role has an empty argument_specs.yml (#75604) (#75684)
* Fix role with empty argument_specs.yml

* Use try/except and add changelog fragment

* Always return a dict

* Add test for empty argument_specs key

(cherry picked from commit 3e7a622204)

Co-authored-by: devon-mar <devon-mar@users.noreply.github.com>
3 years ago
Jordan Borean 15f5886479
PowerShell - Ignore LIB env var when building C# code (#75698) (#75725)
* PowerShell - Ignore environment variables when building C# code

* Just unset LIB for now

* Fix sanity issue

(cherry picked from commit 097bc07b66)
3 years ago
Sloane Hertel d9d5d2d93e
Try all galaxy servers when locating available versions for a collection (#75468) (#75750)
* If an exception occurs when getting a collection's metadata, continue to the next in the server list.

* Warn for unknown exceptions when finding versions of a collection

* Test that an invalid server is no longer fatal if a subsequent server has the collection

* Fix server for verify tests - compare checksums against the server from which it was installed

* Add tests for verify and fix that code path to mirror install/download behavior for server errors

Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
(cherry picked from commit 469b559ebe)
3 years ago
Abhijeet Kasurde afbddce345
[bp-2.11] Update examples/scripts/uptime.py (#75796)
Fixes missing parameter 'verbosity'

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 39a49963b5)
3 years ago
Matt Martz f2b14b9aa3
[stable-2.11] Don't show params when there is an issue with `set_option(s)` (#75805) (#75808)
(cherry picked from commit 79e9dae)

Co-authored-by: Matt Martz <matt@sivel.net>
3 years ago
Christian M. Adams 4737c01acb
Update Ansible release version to v2.11.5.post0. 3 years ago
Christian M. Adams 2fdb9767e9
New release v2.11.5 3 years ago
Christian M. Adams 640063c02d
Update Ansible release version to v2.11.5rc1.post0. 3 years ago
Christian M. Adams 766fcdb493
New release v2.11.5rc1 3 years ago
Brian Coca 6e011d0809
various fixes to command (#74212) (#74257)
* various fixes to command

  - Updated splitter to allow for all expected args in ad-hoc
  - Ensure we always return the returns we promissed to always return (i.e stderr/stdout)
  - Updated docs to clarify creates/removes precdence in checking
  - Removed abspath from chdir to allow reporting to handle symlinks correctly
  - Corrected tests to new output messages

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit b3b1dde648)
3 years ago
Brian Coca 7425bf093d
setup module, dont truncate hpux interfaces (#75423) (#75490)
* setup module, dont truncate hpux interfaces

  fixes #70533

 no hpux to test so relying on man page and users that reported successful testing

(cherry picked from commit 03083c3139)
3 years ago
Brian Coca 9437c6f465
Avoid accessing delegated vars when you dont have a host (#75524) (#75534)
* avoid getting delegated vars w/o inventory host

 fixes #75512

 In the case of imports, we don't have a host, so getting host vars for
 the delegated host makes no sense and should be avoided.

* also avoid error on vars_files with per host vars

* test

* testing given case

* oops

(cherry picked from commit 91319c5cfc)
3 years ago
Brian Coca 49f0d06bd9
adjusted link to the proper branch (#75629) 3 years ago
Sloane Hertel 01f024df79
Fix build_ignore when installing a collection from source (#75547) (#75623)
* Make individual dirs that should exist instead of using shutil.copytree

* Test build_ignore when installing collections in git repos

* changelog

* Fix assertion
Fix git directory

* Fix nested content while building the collection dir

Test installing a collection from a git repo and artifact have the same result

Refactor to use variables

(cherry picked from commit f38a97cece)
3 years ago
Sloane Hertel e4fb928b5f
[2.11] Improve ansible-galaxy error for InconsistentCandidate exception (#75462)
* Improve ansible-galaxy error for InconsistentCandidate exception (#75235)

* Improve error for InconsistentCandidate exceptions

* Add test case for installing a collection with an inconsistent version

* Add test case for installing a collection that has a dependency with an inconsistent version

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
Co-authored-by: Sviatoslav Sydorenko <webknjaz@redhat.com>
(cherry picked from commit e24eb59de5)

* Handle extra stderr for Python 2.7
3 years ago
Akira Yokochi d8c40ae504
fix option name for parsed (#75229) (#75596)
(cherry picked from commit 9af0d91676)
3 years ago
Brian Coca ad4d00e1db
Clarify get_bin_path error message (#75544) (#75564)
(cherry picked from commit 3ca50a2200)
3 years ago
Brian Coca 463cf9fe24
Attributes compat (#75563)
* ignore attributes in output

* ignore 'attributes' for json dump

* actually add file

* clog

* sometimtes its not a dict

* always ignore

* also allow validation to work on newer modules

* remove attributes doc

  let existing overrides display, wont be full info but still pertinent info
  though user will have to check newer versions
3 years ago
Brian Coca 8c105c0f61
validate_args_spec, use combine vars and in precedence (#75471) (#75602)
* combine vars and in correct precedence
* add examples

(cherry picked from commit 2462ec74a0)
3 years ago
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