Commit Graph

48020 Commits (eee4058c7e6ef47c639467f39f102e957a5647b3)
 

Author SHA1 Message Date
Yaakov Selkowitz eee4058c7e
k8s: update openshift requirements in documentation (#70479)
Backport of https://github.com/ansible-collections/community.kubernetes/pull/153
4 years ago
Matt Martz 6b054121d6
[stable-2.9] Use the first galaxy server supporting v1 for roles (#70375) (#70421)
* Use the first galaxy server supporting v1 for roles. Fixes #65440

* Add changelog fragment

* This is best effort, fall back to original behavior if something bad happens
(cherry picked from commit 1f1d6e5)

Co-authored-by: Matt Martz <matt@sivel.net>
4 years ago
Abhijeet Kasurde 6789fa717a
puppet: Fix command line construction (#70463)
Fix command line construction in the puppet module
related to check mode and using manifests directly.

Also, fixes 69ead0ba78 which
introduced another if-statement in the middle of a if/elif pair,
which causes the elif to execute together with the original if
which created '--noop --no-noop' commands.

Fixes: #60576
4 years ago
Martin Krizek 99a37234b7
Fix delegate_facts with interpreter not being set (#70293) (#70385)
Fixes #70168

ci_complete

Co-authored-by: Brian Coca <bcoca@users.noreply.github.com>
Co-authored-by: Matt Clay <matt@mystile.com>
(cherry picked from commit b05e00e99a)
4 years ago
Sloane Hertel c00009bc41
[2.9] Handle post_validate templating errors and add tests (#70240) (#70390)
* Handle post_validate templating errors and fix tests (#70240)

* Handle unexpected templating errors

* Fixes #70050

Fix up tests that weren't running and add tests for graceful templating error handling

(cherry picked from commit 30e70f4b63)

* changelog

ci_complete
4 years ago
Sam Doran 93f2f47d4c
[stable-2.9] Pin psutil version in tests (#70715)
A recent update to psutil introduced a breaking change
4 years ago
haiyuan_zhang a866aa5875
bug fixing in azure_rm_aks.py (#70227) 4 years ago
Abhijeet Kasurde 54787c07f3
[2.9] Fix json callback for non-lockstep strategy plugins such as free. (#70163)
Fixes: #65931

Backport of https://github.com/ansible-collections/ansible.posix/pull/8
4 years ago
Bruno 1465adcb95
nmcli: Add compatibility for new networkmanager library (#65726) (#70152)
Fixes: #48055
* add compatibility for new networkmanager library
* update debian/ubuntu docs
* move import gi into try

(cherry picked from commit 663171e218)

Co-authored-by: Sascha Marcel Schmidt <torvitas@users.noreply.github.com>
4 years ago
GomathiselviS 38eb98bd91
[eos] [2.9] [backport] Turn on eapi by default. (#70119)
* Turn on eapi by default

Signed-off-by: GomathiselviS <gomathiselvi@gmail.com>

* added changelog
4 years ago
Brian Coca caaf295a37
return changed for group_by (#32057) (#69860)
* return changed for group_by

* added tests and fixed 'early registeration'

(cherry picked from commit 22da903e9c)
4 years ago
Sumit Jaiswal 9707efbc9d
backport ios_59 (#69787) 4 years ago
Sam Doran b8cae337cd
[stable-2.9] ansible_runner test - Add constraints (#70667) (#70670)
A recent updated to psutil, which is a dependency of ansible-runner, fails
to install on older versions of pip.

Commit with the breaking change:

  135628639b
(cherry picked from commit 9d27d7c8b1)

Co-authored-by: Sam Doran <sdoran@redhat.com>
4 years ago
Sam Doran f3872c4996 Disable hcloud_server_network test 4 years ago
Matt Clay 8b0484217f [stable-2.9] Default ansible-test provisioning to us-east-1.
Previously windows instances on Shippable would be automatically directed to us-east-2.
(cherry picked from commit 1cf26896c5)

Co-authored-by: Matt Clay <matt@mystile.com>
4 years ago
Abhijeet Kasurde 2a4f98d19f
[2.9] Docs: mention about Ansible workshops (#70378)
Lightbulb is deprecated in favor of https://ansible.github.io/workshops/. Update links accordingly.

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit e4f48c920c)
4 years ago
Matt Clay 3b0e0a8194 Remove Azure module tests from CI. 4 years ago
Rick Elrod 194308ea97 pip tests, use py2 compat sampleproject fork
Change:
- sampleproject has gone py3 only. Use a py2 compatible fork.

Test Plan:
- CI

Signed-off-by: Rick Elrod <rick@elrod.me>
4 years ago
Sumit Jaiswal d672ee1c03
To backport ios_user and ios_command TC failure fix (#70253) 4 years ago
Sandra McCann 3b7f71dfae
adds japanese translation as a version-switcher option (#70214) (#70217)
Co-authored-by: Alicia Cozine <acozine@users.noreply.github.com>
(cherry picked from commit 4a0f42923b)
4 years ago
Sam Doran 89dfe82705
[stable-2.9] Pin version of netaddr in docker_container test (#70210) 4 years ago
Monty Taylor be2a3f520c Add an author exception for OpenStack Ansible SIG
The current author line wants to match a github author id. But
some people, including the OpenStack project, do not use github,
and additionally do not claim individual ownership but instead
group ownership.

Since there are already a couple of hard-coded examples in the
regex, just add one more. Alternately we could come up with some
mechanism to indicate that the author is purposely not listing
a github id, but that seems a bit heavywight.
4 years ago
Matt Clay 8b75da2af2 Fix ansible-test import analysis warning.
Fix overlooked in https://github.com/ansible/ansible/pull/68372/

(cherry picked from commit 77732ed50d)
4 years ago
Matt Clay 75d1213f9a Fix ansible-test change detection traceback.
(cherry picked from commit 53a3d1ffdb)
4 years ago
Matt Clay e80d736869 Fix ansible-test module_utils import analysis.
Now empty `*.py` files are ignored during module_utils import analysis for change detection.
This eliminates "No imports found" warnings for files which should have no imports.

(cherry picked from commit ab27680318)
4 years ago
Matt Clay f4b1604eba Fix ansible-test import analysis for collections. (#68352)
* Fix ansible-test import analysis for collections.

* Ignore plugins/module_utils/__init__.py

(cherry picked from commit 0ca3feb861)
4 years ago
Sam Doran cd7dfcebab [stable-2.9] Pin version of netaddr and jmespath in filters test 4 years ago
Rick Elrod a8900f2b42 Update Ansible release version to v2.9.10.post0. 5 years ago
Rick Elrod 60275fd9b4 New release v2.9.10 5 years ago
Matt Clay 6514ae6c05 Revert "Fix ansible-test module_utils import analysis. (#69406)"
This reverts commit b8808efd26.
5 years ago
Matt Clay a0c02d4c9d Revert "Fix ansible-test import analysis for collections. (#68352) (#69405)"
This reverts commit c333846097.
5 years ago
Matt Clay c8a94d0ad5 Revert "Fix ansible-test change detection traceback."
This reverts commit 58954ab77b.
5 years ago
Jordan Borean 84a60f1883
galaxy - preserve symlinks on build/install (#69959) (#69994)
* galaxy - preserve symlinks on build/install (#69959)

* galaxy - preserve symlinks on build/install

* Handle directory symlinks

* py2 compat change

* Updated changelog fragment

(cherry picked from commit d30fc6c0b3)

* Fix integration test

* ansible-galaxy - fix collection installation with trailing slashes (#70016)

If we fail to find a member when extracting a directory, try adding a trailing
slash to the member name. In certain cases, the member in the tarfile will
contain a trailing slash but the file name in FILES.json will never contain
the trailing slash.

If unable to find the member, handle the KeyError and print a nicer error.

Also check if a directory exists before creating it since it may have been
extracted from the archive.

Fixes #70009

* Add unit tests
* Use loop for trying to get members

(cherry picked from commit d45cb01b84)

Co-authored-by: Sam Doran <sdoran@redhat.com>
5 years ago
Matt Clay 58954ab77b Fix ansible-test change detection traceback.
(cherry picked from commit 53a3d1ffdb)
5 years ago
Martin Nečas b0c7cdc60d
Backport: ovirt_disk fix activate (#70114)
* Backport: ovirt_disk fix activate

* add changelog
5 years ago
Nilashish Chakraborty 6967811560
Fix for https://github.com/ansible-collections/cisco.nxos/issues/46 (#70093)
Reviewed-by: https://github.com/apps/ansible-zuul
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>

Add changelog

Co-authored-by: Suhas Bharadwaj <subharad@cisco.com>
5 years ago
Martin Krizek 055a24c027
yum/dnf: check type of elements in a name (#70072) (#70089)
(cherry picked from commit 843751a00d)
5 years ago
Abhijeet Kasurde f79c606aae
copy: ensure _original_basename is set (#70088)
* added changelog fragment
* added quick and basic test
* Revert "added quick and basic test"
* This reverts commit 75f4141656.
* added better tests
* now also creating files to copy on the remote
* removed tests for recursive copying which is not supported by remote_src

Fixes: #47050

(cherry picked from commit 79dfae9624)

Co-authored-by: Moritz Grimm <memo42@users.noreply.github.com>
5 years ago
Nilashish Chakraborty 7b1e2d7176
Backport nxos_file_copy fixes (#70075)
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
5 years ago
Sloane Hertel 1f3185d3eb
Allow tasks to notify a fqcn handler name (#68213) (#70074)
* Allow tasks to notify a fqcn handler name

* Add tests. Fixes #68181

* Add changelog fragment

* Add test to ensure handlers are deduped properly with fqcn, role, and just handler names

* Add some docs about new special vars

(cherry picked from commit 087be1da50)

Co-authored-by: Matt Martz <matt@sivel.net>
5 years ago
Hideki Saito b8a81973ee
Backport of dnf module logging (#69480) (#70066)
Signed-off-by: Hideki Saito <saito@fgrep.org>
5 years ago
Brian Coca e0322a0420
implemented 'prefix' for file based cache (#69872) (#70008)
* implemented 'prefix' for file based cache

Co-authored-by: s-hertel <shertel@redhat.com>
(cherry picked from commit ebb22655e4)
5 years ago
Martin Krizek 2cba0dc75c
Do not keep empty blocks after tag filtering (#69987) (#69999)
This prevents PlayIterator having to go through empty blocks
that were created in filter_tagged_tasks. This should
be a performance improvement for playbooks that mostly skip
tasks with tags.

ci_complete

(cherry picked from commit ac20466375)
5 years ago
Brian Coca 94df27233f
fixed missing default (#69972) (#69985)
* fixed missing default (#69972)

* fixed missing default

 also deprecated so new options wont have to go through this

(cherry picked from commit 805dff4129)

* remove deprecation
5 years ago
Lauri Tirkkonen 074ddace35
zfs_delegate_admin: add diff,hold,release to list of permissions (#69962)
Co-authored-by: Lauri Tirkkonen <lauri@tuxera.com>
5 years ago
Martin Nečas 34e804a4f2
Backport: ovirt_disk force wait when uploading disk (#69943)
* ovirt_disk: force wait when uploading disk

* add changelog
5 years ago
Martin Nečas 23761b9880
Backport: ovirt_vm fix cd_iso search by name (#69941)
* ovirt_vm: fix cd_iso search by name

* fix pylint

* add changelog
5 years ago
Abhijeet Kasurde 5ee9072613
[2.9] Handle set object retrieved from lookup plugin (#69901)
self.client.resources.api_groups is a dict_keys and is not
handled correctly by default callback plugin while JSON serialization.

This fix will typecast it to list so that it can be JSON serialized for
further processing.

Fixes: ansible-collection/community.kubernetes#111

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
5 years ago
Alex Schultz a5c85b477b
Fix IncludedFile equality check (#69524) (#69885)
In the case of a free style strategy, it is possible to end up with
multiple hosts trying to include from the same role, however the tasks
being included may be different with the use of tasks_from.  Previously
if you had two hosts that were included the same role when the
process_include_results function tries to determine if a included needs
to be run on a specific host, it would end up merging two different
tasks into which ever one was processed first.

This change updates the equality check to also check if the task uuid
associated with the IncludedFile is the same. The previous check only
checked if the task's parent uuid was the same. This breaks down when
both includes have the same parent.

    - hosts: all
      strategy: free
      gather_facts: false
      tasks:
        - include_role:
            name: random_sleep
        - block:
          - name: set a fact (1)
            include_role:
              name: set_a_fact
              tasks_from: fact1.yml
          - name: set a fact (2)
            include_role:
              name: set_a_fact
              tasks_from: fact2.yml
        - name: include didn't run
          fail:
            msg: >
              set_a_fact didn't run
              fact1: {{ fact1 | default('not defined')}}
              fact2: {{ fact2 | default('not defined') }}"
          when: (fact1 is not defined or fact2 is not defined)

Closes #69521

(cherry picked from commit 247e43b252)
5 years ago
Jill R c51ce1e47c
Add mod_defaults for AWS collections (#69818)
We need to be able to add 2.9 CI jobs for AWS collections. Modules added
during the 2.10 dev cycle will need mod default entries to support test suites
5 years ago