Compare commits

...

938 Commits

Author SHA1 Message Date
4b9308bd29 New release v2.8.16 2020-10-05 16:01:30 -05:00
f66f05f4bb [tests] Try re-enabling hcloud (#72034)
Change:
- See if they have fixed their issues yet.

Test Plan:
- CI

Signed-off-by: Rick Elrod <rick@elrod.me>
2020-10-01 12:53:22 -05:00
b926f73309 [tests] --no-use-pep517 in kubevirt_conformance (#72016)
Change:
- This enables the inventory_kubevirt_conformance test to pass again on
  freebsd.
- This was due to a google-auth version bump. The dep chain looks like
  this: openshift -> kubernetes -> google-auth -> aiohttp -> multidict

Test Plan:
- ansible-test integration inventory_kubevirt_conformance --remote
  freebsd/12.0

Signed-off-by: Rick Elrod <rick@elrod.me>
2020-09-30 10:46:11 -05:00
aac6ed13e6 [stable-2.8] Disabled inconsistent pylint checks..
(cherry picked from commit 8152d8bc1a)

Co-authored-by: Matt Clay <matt@mystile.com>
2020-09-29 09:30:25 -07:00
1781285ceb Update Ansible release version to v2.8.16rc1.post0. 2020-09-28 14:51:31 -05:00
d2f85078b1 New release v2.8.16rc1 2020-09-28 12:17:31 -05:00
ed4db892d3 add CVE ref to kubectl changelog fragment (#71985)
Signed-off-by: Rick Elrod <rick@elrod.me>
2020-09-28 12:10:48 -05:00
b8f6c2d4b9 [stable-2.8] CI provider fixes for ansible-test. (#71929) (#71934)
* Make Azure Pipelines resource_prefix lowercase.

* Make classification of CI files consistent.

* Update package-data sanity test for AZP..
(cherry picked from commit 92b66e3e31)

Co-authored-by: Matt Clay <mclay@redhat.com>
2020-09-28 11:19:08 -05:00
15fe8c0239 [2.9] kubectl: redacted token and password from console log (#71971)
** SECURITY_FIX ** for CVE-2020-1753

kubectl connection plugin now redact kubectl_token and
kubectl_password from console log.

Fixes: ansible-collections/community.kubernetes#65

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-09-28 00:24:38 -05:00
f3d3c43c00 [tests] disable hcloud for now
Signed-off-by: Rick Elrod <rick@elrod.me>
2020-09-26 03:39:08 -05:00
97c4064b87 [2.8] [tests] uninstall docker stuff for podman
Change:
- This isn't a direct backport of #71949 because in stable-2.8,
  setup_docker doesn't use handlers like more modern branches to clean
  up after itself.
- Instead, here we just make sure the docker packages are gone before
  the podman test runs.

Test Plan:
- CI
- ci_complete

Signed-off-by: Rick Elrod <rick@elrod.me>
2020-09-26 03:39:08 -05:00
2953544616 [backport][2.8] remove github link from plugins (#70951) (#71915)
* remove github link from plugins (#70951)

(cherry picked from commit e28b20d729)

* remove cli section
2020-09-24 14:07:53 -05:00
67cd27400a [2.9] Redirect inventory script links (#71732) (#71862)
(cherry picked from commit ef5f2c35ee)
2020-09-24 13:36:05 -05:00
4616b3bbac [incidental_setup_docker] changes to upstream repo (#71897) (#71901)
Change:
- The docker-ce.repo file for centos does not work on RHEL since it uses
  $releasever and on RHEL that is, e.g., "7Server".
- Instead, set up the repo manually.
- Additionally, the docker centos8 repo no longer has old versions, so
  we use the (only) version in the repo instead.

Test Plan:
- CI

Signed-off-by: Rick Elrod <rick@elrod.me>
(cherry picked from commit 31ddca4c0d)
(cherry picked from commit 651c0a2d03)
2020-09-23 21:36:46 -05:00
8ceb36098d update version switcher for 2.10 release (#71869)
(cherry picked from commit bf4e102d97)
2020-09-22 14:25:53 -05:00
e35aafa81c [stable-2.8] Fix attribute testing in file integration test. (#71843)
The file test will no longer attempt to test attributes if `lsattr -vd` does not work on the system under test.
(cherry picked from commit 17765cd4e8)

Co-authored-by: Matt Clay <mclay@redhat.com>
2020-09-21 15:06:42 -07:00
caf82158d0 [stable-2.8] openssl_privatekey test - Add pause for macOS
The stat time granularity on macOS is one second. We recently upgraded
to faster macOS hosts, so some tests that run closely together to see if
something changed will have the same timestamp intermittently.
2020-09-18 13:16:06 -07:00
81f660f606 [stable-2.8] incidental_setup_openssl - Pin version of Python packages
A recent update to cffi that was yanked is still being installed on our
Mac OS X 10.11 test image since the version of pip there is very old and
does not ignore yanked packages.

Pin the version of pyOpenSSL and its dependencies to fix this and avoid
future spontaneous failures..
(cherry picked from commit 65cdb86c8a)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2020-09-17 08:45:31 -07:00
9a5999aa7e Backport documentation correction (#71633)
* Remove "mode: preserve" option from documentation #71486

(cherry picked from commit 7127d37466)
2020-09-09 11:47:23 -05:00
909ac41247 [stable-2.8] Backport ansible-test CI provider support. (#71625)
* Add types.py from devel to support backport.

* [stable-2.9] Backport ansible-test CI provider support. (#71614)

* Add encoding.py from devel to support backports.

* Add io.py from devel to support backports.

* Update ansible-test support for CI providers. (#69522)

Refactored CI provider code to simplify multiple provider support and addition of new providers.

(cherry picked from commit d8e0aadc0d)

* Add Shippable request signing to ansible-test. (#69526)

(cherry picked from commit e7c2eb519b)

* ansible-test local change detection: use --base-branch if specified (#69508)

(cherry picked from commit 43acd61901)

* Add Azure Pipelines support to ansible-test.

(cherry picked from commit 8ffaed00f8)

* Update ansible-test remote endpoint handling. (#71413)

* Request ansible-core-ci resources by provider.
* Remove obsolete us-east-2 CI endpoint.
* Add new --remote-endpoint option.
* Add warning for --remote-aws-region option.
* Update service endpoints.
* Allow non-standard remote stages.
* Add changelog fragment.

(cherry picked from commit d099591964)

* Fix ansible-test coverage traceback. (#71446)

* Add integration test for ansible-test coverage.

* Fix ansible-test coverage traceback.

* Fix coverage reporting on Python 2.6.

(cherry picked from commit f5b6df14ab)

* Use new endpoint for Parallels based instances.

(cherry picked from commit 98febab975)

* Add pause to avoid same mtime in test.

(cherry picked from commit 3d769f3a76)

Co-authored-by: Felix Fontein <felix@fontein.de>

(cherry picked from commit 417e408f59)
2020-09-03 18:42:38 -07:00
04ff489698 Update Ansible release version to v2.8.15.post0. 2020-09-01 01:13:11 -05:00
01d9ef008b New release v2.8.15 2020-08-31 20:13:44 -05:00
83eda14330 [tests] fix fallout from dnf gpg fix (#71550)
Change:
- Missed needed gpg ignores

Test Plan:
- CI

Signed-off-by: Rick Elrod <rick@elrod.me>
2020-08-31 20:09:30 -05:00
69827e0894 Re-add changelogs and add docs for CVE-2020-1736 reverts [2.8] (#71516)
Signed-off-by: Rick Elrod <rick@elrod.me>
Co-authored-by: Alicia Cozine <879121+acozine@users.noreply.github.com>
Co-authored-by: Sam Doran <sdoran@redhat.com>
2020-08-31 15:42:11 -05:00
a0ddefde38 Fix inventory_kubevirt_conformance test (#71545) 2020-08-31 15:28:50 -05:00
1fa2d5fd6b [dnf] ensure packages are gpg-verified (#71541)
Change:
- By default the dnf API does not gpg-verify packages. This is a feature
  that is executed in its CLI code. It never made it into Ansible's
  usage of the API, so packages were previously not verified.
- This fixes CVE-2020-14365.

Test Plan:
- New integration tests

Signed-off-by: Rick Elrod <rick@elrod.me>
2020-08-31 10:05:42 -05:00
53be4cc03d point all older release pages to devel (#71428) (#71471)
(cherry picked from commit 3be597419d)
2020-08-27 10:20:12 -05:00
555b1fdd7a tests: Use hg serve instead of bitbucket for hg (#71403)
Change:
- Uses `hg serve` instead of a bitbucket repo for hg tests
- bitbucket no longer serves hg

Backport of #71398

Test Plan:
- CI, fixed integration tests

Signed-off-by: Rick Elrod <rick@elrod.me>
2020-08-21 13:48:07 -05:00
eddb0920e4 Revert "[stable-2.8] Cap pytest version to avoid relative import issue."
This reverts commit 9c5663699f.
2020-08-18 11:45:26 -07:00
c6eff6bdb2 Revert "[stable-2.8] Change default file permissions so they are not world readable (#70221) (#70827)" (#71233)
This reverts commit 11738aed97.
2020-08-12 12:29:22 -05:00
8ba8a41b95 Update Ansible release version to v2.8.14.post0. 2020-08-10 22:41:25 -05:00
c404bd75ff New release v2.8.14 2020-08-10 20:30:00 -05:00
eb1114a1b1 [tests] pin docker to <4.3.0 (#71193)
Change:
- New python docker lib wants a newer docker than we have in CI.

Test Plan:
- CI

Signed-off-by: Rick Elrod <rick@elrod.me>
2020-08-10 18:21:29 -05:00
f35e825440 [2.8] Sanitize URI module keys with no_log values (#70762) (#70822)
* Sanitize URI module keys with no_log values (#70762)

* Add sanitize_keys() to module_utils.

* More robust tests

* Revert 69653 change

* Allow list or dict

* fix pep8

* Sanitize lists within dict values

* words

* First pass at uri module

* Fix insane sanity tests

* fix integration tests

* Add changelog

* Remove unit test introduced in 69653

* Add ignore_keys param

* Sanitize all-the-things

* Ignore '_ansible*' keys

* cleanup

* Use module.no_log_values

* Avoid deep recursion issues by using deferred removal structure.

* Nit cleanups

* Add doc blurb

* spelling

* ci_complete

(cherry picked from commit bf98f031f3)

* update changelog for security_fixes

* Update 70762-sanitize-uri-keys.yml

Co-authored-by: Rick Elrod <rick@elrod.me>
2020-08-07 16:57:50 -05:00
d73793fac7 Update integration tests to support rpmfluff-0.6 (#71155) (#71161)
Co-authored-by: Matt Martz <matt@sivel.net>
2020-08-07 14:52:26 -05:00
291f94934c copy - redact 'content' from invocation in check mode (#71033) (#71069)
* sanitize copy module invocation secrets in check mode

(cherry picked from commit 991714b9d1)
2020-08-07 12:10:43 -05:00
11738aed97 [stable-2.8] Change default file permissions so they are not world readable (#70221) (#70827)
* [stable-2.8] Change default file permissions so they are not world readable (#70221)

* Change default file permissions so they are not world readable

CVE-2020-1736

Set the default permissions for files we create with atomic_move() to 0o0660. Track
which files we create that did not exist and warn if the module supports 'mode'
and it was not specified and the module did not call set_mode_if_different(). This allows the user to take action and specify a mode rather than using the defaults.

A code audit is needed to find all instances of modules that call atomic_move()
but do not call set_mode_if_different(). The findings need to be documented in
a changelog since we are not warning. Warning in those instances would be frustrating
to the user since they have no way to change the module code.

- use a set for storing list of created files
- just check the argument spac and params rather than using another property
- improve the warning message to include the default permissions.
(cherry picked from commit 5260527c4a)

Co-authored-by: Sam Doran <sdoran@redhat.com>

* Fix service test

* Fix lamdba_policy test

* Fix aws_lamdba test

* Fix warning for new default permissions when mode is not specified (#70976)

Follow up to #70221
Related to #67794
CVE-2020-1736

When set_mode_if_different() is called with mode of 'None', ensure we issue
a warning about the change in default permissions.

Add integration tests to ensure the warning works properly.

* Fix tests
- actually use custom module 🤦‍♂️
- verify file permission on created files
- use remote_tmp_dir so we're ready for split controller
- improve test module so we can skip the call to set_fs_attributes_if_different()
- fix tests for CentOS 6

(cherry picked from commit dc79528cc6)

* Use new category in changelog fragments
2020-08-06 19:03:48 -05:00
b95e520602 [stable-2.8] Drop "rhui-" prefix from RHEL repositories in AMI (#71130) (#71133)
The repository names seem to have changed and no longer have the "rhui-" prefix.
(cherry picked from commit 6ac4439a6a)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2020-08-06 18:17:52 -05:00
7b8a66f284 [2.8] debconf: add a note about no_log usage (#70755)
debconf module exposes sensitive information to logs, console.
Add a note to user about using no_log=True to hide such
information from console.

Fixes: #32386

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 84b4387702)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 9b9bc112d5)
2020-08-06 15:55:48 -05:00
f6d5d548b7 Add ansible-releases@redhat.com to announce template (#70815)
Signed-off-by: Rick Elrod <rick@elrod.me>
2020-08-06 12:38:37 -05:00
d1b2f66e16 backport of PRs 64763 and 70849 (#71098)
Co-authored-by: Alicia Cozine <acozine@users.noreply.github.com>
2020-08-06 10:05:05 -05:00
8ec313a107 use security_fix category in changelogs (#71072)
(cherry picked from commit 3d5217b6d5)

Co-authored-by: Alicia Cozine <acozine@users.noreply.github.com>
2020-08-03 14:55:25 -05:00
9c5663699f [stable-2.8] Cap pytest version to avoid relative import issue.
(cherry picked from commit 3a8ac62596)

Co-authored-by: Matt Clay <matt@mystile.com>
2020-07-28 17:14:37 -07:00
eb7597c5cb [stable-2.8] Pin psutil version in pids test (#70716) 2020-07-17 15:58:00 -05:00
9d7594c627 [stable-2.8] ansible_runner test - Add constraints (#70667) (#70671)
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>
2020-07-15 17:39:23 -05:00
00db64d370 Update Ansible release version to v2.8.13.post0. 2020-07-14 18:18:55 -05:00
0c89598b8a New release v2.8.13 2020-07-14 16:43:19 -05:00
bff0724e9e [2.8] pipe: update docs for Popen with shell=True usage (#70604)
pipe lookup plugin uses Popen with shell=True intentionally.
This is considered a security issue if user input is not validated.
Updated docs to reflect this information for the user. Also, added
Bandit B602 documentation link for further reading.

Fixes: #70159

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit e5649ca3e8)
2020-07-13 13:01:07 -07:00
97d8a5d160 Remove deprecation for TRANSFORM_INVALID_GROUP_CHARS (#66650) (#69488)
Fixes #61889

(cherry picked from commit 6086ea62ee)
2020-07-13 12:59:59 -07:00
0f96e7e4cf [stable-2.8] 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>
2020-07-07 15:19:08 -07:00
9fa105f183 Remove Azure module tests from CI. 2020-06-30 15:10:07 -07:00
0923e156c1 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>
2020-06-26 09:04:03 -07:00
0b41e9b2f0 adds japanese translation as a version-switcher option (#70214) (#70216)
Co-authored-by: Alicia Cozine <acozine@users.noreply.github.com>
(cherry picked from commit 4a0f42923b)
2020-06-22 15:53:50 -05:00
b354b66c4b [stable-2.8] Pin version of netaddr and jmespath in filters test 2020-06-19 09:23:56 -07:00
14bcd3b7a3 yum - fix bug where enablerepo is not honored when disablerepo all (#66557) (#70085)
Fixes #66549

The inefficiency improvement
https://github.com/ansible/ansible/pull/63713 introduced a bug where
`enablerepo` was not being honored if combined with
`disablerepo="*"`. This fixes that issue.

Signed-off-by: Adam Miller <admiller@redhat.com>

Co-authored-by: Adam Miller <admiller@redhat.com>
2020-06-15 20:51:07 -05:00
a0f80fc2da Fix documentation of docker_host_info (it does not delete). (#69746) 2020-05-28 15:10:16 -05:00
47256e921c [stable-2.8] Pin Docker version at 19.03.1 (#69635) (#69646)
* [stable-2.8] Pin Docker version at 19.03.1
(cherry picked from commit fe941a4045)

Co-authored-by: Sam Doran <sdoran@redhat.com>

* [stable-2.8] Pin docker-ce-cli version in tests (#69620)

Installing docker-ce has a dependency of docker-ce-cli. If the version of docker-ci-cli is not specified, it installs the latest version.

(cherry picked from commit 889da811d7)
2020-05-21 13:27:31 -07:00
60a6f5905f Update Ansible release version to v2.8.12.post0. 2020-05-12 08:32:00 -07:00
f2c259b152 New release v2.8.12 2020-05-11 16:31:14 -07:00
4cdbcc4ed9 Disable failing azure_rm_dnszone test.
The module requires updates to work with the current Azure API.
2020-05-07 22:32:19 -07:00
85dfb1f49a Fix win_psmodule and win_psrepository tests 2020-05-06 20:39:47 -07:00
bdc4c2a1c2 redfish_config: fix support for boolean BIOS attributes
Backport of ansible-collections/community.general#189 to stable-2.8

Currently the redfish_config module will convert boolean bios_attribute_value
settings to strings (type str). This will cause BMCs expecting booleans to
error out.

This PR will change the default type of bios_attribute_value to 'raw' in order
to support strings and booleans.

Fixes #68251
2020-05-05 19:33:42 -07:00
e60adefb46 mysql_user: fix error No database selected 2020-05-05 19:27:58 -07:00
7b50ca633f [2.8] Docs: point inventory script to respective version
With collections migration, inventory scripts are moved from devel (2.10).
Point docs for inventory script to their respective version.

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-05-05 19:26:10 -07:00
e022b0d578 Add RHEL 8.2 to CI
Change:
RHEL 8.2 GA was released this week, test it in CI instead of 8.1.

Test Plan:
CI

Signed-off-by: Rick Elrod <rick@elrod.me>
2020-04-30 14:58:37 -07:00
94751ef971 Enable dnf integration tests on CentOS 8
Change:
We were only testing dnf on RHEL previously.
Test on CentOS 8 as well.

Test Plan:
Ran locally in docker.

Signed-off-by: Rick Elrod <rick@elrod.me>
2020-04-30 14:58:37 -07:00
75c5c543cb [dnf] Make behavior/errors compatible for new DNF
Change:
Extend the logic for custom error handling in the dnf module, so that on
newer DNF (such as DNF that ships with modern Fedora 31 container
images, and ships with RHEL 8.2) we report errors consistently with
older DNF.

Test Plan:
Ran dnf integration tests against an old Fedora 31 container image and a
brand new Fedora 32 container image; tess passed on both.

Signed-off-by: Rick Elrod <rick@elrod.me>
2020-04-30 14:58:37 -07:00
273d8538db document danger of kubectl options (#68195) 2020-04-21 11:45:43 -07:00
40969ff438 Fix incorrect CVE reference in changelog fragment
Change:
This corrects an incorrect CVE identifier in the changelog entry for
CVE-2020-1735.

Test Plan:
N/A

Tickets:
Refs #67793, #68720

Signed-off-by: Rick Elrod <rick@elrod.me>
2020-04-21 11:43:32 -07:00
d9d236ff56 [stable-2.8] pip - Fix check_mode for prerelease packages (#68690)
* pip - Fix check_mode for prerelease packages

Fixes #68592.

Signed-off-by: Rick Elrod <rick@elrod.me>
Co-authored-by: Matt Martz <matt@sivel.net>
(cherry picked from commit 82c60db49b)

Co-authored-by: Rick Elrod <rick@elrod.me>
2020-04-21 11:31:23 -07:00
b02a996936 Update Ansible release version to v2.8.11.post0. 2020-04-16 20:04:47 -07:00
b9ebc0ceef New release v2.8.11 2020-04-16 16:33:11 -07:00
6f75aa2664 fixed fetch traversal from slurp (#68720)
* fixed fetch traversal from slurp

  * ignore slurp result for dest
  * fixed naming when source is relative
  * added tests with fake slurp
  * moved existing role tests into runme.sh
  * normalized on action excepts
  * moved dest transform down to when needed
  * added is_subpath check

fixes #67793

CVE-2019-3828

(cherry picked from commit ba87c225cd)
2020-04-15 12:47:45 -07:00
2a563514f0 safely use vault to edit secrets (#68644)
* when possible, use filedescriptors from mkstemp to avoid race
  * when using path strings, ensure we are always creating the file

CVE-2020-1740
Fixes #67798

Co-authored-by: samdoran
(cherry picked from commit 28f9fbdb5e)
2020-04-15 12:41:33 -07:00
e6199d768c [2.8] CVE-2020-1746 - Remove the params module option from ldap_attr and ldap_entry (#68715)
* Remove the params module option from ldap_attr and ldap_entry

Module options that circumvent Ansible's option handling were disallowed
in:
https://meetbot.fedoraproject.org/ansible-meeting/2017-09-28/ansible_dev_meeting.2017-09-28-15.00.log.html

Additionally, this particular usage can be insecure if bind_pw is set
this way as the password could end up in a logfile or displayed on
stdout.

Fixes CVE-2020-1746

(cherry picked from commit 0ff609f1bc)

* Fix formatting for option names

Co-Authored-By: Felix Fontein <felix@fontein.de>

* Fix fail_json

* update sanity

* fix indentation error

Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2020-04-14 19:27:12 -07:00
5eabf7bb93 prevent ansible_facts injection (#68431) (#68445)
* prevent ansible_facts injection (#68431)

- also only replace when needed
 - switched from replace to index
 - added test to verify bogus_facts are not accepted

CVE-2020-10684

(cherry picked from commit a9d2ceafe4)

* added to ignore
2020-04-14 19:14:08 -07:00
e1273b6faf fix vault temp file handling (#68433)
* fix vault tmpe file handling

 * use local temp dir instead of system temp
 * ensure each worker clears dataloader temp files
 * added test for dangling temp files
 * added notes to data loader

CVE-2020-10685

(cherry picked from commit 6452a82452)
2020-04-14 18:48:12 -07:00
6c74a29870 subversion module - provide password securely when possible or warn (#67829)
* subversion module - provide password securely with svn command line option --password-from-stdin when possible, and provide a warning otherwise.
* Update lib/ansible/modules/source_control/subversion.py.
* Add a test.

Co-authored-by: Sam Doran <sdoran@redhat.com>
(cherry picked from commit d91658ec0c)
2020-04-14 18:42:03 -07:00
0e433f3d8f [backport/2.8/63280] acl: fix module failure if there're spaces in a path (#63280) (#63809)
* acl: fix module failure if there're spaces in a path (#63280)

* Make acl module to work with whitespaces in path

* Added a changelog fragment

* Add quotes to changelog fragment

(cherry picked from commit 504d76e956)

* Fix tests
2020-04-14 17:41:53 -07:00
75a28fe35f [stable-2.8] Always set the discovered interpreter on the delegated host (#64906)
* Always set the discovered interpreter on the delegated host. Fixes #63180

* Make code a little more generic

* Move code into a function

* Implement some changes based on reviews

* Add changelog fragment
(cherry picked from commit 123c624)

Co-authored-by: Matt Martz <matt@sivel.net>
2020-04-14 17:03:29 -07:00
8251d9f4c2 avoid mkdir -p (#68921) (#68927)
* avoid mkdir -p (#68921)

* also consolidated temp dir name generation, added pid for more 'uniqness'
* generalize error message
* added notes about remote expansion

CVE-2020-1733
fixes #67791

(cherry picked from commit 8077d8e401)

* C
2020-04-14 16:46:45 -07:00
a46a9b8fac win_unzip - normalize and compare paths to prevent path traversal (#67799)
* Actually inspect the paths and prevent escape
* Add integration tests
* Generate zip files for use in integration test
* Adjust error message

(cherry picked from commit d30c57ab22)
2020-04-14 12:55:40 -07:00
0a8d8b5c98 Disable failing azure_rm_cosmosdbaccount test. 2020-04-09 17:50:37 -07:00
191a17a67f [stable-2.8] Update tests to use RHEL 7.8. (#68787)
* Update tests to use RHEL 7.8.

Keeping support for RHEL 7.6 since collections are still using it.

* Fix tests for RHEL 7.7+ due to extras repo name change..
(cherry picked from commit 04edd77c42)

Co-authored-by: Matt Clay <mclay@redhat.com>
2020-04-09 01:53:37 -07:00
0e2e863f5c Fix win_psrepository tests
Backport of a5414cb0e4

Signed-off-by: Rick Elrod <rick@elrod.me>
2020-04-09 00:32:22 -07:00
66cc931f0d OpenSUSE15.1 container image + necessary test changes (2.8 edition) (#68794)
* add changelog fragment

Signed-off-by: Rick Elrod <rick@elrod.me>

* Update changelogs/fragments/ansible-test-opensuse-15.1.yml

Co-Authored-By: Matt Clay <matt@mystile.com>

* handle installing mysql on suse

Signed-off-by: Rick Elrod <rick@elrod.me>

* attempt to get tests passing again

Signed-off-by: Rick Elrod <rick@elrod.me>

* Update docker.txt to use the OpenSUSE 15.1 container image

Signed-off-by: Rick Elrod <rick@elrod.me>

Co-authored-by: Matt Clay <matt@mystile.com>
2020-04-09 00:30:26 -07:00
18a2183a0b Backport of ansible-collections/community.crypto@28827db5d9 (#68631) 2020-04-03 14:15:42 -05:00
dd0b031a71 Update Ansible release version to v2.8.10.post0. 2020-03-05 13:50:25 -08:00
27d32fb88c New release v2.8.10 2020-03-05 11:08:39 -08:00
6883e0cc92 Add changelog entry for #68043 2020-03-05 10:31:04 -08:00
285ddf463e OpenStack: ensure min_version is a string
https://github.com/ansible/ansible/pull/67577/files broke OpenStack
modules in Ansible 2.8.9. The problem is that min_version should be a
string, since it is passed to StrictVersion(). However, after that
change min_version ends up as a StrictVersion. This causes a TypeError
when later used to instantiate another StrictVersion:

    TypeError: expected string or buffer

This change fixes the issue by ensuring min_version is a string. This
change is not required on other branches since the relevant code was
applied only in the 2.8 backport.

Fixes: #68042
2020-03-05 10:00:30 -08:00
668cdc3ce8 New release v2.8.9 2020-03-04 18:26:07 -08:00
a824c02ae4 Backport of 66995: mysql_user doesnt support privileges with underscore (#66999)
* Backport of 66995: mysql_user doesnt support privileges with underscore

* fix
2020-03-03 19:16:35 -08:00
9e4bd9b08b [stable-2.8] openssl_* modules: prevent crash on fingerprint determination in FIPS mode (#67515)
* openssl_* modules: prevent crash on fingerprint determination in FIPS mode.

* Add changelog.
(cherry picked from commit ca57871954)

Co-authored-by: Felix Fontein <felix@fontein.de>
2020-03-03 18:55:13 -08:00
25e30573f4 win_unzip - LiteralPath fix (#66972)
* win_unzip - LiteralPath fix

* Fix up Python sanity issues

(cherry picked from commit 2a9ec8975f)
2020-03-03 18:52:15 -08:00
dfccf18d03 Fix user_agent string not getting set
(cherry picked from commit cb9e24fbd2)
2020-03-02 16:32:41 -08:00
22dd4e113d win_uri: fix up tests (#67064)
(cherry picked from commit 3ada0b2f65)
2020-03-02 16:32:13 -08:00
e3aa8a997e line indentation issue in postgresql_set (#67859)
Fixed indentation issue with the `register` for the example task in postgresql_set module.
(cherry picked from commit b437167671)
2020-03-02 16:31:53 -08:00
8fd095377a [stable-2.8] tests: ipify_facts: retry on fail (#66897)
(cherry picked from commit 91063f40d6)

Co-authored-by: Rene Moser <mail@renemoser.net>
2020-03-02 16:29:31 -08:00
e9a190e9c1 [backport 2.8] Bump min openstacksdk version for os_network/port_security_enabled
To make use of the port_security_enabled [a] parameter, [b] needs
to be present in the openstacksdk or the os_network module will
return an error like:

TypeError: create_network() got an unexpected keyword argument 'port_security_enabled'

To handle this, we fail the module if one of the arguments are used
and the minimum openstacksdk version for that argument is not met.

[a] eaf238b033
[b] 8eb788af07

Backport-of: https://review.opendev.org/708119
Fixes: #62062
2020-03-02 15:54:30 -08:00
b4614c949e Make nios_txt_record use text field for object lookup
Up until now, nios_txt_record assumed that the name and view
parameters uniquely described a TXT record. What this meant is that it
was impossible to have more than one TXT record with a certain name.

Changes in this commit expands the set of parameters that uniquely
identify the TXT record with a text field.
2020-03-02 13:17:54 -08:00
fc6e715e38 postgresql_info module: fix broken link (#67517) (#67522)
(cherry picked from commit 5a7c58b2be)
2020-02-18 09:49:01 -06:00
76fff030a8 [stable-2.8] Remove Tower module tests from CI. (#67368) (#67372)
* [stable-2.8] Remove Tower module tests from CI. (#67368)

* Remove Tower module tests from CI.

The required AMIs are no longer available.

* Mark Tower tests as unsupported..
(cherry picked from commit b041d96762)

Co-authored-by: Matt Clay <mclay@redhat.com>

* Mark tower_common unsupported.
2020-02-12 22:14:14 -08:00
70b577ab09 Docs: improve anchors vs. header bar (#67244) (#67319)
(cherry picked from commit fd43619f1a)
2020-02-11 15:36:57 -06:00
5e411807e7 [stable-2.8] ansible-test - add constraint for virtualenv (#67289)
* ansible-test - add constraint for virtualenv

* Limit virtualenv only on macOS.

Co-authored-by: Matt Clay <matt@mystile.com>
(cherry picked from commit 8f296a6533)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2020-02-10 18:01:55 -08:00
6f5c94ffea [stable-2.8] Add constraints for Jinja2 on Python 2.6. (#66826)
* Add constraint for Jinja2 on Python 2.6.

* Fix constraint in inventory_aws_conformance test.

* Add constrraints for template_jinja2_latest test.
(cherry picked from commit 965854fbd2)

Co-authored-by: Matt Clay <matt@mystile.com>
2020-01-27 15:55:57 -08:00
cb54c7c3b1 Update Ansible release version to v2.8.8.post0. 2020-01-15 15:22:34 -08:00
d28e4b63c7 New release v2.8.8 2020-01-15 15:04:55 -08:00
2d2c841ded [stable-2.8] Ignore warnings in ansible-test environment check.
(cherry picked from commit 3db1ac4f56)

Co-authored-by: Matt Clay <matt@mystile.com>
2020-01-14 08:50:37 -08:00
2cd12efdb7 Remove Server 2008 from CI 2020-01-14 00:02:30 -08:00
6af5aad3cf [stable-2.8] Add test constraint for setuptools. (#66426)
* Add test constraint for setuptools.

* Update pip test to work on centos6 container.
(cherry picked from commit 51e5b714e0)

Co-authored-by: Matt Clay <matt@mystile.com>
2020-01-13 14:02:14 -08:00
3edff5d42a Backport/2.8/63713 yum single yum base instantiation 53286 non existent repos (#65575)
* yum - only instantiate YumBase once (#63713)

* yum - only instantiate YumBase once

Previously, this code was re-instantiating the `YumBase` object
many times which is unnecessary and slow. However, we must do it
twice in the `state: absent` case because the `yumSack` and
`rpmSack` data of the previously instantiated object becomes
invalid and is no longer useful post transaction when we verify
that the package removal did in fact take place. Also, this patch
removes the repetitive re-processing of enable/disable of repos in
various places.

Here's a display of the speed increase against a RHEL7 host:

```yaml
- hosts: rhel7
  remote_user: root
  tasks:
  - name: Install generic packages
    yum:
      state: present
      name:
        - iptraf-ng
        - screen
        - erlang
  - name: Remove generic packages
    yum:
      state: absent
      name:
        - iptraf-ng
        - screen
        - erlang
```

Before this patch:
```
real    0m52.728s
user    0m5.645s
sys     0m0.482s
```

After this patch:
```
real    0m17.139s
user    0m3.238s
sys     0m0.277s
```

Fixes #63588
Fixes #63551

Signed-off-by: Adam Miller <admiller@redhat.com>

* add changelog

Signed-off-by: Adam Miller <admiller@redhat.com>

* YUM - handle enable of non-existent repo (#53286)
2020-01-10 15:37:04 -08:00
41bddb61b8 Ensure allow_duplicates: true enables to run single role multiple times (#64902) (#65063)
* Ensure `allow_duplicates: true` enables to run single role multiple times(#64902)

* Changed return value in `_load_roles` . Fixes #64902

* Add changelog fragment

* Add an integration test for the issue

* Fix changelog generation error and integration test.

* Fix yaml syntax error in changelog fragment

* Fix typo in a changelog fragment of #64902

(cherry picked from commit daecbb9bf0)
(cherry picked from commit 33094e6c8e)
2020-01-10 15:31:43 -08:00
bbbde15562 [stable-2.8] Add ansible-test constraint to avoid coverage 5.0+
(cherry picked from commit 9ea5b539b6)

Co-authored-by: Matt Clay <matt@mystile.com>
2020-01-10 15:25:48 -08:00
519846a1be docker_network: fix multiple subnet (of same IP version) idempotence (#65839)
* Fix multiple subnet (of same IP version) idempotence for docker_network.

* Add changelog.

* Unit tests no longer make sense, since the part of the code they test has been removed.

* Re-add CIDR validation. Move it to better position (module setup instead of idempotence check).

* Update changelog.

* Only run new tests on VM test images.

* Actually do what is documented. Especially since an empty object is a valid value for aux_addresses.

(cherry picked from commit 17ef253ad1)
2020-01-10 15:07:48 -08:00
3f98e1ff4e docker_container - #65993 - update restart policy (restart policy & restart retries) wit… (#66192)
* #65993 - update restart policy (restart policy & restart retries) without restarting the container

* - proper indentation on the continuation-line
- set restart_policy to the correct value independent from the api version

* - move restart_policy definitions into the if block
- add a new variable for the restart_policy configuration value

* add changelog fragment

* typo; minus -> underscore

* rename changelog fragment to contain the correct module name

* rename restart_policy_config_value to just restart_policy and refer to the correct dict values

(cherry picked from commit 02c126f5ee)
2020-01-10 15:03:55 -08:00
facf938690 [2.8] docker_container: wait for removal if removal is in process (#66118)
* docker_container: wait for removal if removal is in process (#65854)

* Allow to inspect containers directly.

* Wait for containers to be removed before recreating them.

* Also wait for containers to be removed before creating them.

* Add changelog.

(cherry picked from commit 4df5bdb11e)

* Don't wait for removal during check mode. (#66145)

(cherry picked from commit 14e32c85b4)
2020-01-10 14:22:39 -08:00
fc9d6ea64c [Backport 2.8] gitlab_runner: fix idempotency for shared runners (#65546)
* gitlab_runner: fix idempotency for shared runners (#65176)

* add changelog
2020-01-10 14:15:18 -08:00
11dd391784 dnf: don't return fail_json['msg'] as list (#65302)
Although it's not enforced that fail_json['msg'] should be a string
[1], I think it is pretty strongly implied.

In this case the failure_response['msg'] is sent through as the
fail_json['msg'], and the trailing commas here turn it into a tuple.
It's not clear if this is a typo or intended, but it does cause
problems for callbacks that expect this as a string (e.g. [2]).

Since there seems no point to having these values as a tuple, remove
the trailing commas so they return a string as per everywhere else.

[1] 4c589661c2/lib/ansible/module_utils/basic.py (L2078)
[2] https://review.opendev.org/#/c/696081

(cherry picked from commit fc54ae9227)
2020-01-10 12:19:33 -08:00
576a906393 [stable-2.8] Handle InternalError raised by cryptography when running in FIPS mode (#65477)
Since older versions of paramiko do not require cryptography,
we cannot catch the exact exception from cryptography.

Remove other exceptions since we're catching everything now
(cherry picked from commit d35c1a435b)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2020-01-10 11:33:14 -08:00
15a53276aa [stable-2.8] user - honor update_password parameter on BusyBox hosts (#65977)
The check for this parameter was missing from BusyBox.modify_user(), resulting in unexpected password changes to existing user accounts.
(cherry picked from commit 18130e1419)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2020-01-10 11:32:00 -08:00
7a55bc1902 docker_swarm_service: Fix parsing of Healthcheck.StartPeriod (#66151)
* Parse Healthcheck.StartPeriod properly

* Add changelog fragment

* Use proper markup in changelog

Co-Authored-By: Felix Fontein <felix@fontein.de>

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit f31b8e08b2)
2020-01-10 11:30:32 -08:00
0d08d78637 [2.8] Fix nxos_file_copy option value path validation (#65847)
* Fix nxos_file_copy option value path validation (#65423)

* Fix nxos_file_copy option value path validation

*  Modify `local_file`, `local_file_directory` and
   `remote_file` option type from `str` to `path`
   so that the option value is validated in Ansible
   for a legitimate path value

* Fix review comments

(cherry picked from commit 88008badb1)

* Fix trailing whitespace in docs.

Co-authored-by: Matt Clay <matt@mystile.com>
2020-01-10 11:11:18 -08:00
589a415f88 [2.8] solaris_zone: Allow only valid characters in zone name
CVE-2019-14904 - solaris_zone module accepts zone name and performs actions related to that.
However, there is no user input validation done while performing actions.
A malicious user could provide a crafted zone name which allows executing commands
into the server manipulating the module behaviour.

Adding user input validation as per Solaris Zone documentation fixes this issue.

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 7d2ae7e322)
2020-01-10 10:45:09 -08:00
b3a0ccc485 [stable-2.8] Simplify docker_setup on Fedora.
This avoids installing dnf-plugins-core, which breaks the yum and dnf modules
when uninstalling packages using a wildcard after they have already been removed.

This should resolve issues with the yum integration tests failing after docker tests run.
(cherry picked from commit a5c36eedd8)

Co-authored-by: Matt Clay <matt@mystile.com>
2020-01-08 16:14:21 -08:00
588cc8359c Add notes on docker_network connectivity for containers and services. (#65840) (#65965)
(cherry picked from commit d3b6db3754)
2020-01-02 15:50:50 -06:00
c290ea13f3 docker_swarm_service: Fix description of limits.memory (#66078) (#66112)
This option corresponds to the '--limit-memory' option. Also
fix other mentions memory reservation instead of limit.

(cherry picked from commit 30cfa92e90)

Co-authored-by: Pedro Alvarez Piedehierro <palvarez89@gmail.com>
2020-01-02 15:24:32 -06:00
77ce11b21d [stable-2.8] Disable failing azure_rm_storageaccount test.
(cherry picked from commit 342b9953bc)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-12-20 16:21:49 -08:00
d9368e195d [stable-2.8] Fix 'Assert CNAME failure' assertion (#65875)
(cherry picked from commit 14ebceec25)

Co-authored-by: Justin Ossevoort <github@internetionals.nl>
2019-12-20 13:48:48 -08:00
4efb8bdc4f update version metadata to get faceted swiftype search running (#65574) (#65580)
* update version metadata to get faceted swiftype search running

(cherry picked from commit 96cbbdd59f)
2019-12-10 14:03:06 -06:00
b1121828c0 [stable-2.8] Fix and reenable hcloud tests.
(cherry picked from commit 5ad61ed7c1)

Co-authored-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
2019-12-06 10:04:31 -08:00
14a243c486 [stable-2.8] Disable failing hcloud tests..
(cherry picked from commit 85722c360f)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-12-04 10:43:17 -08:00
e9bdf249f5 Remove k8s_scale dependency on k8s_raw (#65271)
* Remove k8s_scale dependency on k8s_raw (#59887)

* Remove k8s_scale dependency on k8s_raw

* fix sanity checks

(cherry picked from commit e60cdc310d)

* Add changelog fragment

* Rename 59887-scale-bug to 59887-scale-bug.yml
2019-12-03 14:08:13 -08:00
b186ba8ee3 acme_certificate: Fix ACME v1 support when modify_account is set to false (#64648) (#65413)
* Fix ACME v1 when modify_account is set to false.

* Add changelog.

(cherry picked from commit 08b53b94a9)
2019-12-03 13:10:19 -08:00
0ed744c0a0 openssl_csr: make sure privatekey_path is specified when state is present (#65435) (#65460)
* Make sure privatekey_path is specified when state is present.

* Add changelog.

(cherry picked from commit ae4363f6d1)
2019-12-03 12:59:15 -08:00
34eb3f54dd [stable-2.8] Add or later to the license expressed in the README (#65288)
This is a clarification, not a relicensing.

Our source code says "GPLv3+" or "version 3 of the License, or later".
Our documentation says GPLv3+:

https://github.com/ansible/ansible/blob/devel/docs/docsite/rst/dev_guide/developing_modules_checklist.rst#contributing-to-ansible-objective-requirements

We were just lazy when we wrote the README and left out the "or later".
this update to the README brings it in line with what everything else
says.
(cherry picked from commit a15fb26)

Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
2019-12-03 12:56:47 -08:00
b3f06706ba docker_container and docker_network: avoid None errors (#65018) (#65234)
* Avoid None errors.

* Add changelog.

(cherry picked from commit 63b94fca7e)
2019-12-03 12:45:37 -08:00
0a6e22aeb0 Update plugins/netconf/ce.py to fix a bug(failed to get veriosn information via neocnf). (#65065) (#65231)
* fix version fail.

* add a changelog fragment.

* Update ce.py

* Rename plugins-netconf-ce-fix.yaml to 65065-plugins-netconf-ce-fix.yaml

* Update ce.py

(cherry picked from commit da8ec327cc)
2019-12-03 12:45:12 -08:00
188bd6dc54 [yarn] Set name_version when version is not specified (#62348) (#65214)
* Set name_version when version is not specified, fix #55097

This will default to installing the latest version available

* Add changelog fragment

* update changelog

(cherry picked from commit 136dc27572)
2019-12-03 11:14:01 -08:00
96bdcbe90c openssh_keypair: fix idempotence issue (#65017) (#65127)
* Fix idempotence issue.

* Add changelog.

(cherry picked from commit b36f572256)
2019-12-03 11:13:44 -08:00
666acb1754 gitlab module: set max version for python-gitlab lib (#65052) 2019-12-03 11:12:26 -08:00
8b452357ce gitlab_user: Fix ssh key add and group membership add when there's other changes (#63621) (#65045)
* Fixed syntax in sshkey/group add

* Added changelog

* pep8 fix

(cherry picked from commit b4bb3dee9a)
2019-12-03 11:11:06 -08:00
1593f68d72 Backport/2.8/64397 (#64794)
* [FIX] graceful is not an immutable attribute

(cherry picked from commit 1f4d15fc55)

* [ADD] changelog fragment for PR 64397 to stable-2.8
2019-12-03 10:58:35 -08:00
290e63aba5 Backport/2.8/64351 Doc notes 6 (#64351) (#64945)
* Doc notes 6 (#64351)

(cherry picked from commit 25e03b1e75)

* add a changelog
2019-11-19 11:36:06 -06:00
c1c2c76ad0 Backport/2.8/64928 Doc notes 5 (#64928) (#64944)
* Doc notes 5 (#64928)

* new version 2.10 can not be backported

(cherry picked from commit 8ea9d0c06a)

* add a changelog
2019-11-19 11:35:11 -06:00
23812f4b6e Backport/2.8/64927 Doc notes 4 (#64927) (#64940)
* Doc notes 4 (#64927)

* exclude new in 2.10

(cherry picked from commit 2ccdf29b5b)

* add a changelog, update 64940_update_modules_docs_notes.yml
2019-11-19 11:33:08 -06:00
564570faf2 Backport/2.8/64348 Doc notes 3 (#64348) (#64941)
* Doc notes 3 (#64348)

(cherry picked from commit ad0769c095)

* add a changelog
2019-11-19 11:31:53 -06:00
686592bdb1 Backport/2.8/64347 Doc notes 2 (#64347) (#64942)
* Doc notes 2 (#64347)
* Update ce_evpn_bgp_rr.py
* Update ce_evpn_bgp.py

(cherry picked from commit 9e3b1f3b32)

* add a changelog.
2019-11-19 11:31:03 -06:00
5781d19ab5 Backport/2.8/64346 Doc notes 1 (#64346) (#64943)
* Doc notes 1 (#64346)

(cherry picked from commit 705c014ec3)

* add  a changelog.
2019-11-19 11:30:00 -06:00
37435c0df1 Update openssl_certificate.py (#64772) (#64803)
Changed 'generate' to 'generating'

(cherry picked from commit 83927c3437)
2019-11-18 15:36:23 -06:00
7eb9808ee8 Update Ansible release version to v2.8.7.post0. 2019-11-13 17:00:13 -08:00
24220a618a New release v2.8.7 2019-11-13 12:46:45 -08:00
63b0ae494e Improve handling of "restarted" state for win_iis_website module (#63829) (#64759)
* Improve handling of "restarted" state for win_iis_website module

* Added changelog fragment

(cherry picked from commit bd9a0b6700)
2019-11-12 18:47:12 -08:00
39f83ce38c win_acl no longer needs SeSecurityPrivilege (#57804) (#64757)
* win_acl no longer needs SeSecurityPrivilege
Set-ACL raises missing SeSecurityPrivilege error when the inheritance
from the parent directory is disabled.

* fixes test sanity

* registry rights can only be modified with Set-ACL

* add changelog

(cherry picked from commit 95d613f3ab)
2019-11-12 18:46:31 -08:00
59f417c469 Corrected Get-adcomputer (#63093) (#64755)
* Corrected Get-adcomputer

Corrected Get-adcomputer on "Remove-ConstructedState" and "Set-ConstructedState" functions.
resolved error: Unable to contact the server. This may be because this server does not exist, it is currently down, or it does not have the Active Directory Web Services running.

* Update lib/ansible/modules/windows/win_domain_computer.ps1

Co-Authored-By: Daniel-Sanchez-Fabregas <33929811+Daniel-Sanchez-Fabregas@users.noreply.github.com>

* Update win_domain_computer.ps1

changed
"-credential $credential" to "@extra_args" (Line 115 and 150)
corrected exception message (Line 122)

* Added changelog fragment, minor code tweak

(cherry picked from commit e77426dad3)
2019-11-12 18:45:39 -08:00
2dbe024fcb ce_config/bug/jingdong: a bug from jingdong. (#62872) (#63978)
* update to fix "`quit` may make seesion closed."

* update to fix "`quit` may make seesion closed."

* 274:49: E272: multiple spaces before keyword

* add a changelog fragment.

* Update ce_config.py

using run_command for prompts.

* Update ce_config.py

* Update ce_config.py

typo error

* update to use get_prompt

* Update ce_config.py

* Update ce_config.py

* Update ce_config.py

* Update ce_config.py

* Update ce_config.py

* Update ce_config.py

* Update ce_config.py

(cherry picked from commit e4b6dd1862)
2019-11-12 11:57:48 -08:00
20a8bf592e {Backport/2.8/64018]update ce_acl_interface to fix bugs (#64024)
* update ce_acl_interface to fix bugs

(cherry picked from commit 2849738e24)

* Module modification information
2019-11-12 11:56:01 -08:00
dfa74b5c52 change $partition variable name to $ansible_partition (#63968) (#64691)
* change $partition variable name to $ansbile_partition

* Added changelog fragment

(cherry picked from commit 8b13836b1f)
2019-11-12 10:34:45 -08:00
436b2c44f6 [2.8] Remove temp directory created by wait_for_connection (#64739)
wait_for_connection creates AnsiballZ_ping.py in temp directory,
which remains on remote machine even after playbook run.

Fixes: #62407

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 68428efc39)
2019-11-12 10:30:08 -08:00
773644e35c 2.8: perf: reduce getting handler variables (#59969) (#64675)
* perf: reduce getting handler variables (#59969)

ci_complete

(cherry picked from commit 9ccef9e819)

* Add changelog

* Fix incorrectly resolved conflict

* set_available_variables
2019-11-12 08:48:49 -08:00
421612ed02 Buypass now has a ACME v2 production endpoint. (#64649) (#64681)
(cherry picked from commit 4083d02989)
2019-11-11 19:14:45 -08:00
ec01279a9c postgresql_query: add note to the documentation (#64540) 2019-11-11 19:06:06 -08:00
595bdfa8bb [2.8] openssl_csr and openssl_certificate: fix support for Ed25519 and Ed448 private keys (#64126)
* openssl_csr and openssl_certificate: fix support for Ed25519 and Ed448 private keys (#63984)

* Move X25519, X448, Ed25519 and Ed448 feature tests to module_utils.

* Correctly sign with Ed25519 and Ed448 keys.

* Fix public key comparison. Ed25519 and Ed448 do not have public_numbers().

* Add tests.

* Add changelog.

* Give better errors for cryptography 2.6.x and 2.7.x.

* Test for new errors.

* Forgot one.

* Used wrong private key.

* Use private key password for CA key. Add more stuff to its certificate.

(cherry picked from commit fed267df03)

* Pass select_crypto_backend also to test implementation. This exists in devel but not yet in stable-2.8.
2019-11-11 19:04:43 -08:00
85cb406753 Backport #59614 to stable-2.8 (#64011)
* VMware: Fix Service Content calls in vmware_deploy_ovf

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>

* add changelog
2019-11-11 19:01:07 -08:00
1855494378 XenServer: Update docs with recent changes in XenAPI python lib and branding (#63728) (#63816)
- xenserver module_util: XenAPI lib import error message handling is now
   ported to missing_required_lib(). Updated unit tests.
 - xenserver_guest, xenserver_guest_info, xenserver_guest_powerstate modules:
   docs are updated to reflect recent changes in availability of XenAPI lib
   on PyPI.
 - xenserver_guest, xenserver_guest_info, xenserver_guest_powerstate modules:
   docs are updated to reflect recent Citrix rebranding of XenServer. Broken
   URLs to external resources are fixed.
 - xenserver_guest, xenserver_guest_info, xenserver_guest_powerstate modules:
   more tested platforms are mentioned in docs.

(cherry picked from commit 7afba9420a)
2019-11-11 18:11:14 -08:00
0daa435467 Backport/2.8/58525 - Use atexit to logout after zabbix module run (#63783)
* Use atexit to logout after zabbix module run (#58525)

(cherry picked from commit d582efcc51)

* added changelog fragment
2019-11-11 18:07:51 -08:00
d3e13aae09 Fixes #56832: Remove warning when falling back to apt-get if aptitude is missing. (#61782) (#64651)
(cherry picked from commit a6ec6c3175)
2019-11-11 18:04:24 -08:00
4f9a301594 docker_swarm_service: Allow source to be omitted for tmpfs mounts (#64637) (#64641)
* Allow source to be omitted for tmpfs mounts.

* Add changelog.

(cherry picked from commit 574bd32db2)
2019-11-11 18:03:25 -08:00
d98b9ddb3b docker_login: Use with statement for accessing files (#64382) (#64392) (#64525)
* docker_login: Use with statement for accessing files (#64382)

* Update changelogs/fragments/64382-docker_login-fix-invalid-json.yml

Co-Authored-By: Felix Fontein <felix@fontein.de>
(cherry picked from commit 52c4c1b00d)
2019-11-11 18:01:53 -08:00
050f92f960 [2.8] Callback: removing args from task_fields from Sumologic and Splunk plugin (#64273)
CVE-2019-14864 Ansible: Splunk and Sumologic callback plugins leak sensitive data in logs

Fixes #63522

Signed-off-by: Patrick O’Brien <patrick.obrien@thetradedesk.com>
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit c76e074e4c)
2019-11-11 18:00:55 -08:00
6749ffe824 [stable-2.8] paramiko_ssh - Improve authentication error message (#64157) (#64165)
The error is not always an invalid username/password. It could be a connection timeout or refusal.
(cherry picked from commit d5fbe6573b)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-11-11 17:59:52 -08:00
8b5cd5b64c sysctl: fix 'err' referenced before assignment (#64139)
* sysctl: fix 'err' referenced before assignment
* Add changelog

Fixes #63967

(cherry picked from commit 9069a681aa)
2019-11-11 17:58:49 -08:00
0c89a97107 [stable-2.8] copy - check for changes beyond first level of subdirectories (#58323) (#64112)
Add integration test for copy: deep recursive with remote_src=True
(cherry picked from commit b7e38dfa52)

Co-authored-by: Alexander Korsunsky <A.Korsunsky@gmail.com>
2019-11-11 17:37:58 -08:00
ba29567210 lineinfile - don't run os.makedirs on empty dir path (#63921) (#64090)
* Fix #63919: don't run os.makedirs on empty dir path

* integration test for lineinfile create: yes without path

(cherry picked from commit 3c978a3225)
2019-11-11 17:36:23 -08:00
fc62483b3e ACMEAccount.get_request check status code value lower boundary (#63140) (#64072)
* check status code value lower boundary

Any HTTP code below 200 cannot be considered a success, should be
handled like a failure instead.

This is particularly true for below zero status codes.

Fixes #63139

* provide changelog fragment

* ensure connection errors are handled in Acme module

* add fetch_url check to ACME.send_signed_request

* remove module.fail_json

* move _assert_fetch_url_success out of ACMEAccount

* fix ansible-lint errors

* use simplified syntax status checking

(cherry picked from commit 0d905a0496)
2019-11-11 17:34:56 -08:00
f861c284d0 [stable-2.8] lineinfile - use correct index value when inserting at the end (#63696) (#63795)
(cherry picked from commit 92cd13a2cf)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-11-11 17:29:52 -08:00
cbe69adf37 [stable-2.8] lineinfile - properly insert line when line exists and backrefs are enabled (#63763) (#63791)
Use a separate variable for the boolean test rather than having the same variable sometimes be a boolean and sometimes be a regular expression match object

Add integration tests to cover this scenario
(cherry picked from commit 29d4d318a5)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-11-11 17:29:02 -08:00
d3a9bbc9d1 action/ce.py:clear configuration candidate when return to user-view. (#63513) (#63704)
* clear configuration candidate when return to user-view.

* add a changelog fragment for the pr.

* Update 63513-ce_action_wait_prompt_trigger_time_out.yaml

* Update 63513-ce_action_wait_prompt_trigger_time_out.yaml

(cherry picked from commit 47c31c201b)
2019-11-11 17:26:51 -08:00
0846bb85d3 Backportable subset of: openssl_csr: deprecate version option (#63432) (#63675)
Cherry-picked from ba686154b9.
2019-11-11 17:23:54 -08:00
484fd8271e Improve module return values (#63541) (#63645)
* Remove lists from contains:, fix types, some more details.

* Adjust types.

* Add new type.

* Re-add meraki_mx_l7_firewall docs at right indentation level.

(cherry picked from commit a129499cf4)
2019-11-11 16:54:32 -08:00
95417c2260 ansible-vault: convert vault_password_files to list to prevent traceback (#57186) (#63622)
* Convert vault_password_files to a list

* Add changelog and tests
2019-11-11 16:51:14 -08:00
f471f7a6b3 Backport 2.8: Fix Gitlab module deprecation warning (#60425) (#63498)
* Fix Gitlab module deprecation warning (#60425)

* gitlab modules : Fix deprecation warnings and parameters

Also preparing for 2.10 deprecation

* gitlab modules : Correct deprecation message

(cherry picked from commit 7bb90999d3)

* gitlab_modules :  remove misssing required parameter (#63690)

* gitlab_group: remove required=True on server_url param

* gitlab_project: remove required=True on server_url param

* Revert "Example incorrect: server_url is required argument (#63670)"

This reverts commit b02467961a.
This modification shouldn't have been made.
This parameter is deprecated and #60425 forget to remove the required
parameter

(cherry picked from commit 0af32a1093)

* gitlab modules : Add changelog
2019-11-11 16:39:22 -08:00
a6687bef32 Fix issue when setting an empty pass to no_log param (#62804) - 2.8 (#62813)
* Fix issue when setting an empty pass to no_log param (#62804)

* Fix issue when setting an empty pass to no_log param

* Fix typo

(cherry picked from commit 322e225830)

* Fix up actual get for older versions
2019-11-11 15:38:40 -08:00
34c76bf2a1 [stable-2.8] Switch from RHEL 8.0 & 8.1b to 8.1 in CI.
(cherry picked from commit 75646037dc)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-11-07 14:58:58 -08:00
4afd3ad03b add porting guide for bare vars in conditionals (#60943) (#64289)
(cherry picked from commit 0b7d478200)
2019-11-01 14:08:33 -05:00
6dec6a736e [Doc-Release-2.9] Backport/2.8/docs release (#64270)
* docs: update version-checker to latest 3 versions (#64109)

(cherry picked from commit 409545825f)

* [Doc-Release-2.9] update release and maintenance page for 2.9 (#64166)

* update release and maintenance page for 2.9
* only 2.4 and earlier used the old changelog system

(cherry picked from commit 3f808d9ed6)
2019-11-01 09:42:05 -05:00
76f046be72 win_hotfix: fix docs typo (#63807)
(cherry picked from commit b43a2b0607)
2019-10-29 14:34:46 -05:00
2ac8308edf Updated with slipped dates for the 2.9.0 release (#63243) (#63799)
(cherry picked from commit 5997d33381)
2019-10-22 12:25:02 -05:00
ebefd0b715 Update Ansible release version to v2.8.6.post0. 2019-10-17 14:59:59 -07:00
d778c59c43 New release v2.8.6 2019-10-17 09:57:00 -07:00
5eac93e7fd [2.8] Fix return value documentation (2/2) (#63534)
* Fix return value documentation (2/2) (#63478)
* Avoid validation errors for missing 'contains:'.
* Convert JSON text to JSON dict.
* example -> sample.
* Fix YAML.

(cherry picked from commit 4bc298af83)

* Update validate-modules/ignore.txt.
2019-10-16 11:43:25 -05:00
293ae8030b [2.8] Fix return value documentation (1/2) (#63517)
* Fix return value documentation (1/2) (#63477)
* Avoid validation errors for missing 'contains:'.

(cherry picked from commit 6bea1597cc)

* Add validate-modules/ignore.txt entries.
2019-10-16 11:37:57 -05:00
d95ddf8519 Fix doc - porting_guide_2.8 value example (#63493) (#63525)
(cherry picked from commit e0f67b58ce)
2019-10-16 10:27:17 -05:00
4d322654e7 mysql_user: add seealso (#63497) (#63501)
(cherry picked from commit ecf71dd720)
2019-10-15 13:58:40 -05:00
d1e198e8ea docker_node_info: improve error handling (#63418)
* Improve error handling for get_service_inspect().

* Add changelog fragment.

(cherry picked from commit d753168e9d)
2019-10-14 17:02:27 -07:00
45278ceef7 [stable-2.8] user - fix shadow file parsing on AIX (#62547)
Initialize variables in case the shadow file is not found.
Handle IndexErrors if something goes wrong with file parsing.
(cherry picked from commit e9d10f94b7)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-10-14 17:00:32 -07:00
15ef4d119c [Backport/2.8/63331]Update ce_facts to fix bugs (#63456)
* Update ce_facts to fix bugs

(cherry picked from commit 73e7da40ff)

* Update ce_facts modified information
2019-10-14 16:58:19 -07:00
db083ad943 Backport/2.8/62471 ce_link_status:update to fix a bug. (#62417) (#63422)
* update to fix a bug. (#62417)


(cherry picked from commit 7541dab1ef)

* add a changelog fragment.
2019-10-14 16:57:14 -07:00
3dfb8e81bb [stable-2.8] Properly mask no_log values is sub parameters during failure (#63405)
* Get no_log parameters from subspec

* Add changelog and unit tests

* Handle list of dicts in suboptions

Add fancy error message (this will probably haunt me)

* Update unit tests to test for list of dicts in suboptions

* Add integration tests

* Validate parameters in dict and list

In case it comes in as a string

* Make changes based on feedback, fix tests

* Simplify validators since we only need to validate dicts

Add test for suboptions passed in as strings to ensure they get validated properly and turned into a dictionary.

ci_complete

* Add a few more integration tests
(cherry picked from commit e9d29b1fe4)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-10-14 16:46:37 -07:00
33af5752cd [backport 2.8] facts: detect FreeBSD jails guest (#62857) (#62911)
* facts: detect FreeBSD jails guest (#62857)

* facts: detect FreeBSD jails

* PEP8 fix

* changelog for pr62913
2019-10-14 16:45:58 -07:00
bae45dd930 [stable-2.8] package_facts - use AnsibleModule.warn() for warnings
(cherry picked from commit 2b1e24f)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-10-14 15:55:42 -07:00
8dd0c80ab7 clarify package facts errors and warnings (#56060)
* clarify package facts errors and warnings

  fixes #56056

(cherry picked from commit 615db8e6f4)
2019-10-14 15:27:56 -07:00
ae1bbfa008 Package facts apt fix (#55963)
* fixes for apt on package_facts

* reverse order, apt is newer

* moved warnings prop to base

(cherry picked from commit 24a46deef5)
2019-10-14 14:18:39 -07:00
12459b19b1 Added implicit initialization of APT package manager '_cache' field (#55851)
(cherry picked from commit c707dd7b62)
2019-10-14 14:18:39 -07:00
006156dee1 docker_image: fix option parameter so that warnings are issued (#63345)
* Fix option parameter so that warnings are issued.

* Add changelog.

(cherry picked from commit 61b3784131)
2019-10-12 10:00:22 -07:00
ffe9368d35 Backport/2.8/63332 ce_netstream_global: bugs fix(list index out of range) (#63332) (#63388)
* ce_netstream_global: bugs fix(list index out of range) (#63332)

* update to fix bugs:index out of range

* list index out of range

* list index out of range

* update for bad-whitespace

* Update ce_netstream_aging.py

* Update ce_netstream_aging.py

* Update ce_netstream_global.py

* Update ce_netstream_global.py

* Update ce_netstream_global.py

* Update ce_netstream_template.py

* Update ce_netstream_global.py

* Update ce_netstream_global.py

* Update ce_netstream_template.py

* Update ce_netstream_aging.py

(cherry picked from commit b7f12f9ff3)

* add a changelog fragment.

* Update 63388_ce_netsream_list_index_out_of_range.yml

changelogs/fragments/63388_ce_netsream_list_index_out_of_range.yml:5:1: empty-lines too many blank lines (1 > 0)
2019-10-12 09:58:08 -07:00
baec182fa9 Backport/2.8/59450 ce_file_copy: update to Compatible with multiple version of NETCONF A… (#63386)
* ce_file_copy: update to Compatible with multiple version of NETCONF API. (#59450)

* update to Compatible with multiple version of NETCONF API.

* update for  shippable.

* Update ce_file_copy.py

* Update ce_file_copy.py

* Update ce_file_copy.py

* Update ce_file_copy.py

* Update ce_file_copy.py

(cherry picked from commit 86937e06e3)

* add a changelog fragment.
2019-10-12 09:55:08 -07:00
b7fe3407c3 clean "changed" only after it has been processed (#59958)
* clean "changed" after it has been processed

without this change, a loop of `debug` tasks with `changed_when`
causes the "changed" status to get lost before output

* runme.sh tests for debug loop status

(cherry picked from commit bfd32c9b00)
2019-10-12 09:14:33 -07:00
6046da759f [2.8] Add cookie handling from issue #61672 (#62968)
* issue #61672 backporting in Ansible 2.8

* YAML extension added for Changelog fragment
2019-10-12 09:12:21 -07:00
e56ee65ca7 Docs - Add Meraki to platform option list (#61651)
(cherry picked from commit 54906a68fe)
2019-10-12 08:55:21 -07:00
f8cd3ca5a8 docker_* modules: docs improvements (#63165)
* Improve docker_container docs.

* Fix usage of C(...) and I(...).

* Fix abuses of I(...).

* tls_verify has been made an alias of validate_certs some time ago.

* Fix YAML problems.

* Update lib/ansible/modules/cloud/docker/docker_container.py

Co-Authored-By: Andrey Klychkov <aaklychkov@mail.ru>

* Update lib/ansible/modules/cloud/docker/docker_container.py

Co-Authored-By: Andrey Klychkov <aaklychkov@mail.ru>

* Fix order.

* Split long description.

* Improve formatting.

* Rewrite state docs.

* Make proper sentences.

(cherry picked from commit 5349b3ae4c)
2019-10-12 08:54:22 -07:00
3d8df9de72 lineinfile - fix bug with insertbefore/insertafter and firstmatch (#63194)
(cherry picked from commit 3b18337cac)
2019-10-12 08:51:16 -07:00
533cd12a5d Backport/2.8/62587 module_utils/network/cloudengine:fix get_nc_next. (#62751)
* fix plugins/netconf/ce.py for netconf/capability/exchange (#60569)


(cherry picked from commit 037401b6e0)

* for capability/exchange/1.0 (#60630)

* for capability/exchange/1.0

* for capability/exchange/1.0

* update for shippable

* Update ce.py

* Update ce.py

(cherry picked from commit 28227c95a4)

* module_utils-network-cloudengine: fix get_nc_next. (#62587)

* fix get_nc_next.

* add a changelog fragment.

* upadte for  changelgo fragment.

* merge two prs, one depens another.

* merge two prs, one depens another.

* update changelog.

(cherry picked from commit d6ef7c8530)
2019-10-12 08:48:25 -07:00
ff5e23cbc9 [Backport/2.8/62589]update ce_bgp_af to fix bugs (#62651)
* update ce_bgp_af to fix bugs (#62589)

* update to fix bugs

* update to fix bugs

(cherry picked from commit 2a206f0e4c)

* Update ce_bgp_af modified information
2019-10-12 08:44:02 -07:00
f1df6ca828 [Backport/2.8/61442]Update ce_mtu to fix bugs (#62683)
* Update ce_mtu to fix bugs

(cherry picked from commit cb8a3a4c06)

* Update ce_mtu modified information
2019-10-12 08:42:28 -07:00
9a11582612 Bugfix for aggregate function in junos_user module (#62340)
* Update junos_user.py (#60459)

(cherry picked from commit c226c1015e)

* junos_module fixed issue with aggregate mode
2019-10-12 08:41:06 -07:00
0a8221132d [Backport/2.8/61431]Update ce_interface_ospf to fix bugs (#62685)
* Update ce_interface_ospf modified information

* Update ce_interface_ospf to fix bugs

(cherry picked from commit b7e9bb8448)
2019-10-12 08:39:49 -07:00
028496d256 [Backport/2.8/61283]Update ce_info_center_global to fix bugs (#62687)
* Update ce_info_center_global modified information

* Update ce_info_center_global to fix bugs (#61283)

* Update ce_info_center_global to fix bugs

* Update ce_info_center_global to fix bugs

* Update ce_info_center_global to fix bugs

(cherry picked from commit 2d85cb3ded)
2019-10-12 08:30:43 -07:00
61a6a47ad4 [Backport/2.8/61168]Update ce_evpn_bgp_rr to fix bugs (#62689)
* Update ce_evpn_bgp_rr modified information

* Update ce_evpn_bgp_rr to fix bugs

(cherry picked from commit 2cb3da3fa6)
2019-10-11 13:00:24 -07:00
d6117dc690 [Backport/2.8/61136]Update ce_evpn_bgp to fix bugs (#62691)
* Update ce_evpn_bgp modified information

* Update ce_evpn_bgp to fix bugs

(cherry picked from commit 05d984b180)
2019-10-11 12:57:21 -07:00
89d6d1ce75 [Backport/2.8/61652]Update ce_netstream_export to fix bugs (#62681)
* Update ce_netstream_export to fix bugs (#61652)

* Update ce_netstream_export to fix bugs

* Update ce_netstream_export to fix bugs

(cherry picked from commit 8233389446)

* Update ce_netstream_export modified information
2019-10-11 12:55:42 -07:00
4eaa8a81a8 [Backport/2.8/61653]Update ce_netstream_aging to fix bugs (#62657)
* Update ce_netstream_aging to fix bugs (#61653)

* Update ce_netstream_aging to fix bugs

* Update ce_netstream_aging to fix bugs

(cherry picked from commit 80fa2a0816)

* Update ce_netstream_aging modified information
2019-10-11 12:45:59 -07:00
bc28c964c9 [Backport/2.8/61654]Update ce_ntp to fix bugs (#62655)
* Update ce_ntp to fix bugs

(cherry picked from commit afea7cc454)

* Update ce_ntp modified information
2019-10-11 12:44:47 -07:00
9a3243a7e7 [Backport/2.8/61683]Update ce_vrf_af to fix bugs (#62653)
* Update ce_vrf_af to fix bugs

(cherry picked from commit 0c65db1a23)

* Update ce_vrf_af modified information
2019-10-11 12:41:13 -07:00
5ae23d712c [Backport/2.8/61013]Update ce_evpn_global to fix bugs (#62693)
* Update ce_evpn_global modified information

* Update ce_evpn_global to fix bugs

(cherry picked from commit 9c6899a92f)
2019-10-11 12:39:24 -07:00
faf37dd939 [Backport/2.8/60937]Update ce_bgp_neighbor_af to fix bugs (#62695)
* Update ce_bgp_neighbor_af modified information

* Update ce_bgp_neighbor_af to fix bugs (#60937)

* Update ce_bgp_neighbor_af to fix bugs

* Update ce_bgp_neighbor_af to fix bugs

* Update ce_bgp_neighbor_af to fix bugs

(cherry picked from commit a260209098)
2019-10-11 12:37:47 -07:00
32fd34635d [Backport/2.8/60634]Update ce_bgp_neighbor to fix bugs (#62697)
* Update ce_bgp_neighbor modified information

* Update ce_bgp_neighbor to fix bugs

(cherry picked from commit dc5f127086)
2019-10-11 12:35:08 -07:00
2cbd8775ca [stable-2.8] Wrap CLI passwords as AnsibleUnsafeText (#63352)
* isa string should rewrap as unsafe in get_validated_value

* _is_unsafe shouldn't be concerned with underlying types

* Start with passwords as text, instead of bytes

* Remove unused imports

* Add changelog fragment

* Update changelog with CVE
(cherry picked from commit baeff74)

Co-authored-by: Matt Martz <matt@sivel.net>
2019-10-11 09:22:47 -07:00
3c58d5f793 adapt to firewalld 0.7.0 for RHEL 8.1 Beta, Fedora 31+
Fixes #63254

Signed-off-by: Adam Miller <admiller@redhat.com>
2019-10-11 07:39:17 -07:00
cb0f535a8b Fix for plugins which used the boto libraries leaking the boto credentials to logs 2019-10-10 21:21:05 -07:00
e6a49f2e96 [stable-2.8] Add RHEL 8.1b to the Shippable test matrix.
(cherry picked from commit 811127d64d)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-10-10 09:30:40 -07:00
2ccfc29b7e [2.8] Fix STS assume role error message when role does not exist (#63305)
* Fix STS assume role error message when role does not exist (#63249)

AWS appears to have changed this error message again.
Fixes https://app.shippable.com/github/ansible/ansible/runs/145643/115/tests

* [2.8] Fix STS assume role error message when role does not exist

* fix changelog sanity
2019-10-10 09:29:57 -07:00
ca830ef42d [stable-2.8] cronvar - use correct binary name (#63279)
(cherry picked from commit 9d014778ad)
2019-10-10 09:15:25 -07:00
b64c3c42bd [stable-2.8] cron: add integration tests (#59830)
(cherry picked from commit 3c8abc0b82)
2019-10-10 09:15:25 -07:00
aac216a242 [stable-2.8] Fix regression in cron module (#58751)
This reverts the changes to cron from #28662

This fixes #58493

(cherry picked from commit 61647731e2)
2019-10-10 09:15:25 -07:00
3a3c6d0f9a update ce_bgp to fix bugs (#60573)
* update ce_bgp to fix bugs

* update ce_bgp to fix bugs

* update ce_bgp to fix bugs

* update ce_bgp to fix bugs

* Update ce_bgp to fix bugs

(cherry picked from commit 5f35916b22)
2019-10-09 21:01:03 -07:00
322ad124ed Update ce_bgp modified information 2019-10-09 21:01:03 -07:00
4b2992c203 docker_container: improve image finding / change detection (#62971)
* Improve image finding / change detection.

* Checked wrong object.

* Improve behavior. (Let docker daemon sort this out.)

* Add changelog.

* Add simple test.

* Fix image name.

* Use new docker_image params.

* Rewrite.

(cherry picked from commit 41eafc2051)
2019-10-09 20:48:44 -07:00
7e3f336160 Fix Bum Traffic Payload keyword (backport 2.8)
The payload was using the incorrect keyword to push the True or False
statement to the device and was getting dropped. This would also result
in erroring out if layer2_unknown_unicase was set to Flood instread of
Proxy.
2019-10-09 20:46:32 -07:00
6d9762aef8 Fix whitespace issue in filter (backport 2.8)
This fixes reported issue #60276
2019-10-09 20:42:18 -07:00
d25b46b3dc dnf - properly handle idempotent removal of wildcard globs (#63034)
Signed-off-by: Adam Miller <admiller@redhat.com>
2019-10-09 20:27:05 -07:00
ddd9f6081e [2.8] docker_container: fix idempotency for network IP addresses (#62959)
* docker_container: fix idempotency for network IP addresses (#62928)

* Specifying IP addresses needs API version 1.22 or newer.

* Simplify code.

* Use IPAMConfig.IPv*Address instead of IPAddress and GlobalIPv6Address.

* Add changelog.

* Fix syntax errors.

* Add integration test.

* Don't rely on netaddr.

* Normalize IPv6 addresses before comparison.

* Install netaddr, and use it.

(cherry picked from commit 62c0cae29a)

* Remove IPv6 tests, use intermediate state of tests from PR which don't need ipaddr filter.
2019-10-09 20:15:24 -07:00
eeb829ccaa Fix _validate_csr_subject and _validate_csr_signature (#62790)
On python 3, if there is no explicit "return True", the
function call will be seen as "False", thus failling the module

(cherry picked from commit 75c4e9ec05)
2019-10-09 20:05:56 -07:00
1b6d6fe96d ACME modules: make compatible to Buypass ACME v1 CA, and fix bug in ACME v1 account update (#61693)
(cherry picked from commit c6dcf78f53)
2019-10-09 19:56:24 -07:00
1d67e78272 docker_login: fix Python 3 problem in #60381 (#62621)
* Fix Python 3 problem: run_command() returns native strings, not byte strings.

* Add changelog.

(cherry picked from commit 2e5137078d)
2019-10-09 19:41:10 -07:00
5b0a67062a [stable-2.8] Work around ssh-keygen issue in ansible-test. (#63211)
Newer versions of ssh-keygen create PEM keys that are not recognized by Paramiko.

Now ansible-test compensates for this by updating they keys it generates so Paramiko will recognize them..
(cherry picked from commit 022335669c)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-10-09 16:58:16 -07:00
dce682fc3e [stable-2.8] Install zip for unarchive test when using dnf.
(cherry picked from commit 86ae3cfa12)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-10-08 09:16:52 -07:00
08a6e8b95a Fix failed mounts in podman connector and handle errors (#57741)
Like it's described in issue #57740 ansible podman fails to run
because of failed mount of rootless container.

(cherry picked from commit 7910361b52)
2019-10-04 08:28:42 -07:00
e80a771f84 Limit Shippable matrix check to ansible repo.
(cherry picked from commit ada02f1966)
2019-10-01 13:57:28 -07:00
68de8e1986 Replace old shippable.py with new check_matrix.py. (#60022)
This new script does not depend on ansible-test and provides much more robust job matrix testing.

It is also run on every job in the matrix now, to detect issues with jobs being re-run after matrix changes are made.

(cherry picked from commit d3da8e4a5b)
2019-10-01 13:57:28 -07:00
27d7a7e048 docker_container: document some of the unexpected behaviors. (#62325) (#62945)
(cherry picked from commit fd627e3b78)
2019-09-30 15:07:31 -04:00
9302ed5bd3 package_facts: improve return value documentation (#62725) (#62890)
* Improve documentation for package_facts.
* Add sample return value.

(cherry picked from commit 1520eba0a7)
2019-09-30 15:00:50 -04:00
bf7cf633a3 Improved docs on docker_swarm_service (#62712) (#62888)
* Improved docs on docker_swarm_service

Co-Authored-By: Piotr Wojciechowski <23406016+WojciechowskiPiotr@users.noreply.github.com>

Co-Authored-By: Felix Fontein <felix@fontein.de>
(cherry picked from commit d4064a965b)
2019-09-30 14:56:34 -04:00
5991297474 Fix MSO examples (#62840)
Fix reported issues with the examples.
2019-09-30 14:52:35 -04:00
e8b14e02fe [stable-2.8] cron - Use get_bin_path() to find executable (#62462) (#62546)
* [stable-2.8] cron - Use the default crontab executable in cron and cronvar modules (#59765)

In some remote environments, the `crontab` executable is
overloaded with a custom executable, which typically does
some pre/post processing before forwarding to crontab.

Instead of using the hardcoded `/usr/bin/crontab`, this uses
the `get_bin_path` utility to locate the default crontab executable..
(cherry picked from commit 951a80c8b0)

Co-authored-by: Jean-Frédéric <JeanFred@users.noreply.github.com>

* [stable-2.8] cron - Only run get_bin_path() once (#62554)

(cherry picked from commit b7897e3a8d)
2019-09-20 16:27:10 -07:00
912c493307 Backport/2.8/theme (#62611)
* cherrypick #58832
* fix width (#61619)

(cherry picked from commit 1d40d2b572)

* Minify theme (#61734)

* moved most ansible edits out of theme.css
* remove unnecessary edit to theme.css
* replace with upstream minified theme.css for 0.4.3

(cherry picked from commit de826b437d)

* Minify ansible (#61792)

* make all comments special to survive minify
* minified css

(cherry picked from commit 7efaad711e)
2019-09-19 13:29:53 -05:00
4fc2674536 psexec - Fix kerb and interactive support (#62556)
(cherry picked from commit 064e443ea5)
2019-09-19 10:54:24 -07:00
63020a8be2 [Backport/2.8/62498]update ce_static_route to fix bugs (#62591)
* update ce_static_route to fix bugs

(cherry picked from commit 9a458d658f)

* Update ce_static_route modified information
2019-09-19 10:54:03 -07:00
60c35442a0 [Backport/2.8/61684]Update ce_ospf to fix bugs (#62595)
* Update ce_ospf to fix bugs

(cherry picked from commit 1583c5ead2)

* Update ce_ospf modified information
2019-09-19 10:53:46 -07:00
b587b5a3ee [2.8] VMware: Add support for storagePod
* Added find_resource_pool_by_cluster API

Fixes: #61645

(cherry picked from commit de66abe521)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2019-09-19 10:52:45 -07:00
d9b62e6e85 Add hint for config option priority (#62463)
* Add hint for config option priority

* Fix some spelling issues

(cherry picked from commit bf5b6695ec)
2019-09-19 10:27:37 -07:00
950959ebc5 win_exec_wrapper - Be more defensive when trying to get output errors (#62376)
* win_exec_wrapper - Be more defensive when trying to get output errors

* Fix up property search

(cherry picked from commit bad338aca6)
2019-09-19 10:27:03 -07:00
4cbaaa4f06 Add link to become plugins in become docs (#62462)
(cherry picked from commit d16ee65ecd)
2019-09-19 10:26:39 -07:00
fd2d0c254e [Backport/2.8/61774]Update ce_stp to fix bugs (#62511)
* Update ce_stp to fix bugs

(cherry picked from commit c62a0b35c7)

* Update ce_stp modified information
2019-09-18 09:41:48 -07:00
4dc467f8f3 [Backport/2.8/61842]Update ce_snmp_target_host to fix bugs (#62508)
* Update ce_snmp_target_host to fix bugs

(cherry picked from commit 76016f9988)

* update ce_snmp_target_host to fix bugs
2019-09-18 09:41:39 -07:00
605ba86da7 [Backport/2.8/61843]Update ce_snmp_traps to fix bugs (#62506)
* Update ce_snmp_traps to fix bugs

(cherry picked from commit fd11b82272)

* update ce_snmp_traps to fix bugs
2019-09-18 09:41:23 -07:00
4052c790cd [Backport/2.8/61995]update ce_vxlan_arp to fix bugs (#62504)
* Update ce_vxlan_arp to fix bugs (#61995)

* Update ce_vxlan_arp to fix bugs

* Update ce_vxlan_arp to fix bugs

(cherry picked from commit 12512f7319)

* update ce_vxlan_arp to fix bugs
2019-09-18 09:41:12 -07:00
9f2e500c5b update ce_vxlan_vap to fix bugs 2019-09-18 09:40:53 -07:00
bde55031c5 Update ce_vxlan_vap to fix bugs
(cherry picked from commit 2db73601ba)
2019-09-18 09:40:53 -07:00
44f88ca49b [stable-2.8] Remove leading space in warning messages (#62002)
ci_complete
(cherry picked from commit ea6e96985a)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-09-18 09:38:35 -07:00
6dd2cb0262 Backport of 62320: fix typos in network modules 2019-09-17 18:16:01 -07:00
f43110b0ed [stable-2.8] Mark ansible-test cloud credentials as sensitive..
(cherry picked from commit 9f7b124a6f)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-09-17 18:10:39 -07:00
d8bd6ea72f [stable-2.8] test: disable hcloud_floating_ip_info
Temporarily disable `hcloud_floating_ip_info`, this until #62414 is
resolved..
(cherry picked from commit edf15b346f)

Co-authored-by: Gonéri Le Bouder <goneri@lebouder.net>
2019-09-17 17:05:04 -07:00
0f7ed58718 Re-enable some docker_swarm tests. (#61875)
(cherry picked from commit 098a13dff4)
2019-09-17 14:00:14 -07:00
98fc6a627c [stable-2.8] Don't treat no checksum as a checksum match (#62146)
Fixes #61978
* moar tests for get_url fetch behavior with existing file
* add changelog fragment
(cherry picked from commit 7d51cac)

Co-authored-by: Matt Martz <matt@sivel.net>
2019-09-17 13:59:56 -07:00
8d05f468f3 rabbitmq_publish fix for incorrectly stating message was not published to the queue (#61960)
* Pika v1.0.0 and above were causing issues for publish_message.  Updated
to ensure publish_message works with pika 0.13.1 and 1.0.0 and above.

* Adding changelog fragment for rabbitmq_publish fix.

* Updating return value.

(cherry picked from commit 1b2fd2cb5f)
2019-09-17 13:58:32 -07:00
7693b2945a lookup_rabbitmq pika > 1.0.0 is_closing bug fix (#61959)
* In pika v1.0.0 BlockingChannel.is_closing was removed.  Updating
plugin accordingly.

Ref: https://github.com/pika/pika/pull/1034

* Adding change fragment for is_closing bug.

* Updated change fragment description.

(cherry picked from commit 9b149917a6)
2019-09-17 13:57:42 -07:00
a0c0e64518 Fix fetching existing AS (#58756)
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
(cherry picked from commit 709fbcf804)

Add changelog for eos_bgp fix
2019-09-17 13:48:08 -07:00
78771b4eb2 Set no_log to True for junos_user encrypted_password (#62184)
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
(cherry picked from commit 4e6270750a)

Add changelog for junos_user fix
2019-09-17 13:42:52 -07:00
08bff987d9 [stable-2.8] Split unit tests into two groups (#61528) (#62070)
* [stable-2.8] Fix ansible-test coverage path handling. (#61528)

* Fix ansible-test coverage path handling.
* Split CI unit tests into two groups..
(cherry picked from commit e4e5005640)

Co-authored-by: Matt Clay <matt@mystile.com>

* Increase unit test timeout to account for long image download times (#61717)

(cherry picked from commit c9e7a2122d)
2019-09-17 13:42:20 -07:00
c01378a299 [stable-2.8] Mark AWS credentials in ansible-test as sensitive.
This avoids displaying the credentials in CI when retrying tests at maximum verbosity.
(cherry picked from commit b73e772)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-09-17 13:31:43 -07:00
c284e40866 [stable-2.8] Redact sensitive values by default in ansible-test.
(cherry picked from commit 0631e057e9)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-09-17 13:18:38 -07:00
5c1c91c3d2 Backport of 62333: fix typos in storage modules (#62384) 2019-09-17 11:10:03 -05:00
09db81e942 explicited RouterOS does not support connection: local (#62230)
(cherry picked from commit b8aa87bd06)
2019-09-16 11:04:02 -05:00
2d967c3537 Backport of 62135: fix typos in modules (#62170) 2019-09-16 10:41:37 -05:00
97eba0fc60 Backport of 62125: Fix typos in database modules and their integration tests (#62173) 2019-09-16 10:37:13 -05:00
7974950f90 fix typos in web_infrastructure modules (#62257) 2019-09-16 10:33:09 -05:00
c2c096e4f2 Backport of 62201: fix typos in net_tools_modules (#62263) 2019-09-16 10:31:48 -05:00
2a484a649f Backport of 62200: fix typos in identity modules (#62267) 2019-09-16 10:29:58 -05:00
923fc2e247 fix typos in commands modules (#62197) (#62270)
(cherry picked from commit 6691527799)
2019-09-16 10:28:33 -05:00
8c72fd0bb7 Backport of 62196: fix typos in clustering modules (#62272) 2019-09-16 10:26:45 -05:00
d11fc4d09c Backport of 62336: fix typos in remote_management modules (#62341) 2019-09-16 10:20:08 -05:00
01ca3aa8b5 revert back to contiguous (#62301) (#62306)
(cherry picked from commit f6a51b3f07)
2019-09-13 16:12:41 -05:00
255754a4d1 Backport of 62194: fix typos in cloud modules (#62277) 2019-09-13 14:11:48 -05:00
f2be4f688d Improve documentation on doc fragments (#62219) (#62292)
Add information and examples on how to use additional properties from a doc fragment
Add info about layering properties

(cherry picked from commit 9b348e690c)
(cherry picked from commit 5deb01c84d)
(cherry picked from commit 041c52d629)
2019-09-13 13:40:49 -05:00
770e10ca60 win_template - use shared doc fragment for shared options (#59701) (#59828)
* win_template - use shared doc fragment for shared options (#59701)

* win_template - use shared doc fragment for shared options

* Change smart quote to em dash and fix whitespace issue

(cherry picked from commit 652bfc7e19)

* template - move backup to its own doc (#59893)

* template - move backup to its own doc

* Use the backup doc fragment for template

(cherry picked from commit 737a500a30)
2019-09-12 18:58:02 -07:00
b4a78e5658 Update Ansible release version to v2.8.5.post0. 2019-09-12 17:27:15 -07:00
eb1995d41d New release v2.8.5 2019-09-12 12:54:03 -07:00
659147b2e2 VMware: not ssl.SSLContext if validate_certs false (#57185)
Python < 2.7.9 does not have the ssl.SSLContext attribute.
ssl.SSLContext is only required when we want to validate the SSL
connection. If `validate_certs` is false, we don't initialize the
`ssl_context` variable.

Add unit-test coverage and a little refactoring:

- avoid the use of `mocker`, when we can push `monkeypatch` which is
  `pytest`'s default.
- use `mock.Mocker()` when possible

closes: #57072
(cherry picked from commit 3ea8e0a144)
2019-09-09 13:26:23 -07:00
3dec34c118 fix erroneous failures in docker_compose due to deprecation warnings … (#61650)
* fix erroneous failures in docker_compose due to deprecation warnings from docker (#60961)

* Update error handling to work with new method of capturing output

Co-Authored-By: Felix Fontein <felix@fontein.de>

* update error handling

* fix syntax error

* fix indentation

* fix indentation (again)

* remove erroneous line

(cherry picked from commit 0c73e47a42)
2019-09-09 13:22:18 -07:00
211fc3e0ab docker_container: improve port range parsing error behavior (#61740)
* Improve port range parsing.

* Add changelog.

(cherry picked from commit d40ba28fb4)
2019-09-09 13:19:39 -07:00
c0ba6a9ed3 XenServer: When VM is in powered on state, plug newly added disks
Fixes: #60693
(cherry picked from commit 04e0f9d4ea)
2019-09-09 13:18:40 -07:00
b844671747 Fix bug #61924 with API version check 2019-09-09 13:16:30 -07:00
adb742deff [stable-2.8] User - correct group removal description in docs (#61936)
(cherry picked from commit 61efffcbe1)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-09-06 13:40:56 -07:00
b9769abde7 [stable-2.8] test: disable the docker swarm tests (#61816) (#61862)
`docker_swarm` tests tend to hang during the creation of the Swarn
cluster.

See: https://github.com/ansible/ansible/issues/61815
(cherry picked from commit 7132466327)

Co-authored-by: Gonéri Le Bouder <goneri@lebouder.net>
2019-09-05 09:01:34 -07:00
70798b84d2 documentation: modify the link to the docker.txt listing all images (#61838) (#61847)
The file was moved.

(cherry picked from commit aadb192846)
2019-09-05 10:07:39 -05:00
446df8d2cb [stable-2.8] Use new version of default test image that contains Python 3.8.0b3 (#60139)
(cherry picked from commit a20848bf66)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-09-04 18:01:21 -07:00
1b8c1c364d Add changelog fragment 2019-09-04 15:22:41 -07:00
e7fcb37e6c Fix extended loop_control with includes (#61231)
* Fix extended loop_control with includes

* Use assert for testing extended loop_control

* fix typo

(cherry picked from commit a213b9160c)
2019-09-04 15:22:41 -07:00
59280a933e [stable-2.8] apt_facts - Fix cache related performance regression (#60511)
* apt_facts - Fix cache related performance regression

* Another minor performance improvement
(cherry picked from commit 0f35e4b7b9)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-09-04 13:38:35 -07:00
05d084b366 s3 - improve waiting for the bucket (#61802)
(cherry picked from commit ff05991265)
2019-09-04 12:42:07 -07:00
e93b8f054e [stable-2.8] aws_s3 - wait for the bucket before setting ACLs (#61735)
* Wait for the bucket to become available if possible before setting ACLs
(cherry picked from commit 91ccb03552)

Co-authored-by: Sloane Hertel <shertel@redhat.com>
2019-09-04 12:42:07 -07:00
99f9eab19d fixes assert statements in tests (#59998)
(cherry picked from commit d00aaf66d7)
2019-09-04 12:21:23 -07:00
c087030e5c [stable-2.8] Allow 13 asterisk characters in password field without warning (#54893)
On OpenBSD, 13 asterisk characters as a password hash, marks the
account as disabled. Otherwise daily(8) script which executes
security(8) will email operator about not properly locked accounts.

Before the diff, we see following warning:

> [WARNING]: The input password appears not to have been hashed. The 'password' argument must be encrypted for this module to work properly.

After the diff, warning is gone..
(cherry picked from commit 1dea661ce8)

Co-authored-by: kucharskim <mikolaj@kucharski.name>
2019-09-04 12:20:28 -07:00
48e22639ee Fix creation of DigitalOcean droplets using digital_ocean_droplet module (#61655)
* Omit disallowed 'id' attribute in request body to create a droplet

* Add changelog fragment for PR #61655
2019-09-04 12:19:39 -07:00
aec6dc3b26 systemd module will now wait on deactivating state (#59471) (#60939)
* systemd module will now wait on deactivating state (#59471)

If a service is in the 'deactivating' state running systemctl stop foo,
would wait for the foo service to actually stop before it exits. The
module didn't behave like that and it considered the deactivating state
as if the service wasn't running. This change will align the module with
the systemctl behaviour.

(cherry picked from commit 54d9d7805d)

* Fix systemd start state with deactivating service state

(cherry picked from commit ee4b3b8854)
2019-09-04 12:18:43 -07:00
0af0a7f8bb Add exception handling to win_domain_controller (#58234)
* Add exception handling to win_domain_controller

* Add changelog

* Fix PSUseDeclaredVarsMoreThanAssignments

* Remove dns domain cannot be resolved error message

As requested by PR review in https://github.com/ansible/ansible/pull/58234#discussion_r300509880
2019-09-04 12:14:34 -07:00
7c752a43b3 Set win_pagefile as unstable as thats what it is (#61732)
(cherry picked from commit 00add5b668)
2019-09-04 12:13:42 -07:00
6310e96034 [stable-2.8] - meraki_syslog - Properly handle net_id (#61744)
* meraki_syslog - Module properly handles net_id parameter (#57286)

(cherry picked from commit a50b3d7695)

* Add changelog fragment and clean up commented tests
2019-09-03 21:58:00 -07:00
db5539dce3 Update host parameter notes to include China. (#60967)
(cherry picked from commit 48a04fade4)
2019-09-03 21:57:32 -07:00
e1922be671 postgresql: Run all tests under postgres_* (#61676)
* Make sure postgresql tests are run for all postgres_* modules (#61647)

(cherry picked from commit 4d057e0331)

* Make sure postgresql tests are run for all postgres_* modules (#61647), remove non-existent
2019-09-03 21:39:49 -07:00
bc0ea200d2 Update ce_bfd_global to fix bugs (#60477)
* Update ce_bfd_global to fix bugs

(cherry picked from commit c742ce8ee3)

* Update ce_bfd_global modified information
2019-09-03 21:38:25 -07:00
d71d111c3a Fix nxos_install_os test cases typo (#58825)
This should be ansible_connection, not connection_type. We can also
update local testing logic.

Remove nxos_install_os/tasks/network_local.yaml as it is nolonger used.

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
(cherry picked from commit 9e1b19e364)
2019-09-03 21:37:39 -07:00
cc1bc400dd [stable-2.8] Fix pipelining in buildah connection plugin 2019-09-03 21:35:27 -07:00
ccd0b5bede acme_certificate: make compatible to Buypass' ACME v2 testing endpoint (#60727)
* Don't unnecessarily use location from header.

* Add changelog.

(cherry picked from commit 7f4f2506a0)
2019-09-03 21:34:21 -07:00
9218856617 Search project in domain when it's defined
Since there might be several projects with the same name in different
domains, it's required to define domain_id during project search.
Otherwise openstacksdk will raise "Multiple matches found" error

(cherry picked from commit 33ab7ca162)
2019-09-03 21:32:18 -07:00
6468dcc4be Ovirt template search by datacenter backport (#60478)
* add changelog

* ovirt_vm update template search backport
2019-09-03 21:29:57 -07:00
c2f6576fbe proxmox_kvm: While a VM is beeing created, vm has no name item (#58196)
* While a VM is beeing created, vm as no name attribute

* Add changelogs fragment

(cherry picked from commit 8923d13537)
2019-09-03 12:58:54 -07:00
a0ebf60dea ovirt_vm add linux boot param warning backport (#60581)
* ovirt_vm add linux boot param warning (#60474)

* ovirt_vm add kernel param check

* update check

* update docs phrase

* use douple quotes

* add changelog
2019-09-03 12:44:53 -07:00
1ff1e2d9a6 ovirt vm update kernel docs backport (#60582)
* ovirt vm update kernel docs (#60407)

* ovirt vm update kernel docs

* update doc phrase

* update docs

* add changelog
2019-09-03 12:43:56 -07:00
b66433f47d docker_logout: report change on successful logout (#60381)
* Mark logout as changed when docker logout does not return 'Not logged in to '.

* Add changelog.

* Improve logout detection.

* Also return output of 'docker logout'.

(cherry picked from commit 99fb0fcb2f)
2019-09-03 12:43:12 -07:00
9fe0971004 Backport/2.8/57418 (#60683)
* Backport to stable-2.8: Fix #56640: Map k8s ansible keys to api keys (#57418)

* Fix #56643: Map ansible keys to api keys

* Remove errant print line

* Fix pep8 issue

* Fix doc line

* Added test for validate_certs -> verify_ssl translation for k8s module

(cherry picked from commit 6e94b472e8)

* Removed proxy from AUTH_ARG_MAP and added fragment for backport

* Rename backport-57418.yaml to 60683-backport-57418.yaml

* Update 60683-backport-57418.yaml
2019-09-03 12:42:15 -07:00
db9cb0682d fix: docker_swarm_service does not publish both tcp and udp ports (#60616)
* fix: docker_swarm_service does not publish both tcp and udp ports for same published port

* fix the linting problems and add the changelog fragment.

* add test

* modify test to ensure result rather than return value

(cherry picked from commit 064cd63f3d)
2019-09-03 12:40:54 -07:00
06623fb79a openssl_certificate: fix idempotency (#60745)
* Fix openssl_certificate idempotency.

* Add changelog.

* Add integration test.

(cherry picked from commit 0d88ec241f)
2019-09-03 11:49:53 -07:00
d70b4f6665 Correct indentation of the code in the example (#61622) (#61727) 2019-09-03 13:47:45 -05:00
ec50e1191f Backport: win_domain reboot required exception incorrectly reported (#60496) (#60809)
* win_domain reboot required exception incorrectly reported (#60496)

* Set reboot required dependent on exception message.

* Use exception id instead of it's message

* Add changelog fragment
2019-09-03 11:17:28 -07:00
b77abd0491 Warn when transforming constructed groups (#60912)
* Warn when transforming constructed groups

The `keyed_groups` field has used sanitization since 2.6, but `groups` only started doing so in 2.8.
This adds a warning for the change in behavior.

* changelog

(cherry picked from commit 3247626ac7)
2019-09-03 11:15:23 -07:00
0bc1285987 [stable-2.8] fixes issue with recieve parameter idempotency (#59999) (#60541)
* [stable-2.8] fixes issue with recieve parameter idempotency (#59999)

fixes assert statements in unit tests
(cherry picked from commit c9a9621a02)

Co-authored-by: Wojciech Wypior <w.wypior@f5.com>

* Add changelog
2019-09-03 10:44:21 -07:00
e352e7223e Update Fedora 29 test image
(cherry picked from commit 3d78dad84b)
2019-09-03 09:55:04 -07:00
1e9eebdc93 Backport of 61538: postgresql modules: explicit defaults for bool params (#61677) 2019-09-03 11:38:50 -05:00
db9744d29e [stable-2.8] Add porting guide entry for gathering facts tag change (#61180) (#61555)
* Add porting guide entry for gathering facts tag change

(cherry picked from commit 0175620)

Co-authored-by: Matt Martz <matt@sivel.net>
2019-09-03 11:36:58 -05:00
813b32856a Fix typo in postgresql_privs.py (#61365) (#61427)
Change 'default_prives' to 'default_privs'

(cherry picked from commit 0074fa5672)
2019-08-28 10:53:45 -05:00
6fc1f3ab1c Add changelog fragment for backporting PR #57096 to stable-2.8 branch 2019-08-27 14:04:10 -07:00
3cbe15aae9 Add thin-volumes to the netapp_e_lun_mapping update_mapping_info method. 2019-08-27 14:04:10 -07:00
71ec1d0b17 Fix netapp_e_host module bug when lun=0 2019-08-27 14:04:10 -07:00
74717f1ac2 Fix hosts with same lun number conflict in netapp_e_lun_mapping.
This patch fixes an issue of when multiple hosts are created and then
subsequently volume(s) are mapped to them using the same specified number.
2019-08-27 14:04:10 -07:00
a389e9e4bf docker_image_info: improve docs (#60622) (#60885)
* Improve return value documentation and example, fix typo in lib/ansible/modules/cloud/docker/docker_image_info.py

(cherry picked from commit 7a9e865a23)
2019-08-22 09:39:59 -05:00
6af9aef659 Bugfix of issue 60707: add python-apt package to requirements of package_facts module (#60999) (#61101)
* Issue 60707: add python-apt package to requirements of package_facts module, fix formatting, change fail msg

(cherry picked from commit cf291f272d)
2019-08-22 09:38:29 -05:00
826523559d Fix mispelling in postgresql_query docs (#60648) (#60670)
Changed `arbitraty` to `arbitrary` in postgresql_query docs
(cherry picked from commit 06d1705752)
2019-08-16 09:32:22 -05:00
e99b08a0ad Update Ansible release version to v2.8.4.post0. 2019-08-15 19:56:25 -07:00
c4902421d9 New release v2.8.4 2019-08-15 14:07:35 -07:00
49935b1e95 [stable-2.8] Fix sanity tests based on newer version of shellcheck (#60423) (#60442)
* [stable-2.8] Fix sanity tests based on newer version of shellcheck (#60423)

- change egrep to grep -E
- store exit codes and check them directly
- ignore SC1091.
(cherry picked from commit c485a1b91e)

Co-authored-by: Sam Doran <sdoran@redhat.com>

* Fix sanity test
2019-08-13 10:31:03 -07:00
768e515a3e Ovirt host update force docs backport (#60475)
* add changelog

* Ovirt host update force docs (#60202)

* update docs

* update pep8 syntax

* update pep8 syntax
2019-08-13 10:29:41 -07:00
beb108e887 Update ce_acl_advance modified information 2019-08-12 18:38:01 -07:00
51a849c89f vmware_datastore_facts: don't modify dict in iter
With Python3, we cannot iterate on a dict and modify it at the same time.

Fixes #54869

(cherry picked from commit 339a0f4a8c)
2019-08-12 18:33:22 -07:00
d112106985 Move windows test to another group (#60391)
(cherry picked from commit 35b87b8633)
2019-08-12 18:29:29 -07:00
282ab4cb72 openssh_keypair - Add public key and key comment validation (#57993)
- Split the key validation to separate private and public.
- In case public key does not exist, recreate it.
- Validate comment of the key.
- In case comment changed, update the private and public keys.

(cherry picked from commit 27e414200f)
2019-08-12 18:29:03 -07:00
4bac987591 Backport/2.8/58943 - win_domain_group_membership extar_vars forests env fix 2019-08-12 18:26:26 -07:00
d350269da1 update ce_acl to fix bugs (#60357)
* update ce_acl to fix bugs (#60274)

(cherry picked from commit 66c3e9bb9b)

* Update ce_acl modified information
2019-08-12 18:23:52 -07:00
34d3a80fb5 update ce_aaa_server_host to fix bugs (#60356)
* update ce_aaa_server_host to fix bugs (#60272)

(cherry picked from commit 9aabe70452)

* Update ce_aaa_server_host modified information
2019-08-12 18:23:23 -07:00
f4aaf4d148 update ce_aaa_server to fix bugs (#60355)
* update ce_aaa_server to fix bugs (#60270)

* update ce_aaa_server to fix bugs

* update ce_aaa_server to fix bugs

(cherry picked from commit c2e7683926)

* Update ce_aaa_server modified information
2019-08-12 18:22:02 -07:00
b51fdab9ea [stable-2.8] Fix unit tests to work with pytest >= 5.0 (#60246) (#60332)
pytest made a change in the way the message from ExceptionInfo objects was returned.

https://docs.pytest.org/en/latest/changelog.html#pytest-5-0-0-2019-06-28.
(cherry picked from commit 2d266fbc87)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-08-12 18:12:28 -07:00
5f15cc409e Improve docker_compose module documentation (#60064) (#60347)
* Improve docker_compose module documentation
* Mentions of files (docker-compose.yml) are now rendered correctly.
* Compose files are now called just that.
* Further clarify options "services", "stopped" and "restarted"
* Update lib/ansible/modules/cloud/docker/docker_compose.py

Co-Authored-By: Felix Fontein <felix@fontein.de>
(cherry picked from commit e9fc095123)
2019-08-12 10:48:02 -05:00
9bfdb0aec5 fix spelling: certifivate -> certificate (#60369) (#60373)
docs spelling fix

(cherry picked from commit a3d55a5ddb)
2019-08-12 10:45:58 -05:00
490f17c7f9 Improve performane of UnsafeProxy __new__
This adds an early return to the __new__ method of the UnsafeProxy object
which avoids creating the unsafe object if the incoming object is already
unsafe.

(cherry picked from commit c1e23c22a9)
2019-08-09 14:46:14 -07:00
a6eec912c7 [stable-2.8] Pin openshift <=0.9.0 to prevent test failures (#60245)
(cherry picked from commit 9cb47832d1)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-08-09 14:40:41 -07:00
fa0cd3782f [stable-2.8] Move assertion in unit test inside loop (#60232)
(cherry picked from commit aa717661af)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-08-09 14:40:07 -07:00
5d3f0fe02c facts: fix double-counting of CPUs on POWER systems (#58360)
On POWER systems, /proc/cpuinfo provides a 'processor' entry as a
counter, and a 'cpu' entry with a description (similar to 'model name'
on x86). Support for POWER in get_cpu_facts was added via the 'cpu'
entry in commit 8746e692c1.  Subsequent
support for ARM64 in commit ce4ada93f9
used the 'processor' entry, resulting in double-counting of cores on
POWER systems.

When unit tests were later written for this code in
commit 55306906cf, the erroneous values
were just accepted in the test instead of being diagnosed.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
(cherry picked from commit 93d9d64038)
2019-08-09 14:20:32 -07:00
8e56708e22 prevent recursive logging csharp stackoverflow. (#59503)
* prevent recursive logging situation.

* Add changelog

(cherry picked from commit 6a5cd9a820)
2019-08-09 14:12:22 -07:00
a0afc2d656 Move win target back a group (#60257)
(cherry picked from commit 534a40c5cd)
2019-08-09 14:11:24 -07:00
bc06946581 Added group 7 to Windows groups - ci_complete (#60240)
(cherry picked from commit 81cb6f366a)
2019-08-09 14:11:24 -07:00
c2abfd8c4d Remove Python 2.6 from Windows tests (#60235)
(cherry picked from commit 3a3727d200)
2019-08-09 14:10:35 -07:00
1eb11edb14 Removed breaking type check from nagios module (#49568)
* Removed extraneous type check from nagios module, in order to allow python 3.x

* Removed now useless import types

* Added changelog fragment

* Update changelog.

* Rebased and removed check due to module adding earlier guardrails

* Updated changelog to mention earlier fix adding now completely removed guardrails

* Remove superfluous type checks. Fix docs type.

* Update ignore.txt.

(cherry picked from commit 5d8302120b)
2019-08-09 14:09:53 -07:00
08e23a2a93 Don't truncate cidr_ipv6 addresses in ec2_group.py (#59106)
* Better cidr_ipv6 validation in ec2_group.py

* Improve warning/error handling, add changelog

* Update unit test for ipv6 validation

* Fix logic that was causing non /128 cidrs with host bits to not be handled

(cherry picked from commit 4308b87d72)
2019-08-09 14:02:42 -07:00
b4b76c924c Ovirt vnic profile fix backport (#60198)
* update vnic profile docs

* vnic profile fix

* merge updates

* add changelog
2019-08-09 14:00:52 -07:00
0bcfb05bad Fix changelog entry for playbook_dir fix
The final version of the fix makes the addition in two places instead of
moving the single addition from one place to another

(cherry picked from commit 84e3c0ef1d)
2019-08-09 13:51:14 -07:00
f44eb33000 [stable-2.8] Move plugin loader playbook dir additions back to Playbook instead of PlaybookCLI (#59557)
* Move plugin loader playbook dir additions back to Playbook instead of PlaybookCLI. Fixes #59548

* Restore cli additions
(cherry picked from commit 923e218)

Co-authored-by: Matt Martz <matt@sivel.net>
2019-08-09 13:51:14 -07:00
3b987ae53d Add CVE number to changelog 2019-08-09 13:50:35 -07:00
5004e9adcd too many docs changes 2019-08-09 13:50:35 -07:00
b0e2d90dcf cherrypick 2019-08-09 13:50:35 -07:00
2d14c0ce70 no logging for service account contents (#60149)
* no logging for service account contents

* changelog

* fixes
2019-08-09 13:50:35 -07:00
a02c5c4683 win_user - use proper error code when failing to validate creds (#60181)
(cherry picked from commit 45d0e5994a)
2019-08-09 13:24:07 -07:00
d497d5865b Backport/2.8/60075 ce_rollback: set mmi-mode enable to run commands and unset after running. (#60075) (#60084)
* set mmi-mode enable to run commands nad unset after running. (#60075)


(cherry picked from commit 16e237e095)

* add a changelog fragment.
2019-08-09 11:44:52 -07:00
56639d0f68 TRANSFORM_INVALID_GROUP_CHARS: document "ignore" option (#57318) (#60289)
Co-Authored-By: Alicia Cozine <879121+acozine@users.noreply.github.com>
(cherry picked from commit c954c07271)
2019-08-09 10:59:09 -05:00
4e94423e41 Backport/2.8/60071 ce_config : It is necessary to undo mmi-mode enable after running commands. (#60071) (#60085)
* It is necessary to undo mmi-mode enable after running commands. (#60071)


(cherry picked from commit 13c8f7b00c)

* add a changelog fragment.
2019-08-07 21:57:55 -07:00
81a5183428 Backport/2.8/60105: turn off the default db warning where it doesn't make sense (#60107)
* Bugfix 60043: turn off the default db warning where it doesn't make sense (#60105)

(cherry picked from commit d2cc9f5f06)

* Backport of 60105: turn off the default db warning where it doesn't make sense
2019-08-07 13:58:37 -07:00
4f763037b0 [stable-2.8] Fix hcloud tests
(cherry picked from commit 6c1a255d98)

Co-authored-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
2019-08-07 13:50:31 -07:00
2a862ee82e fix misleading example in docker_image doc (#60207) (#60231)
Using docker_image to tag an image as "latest" only updates an existing
tag when used with "force_tag: yes" option. As "latest" is present in
most cases, the option is added to the example to prevent unexpected
behaviour.

(cherry picked from commit 5a6003d0ed)
2019-08-07 15:43:48 -05:00
978dd9f541 [stable-2.8] Fix async output with adhoc callbacks. Fixes #15988 (#59935)
(cherry picked from commit df6b8d2)

Co-authored-by: Matt Martz <matt@sivel.net>
2019-08-07 13:17:40 -07:00
215aa73843 update ce_bgp_af to fix bugs (#60032)
* update ce_bgp_af to fix bugs (#59678)

* update ce_bgp_af to fix bugs

* update ce_bgp_af to fix bugs

* update ce_vrrp to fix bugs

* update ce_bgp_af to fix bugs

* update ce_bgp_af to fix bugs

(cherry picked from commit d6fd4eb8e6)

* Update ce_bgp_af modified information

* Update ce_bgp_af modified information
2019-08-07 13:16:03 -07:00
f75fbf94f8 update ce_vrrp to fix bugs (#60034)
* update ce_vrrp to resolve conflicts

* Update ce_vrrp modified information

* Update ce_vrrp modified information
2019-08-07 12:23:17 -07:00
777395ec18 Backport/2.8/59690 ce_netstream_template: update to fix a bug. (#59690) (#60033)
* ce_netstream_template: update to fix a bug. (#59690)

* update to fix a bug.

* Update ce_netstream_template.py

* Update ce_netstream_template.py

* Update ce_netstream_template.py

(cherry picked from commit adfbd04b3a)

* add  a changelog fragment.
2019-08-07 12:16:32 -07:00
adc494a9e1 [stable-2.8] Change dummy package name in yum/dnf tests to not collide with an actual package (#60225)
When targeting 'foo*' in tests, it pulled in packages other than the dummy packages in our testing repo that have many dependencies, some of which were causing tests to fail.

Also change 'bar' package name to avoid the same issue in the future.
(cherry picked from commit 47796af64f)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-08-07 12:13:11 -07:00
feb39dc35a docker_container: fix port bindings with IPv6 addresses (#59715)
* Pass IPv6 addresses for port bindings without square brackets.

* Add changelog.

* Add test.

(cherry picked from commit a7573102bc)
2019-08-07 12:10:49 -07:00
22ab4683df Only error out if the gid exists with a different group name (#59769)
Only error out if the gid exists with a different group name as
otherwise it will error out if the group with this gid already
exists, like on a rerun of the playbook. This fixes a regression
introduced by 4898b0a4a298448677c2aee2a03157ba5b662759.(cherry picked from commit f94772f807)
2019-08-07 11:59:25 -07:00
a55d6c37ec [stable-2.8] Handle new output for podman image build (#59807)
(cherry picked from commit 372f21e3b5)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-08-07 11:49:27 -07:00
24a4b1d9e7 Move ome_* and idrac_* modules one level up (#59698)
* Move ome_* and idrac_* modules one level up.

* Fix paths.

* Fix package name.

* Oranize in different directories.

* Update BOTMETA.

* Update new ignore entries.

* Revert "Update BOTMETA."
Revert "Oranize in different directories."
Adjust ignores.txt.

(cherry picked from commit 6d074d8a94)
2019-08-07 11:48:48 -07:00
a307a6a89a os_subnet: allow using non-default subnet pool (#52608)
(cherry picked from commit 17f2b5f73e)
2019-08-07 11:47:44 -07:00
04ca93a5c0 Rebalance Windows CI groups based on recent delays to 2016 (#59838)
* Change to test out server 2016 CI issues

* ci_complete

(cherry picked from commit 349b2bdf43)
2019-08-07 09:05:29 -07:00
678b9c1b3c Use correct extension on changelog fragment 2019-08-07 07:41:06 -07:00
7edc4be583 backport aws_s3: Improve ETag handling (#46332) 2019-08-07 07:41:06 -07:00
38a7dfca26 aws_s3: Improve ETag handling (#46332)
* cosmetic: Remove useless call to ec2_argument_spec()

* aws_s3: Improve ETag handling

* Extract ETag calculation into a utility function for reuse by
  aws_s3_sync.
* Reduce code duplication in put/get by restructuring the logic
* Only calculate ETag when overwrite == different
* Fail gracefully when overwrite == different and MD5 isn't available
  (e.g. due to FIPS-140-2).

* aws_s3: clean up integration tests

Clean up tests, add tests for overwrite settings in both directions.

(cherry picked from commit c513c1e2d3)
2019-08-07 07:41:06 -07:00
d39488ece4 prevent templating of passwords from prompt (#59246)
* prevent templating of passwords from prompt

  fixes CVE-2019-10206

(cherry picked from commit e9a37f8e31)
2019-08-07 07:11:01 -07:00
b2c43bd2b7 [stable-2.8] Wait for Ansible Tower instance to be ready
(cherry picked from commit ea209e1c2f)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-08-02 13:58:26 -07:00
67fe363297 Fix strat inv (#58982)
* Fix strategy functions that update inventory

* added tests


(cherry picked from commit a7b14ec1be)
2019-08-02 09:40:28 -07:00
3fbf1163a3 removed module from support list (#59878)
(cherry picked from commit eb15ee91df)
2019-08-01 07:47:04 -07:00
79795ba5b0 [stable-2.8] Update version in metadata for bundled distro (#59869)
(cherry picked from commit 81d254da4c)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-07-31 10:37:39 -07:00
fd7b4238e2 [stable-2.8] Update constraints for coverage on Python 3.8 (#59733)
This fixes the unit tests hanging when run with Python 3.8 with coverage enabled
(cherry picked from commit ed4a729fd6)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-07-31 10:36:34 -07:00
e2df33563c backport fix qos update ovirt_vnic_profile (#59862)
Update ovirt_vnic_profile.py (#56518)

qos is not defined when port_mirroring is enabled, a NoneType is returned for entity.qos in this case
getattr is safer to use than using a direct call to entity.qos.name
2019-07-31 10:32:03 -07:00
703618336f [stable-2.8] Don't warn if local user is found in user database (#56838)
If the 'local' parameter of the 'user' Ansible module is enabled, and
the user has been found in the local user database, don't emit
a warning, because this is an expected outcome.

Add changelog and integration tests

Co-authored-by: drybed <drybjed@gmail.com>
(cherry picked from commit 75be309242)

Co-authored-by: Maciej Delmanowski <drybjed@drybjed.net>
2019-07-31 10:30:46 -07:00
e5759e587a Update docs for pesize. (#59751)
(cherry picked from commit 1534d6aea3)
2019-07-31 10:29:33 -07:00
b6192a5ce8 Added changelog fragment for backport pr relating to pbrun become plugin default become_user. 2019-07-31 08:31:43 -07:00
7648619a3f pbrun: Use default value for become_user (#59754)
* Update pbrun.py

Require ternary operator for if get_option('user') returns NoneType object.

* Update pbrun.py

Added default value to become_user in documentation.

* Update pbrun.py

Changed default for become_user to be '' instead of root.

(cherry picked from commit 1d560e5ce9)
2019-07-31 08:31:43 -07:00
d6e7011d14 [stable-2.8] Order data in xml integration test (#59742)
A recent update to lxml for Python >= 3.6 now preserves key order. Change the test input so the input is sorted, making tests pass on previous versions of lxml as well as the latest version.
(cherry picked from commit 19299f3310)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-07-30 21:17:22 -07:00
aabc0aff57 win_dsc - be more lenient with datetime parsing (#59703)
* win_dsc - be more lenient with datetime parsing

* Remove l that shouldn't be there

(cherry picked from commit 04ec47bdf1)
2019-07-30 17:33:58 -07:00
8af9c9ccc9 Add pipelining to podman connection plugin 2019-07-30 17:33:22 -07:00
ce59df01e3 [stable-2.8] Fix podman_image integration tests (#59805)
Pin podman package at a specific version
(cherry picked from commit 691976c3d0)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-07-30 17:30:41 -07:00
ac1e647e55 [2.8] fixed _merge_dictionaries calls in GcpSession class
(cherry picked from commit c24b841c0a)
2019-07-30 17:29:21 -07:00
b866036365 add eol banner (#59254)
(cherry picked from commit 00699735e9)
2019-07-30 17:26:21 -07:00
77df9ddaa8 Backport/2.8/59689 ce_netstream_global: update to fix a bug. (#59689) (#59786)
* ce_netstream_global: update to fix a bug. (#59689)

* update to fix a bug.

* Update ce_netstream_global.py

(cherry picked from commit 3c7e8f7905)

* add a changelog fragment.
2019-07-30 17:25:01 -07:00
11e087ff7a consul_session: improve documentation and add integration tests (#56392) (#59357)
* consul_session: Python 2.6 is always required on managed node
* consul_session: document all types
* consul_session: add doc for 'id' parameter
* consul_session: improve parameter descriptions
    - use formatting functions in descriptions
    - 'name' parameter is required when state=node
* consul_session: use required_if
* consul_session: add integration tests
* consul_session: use 'retry' with network dependent tasks
* Use ansible-ci-files bucket for consul binaries

Co-Authored-By: Matt Clay <matt@mystile.com>
(cherry picked from commit 5f8080aaa0)

* add a changelog fragment
2019-07-30 17:21:44 -07:00
712a11bdf7 Backport/2.8/59523 ce_config: Optimize multi-level views & fix a bug. (#59523) (#59728)
* ce_config: Optimize multi-level views & fix a bug. (#59523)

* Optimize multi-level views

* update to rewrite load_config.

* update.

* update.

* update.

* update.

(cherry picked from commit 9182d54e98)

* add a changelog fragment.
2019-07-30 13:36:21 -07:00
8badf3b3cb Backport/2.8/59347 ce_stp: update to fix a bug. (#59347) (#59685)
* ce_stp: update to fix a bug. (#59347)

* update to fix a bug.

* update for shippable.

* Update ce_stp.py

(cherry picked from commit c3d1f9b085)

* add a changelog fragment.

* Update 59685-ce_stp-to-fix-bugs.yml
2019-07-30 13:34:14 -07:00
2a1e7403c4 ec2_instance: Force int when ebs.volume_size or ebs.iops is specified (#55716)
* Force int when volume_size is specified

* changelog

* both volume_size and iops must be int

* updated changelog fragment

(cherry picked from commit 5a6f888036)
2019-07-30 13:16:45 -07:00
bce7ccc26d Backport/2.8/59336 ce_mlag_config: update to fix a bug(#59336) (#59684)
* ce_mlag_config: update to fix a bug. (#59336)

* update to fix a bug.

* update

* Update ce_mlag_config.py

* Update ce_mlag_config.py

(cherry picked from commit 585128e5ac)

* add a changelog fragment.
2019-07-30 13:15:03 -07:00
6b4f153459 sysctl - Reload also when current system values differ (#56153)
Previously if `sysctl_set=no` (which is the default) this module only
checked for changes in the sysctl.conf file to decide whether it should
reload it or not. This means that if the values in the conf file are the
same as they are set with the module, but the current values on the
system are different, that this module wouldn't apply the changes on the
system and thus the value set with the module wouldn't be applied on the
OS. This isn't obvious and it doesn't make sense that the module works
like that by default, especially because there is a separate option
`reload`. Now sysctl will also check if the current value differs on the
system and if it does, it will reload the file again.

(cherry picked from commit 5fc769f6b1)
2019-07-30 13:14:21 -07:00
e97ceafa82 [2.8] Fix traceback when using gluster_volume
Since bricks_in_volume is a list, it can't be compared to a int.

(cherry picked from commit 06651d1055)
2019-07-30 12:35:51 -07:00
35ba55599a PR to implement ansible_net_model for iosxr facts module (#58488)
* resolves 57767

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* added test

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
(cherry picked from commit 539f37ede3)

Handle lowercase in version info (#59565)

Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
(cherry picked from commit 3a103405b1)

Add changelog for iosxr_facts fix

Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
2019-07-30 12:17:20 -07:00
95fd0d58e6 [stable-2.8] Make docker swarm integration tests more reliable (#59473)
(cherry picked from commit 3ceeae0de9)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-07-30 12:07:14 -07:00
ed027203c6 2.8: Clear 'connection related' plugin vars for next loop iteration (#59024) v2 (#59510)
* Clear 'connection related' plugin vars for next loop iteration (#59024)

Fixes #58876

(cherry picked from commit a752e2a467)

* Preserve original variables when using a loop (#59426)

Fixes #59414

(cherry picked from commit 1010363c0b)
2019-07-29 14:48:31 -07:00
a06b3a5174 Backport/2.8/59346 ce_startup: update to fix a bug (#59520)
* update to fix a bug (#59346)


(cherry picked from commit 6ff54c546e)

* add a changelog fragment.
2019-07-29 12:38:01 -07:00
9d32d06104 Backport/2.8/59497 fix code formatting, remove unused imports (#59518)
* postgresql modules: fix by flake8 (#59497)

(cherry picked from commit fd35833554)

* Backport of 59497: fix code formatting, remove unused imports
2019-07-29 12:27:50 -07:00
282cf8fd78 backport/2.8/59343 ce_mtu: update to fix bugs. (#59343) (#59515)
* ce_mtu: update to fix bugs. (#59343)

* update to fix bug.

* Update ce_mtu.py

* Update ce_mtu.py

* Update ce_mtu.py

(cherry picked from commit 93265bf92e)

* add a changelog fragment to PR 59515.
2019-07-29 12:26:54 -07:00
e08427a138 Correct places where match was intended
pytest.raises has two parameters, message and match.  message is meant
to be the error message that pytest gives when the tested code does not
raise the expected exception.  match is the string that pytest expects
to be a match for the repr of the exception.  Unfortunately, it seems
that message is often mistakenly used where match is meant.  Fix those
cases.

message is also deprecated so removed our usage of it.  Perhaps we
should write a sanity test later that prevents the use of
pytest.raises(message) to avoid this mistake.

seealso: https://docs.pytest.org/en/4.6-maintenance/deprecations.html#message-parameter-of-pytest-raises

Also update the exception message tested for as we're now properly
detecting that the messages have changed.

(cherry picked from commit 87601969a3)

Fix root filter test

On python-2.6 the error message is different

(cherry picked from commit 67fb3a8215)

Fix the pytest match test for python-2.6

(cherry picked from commit 8a880d6032)
2019-07-29 12:08:15 -07:00
65c6306f37 Backport/2.8/59345 ce_rollback: shouldn't load xml configure via network_cli. (#59445)
* update to fix bugs.

(cherry picked from commit 657ff644ca)

* add a changelog fragment.
2019-07-29 12:07:47 -07:00
4b81be97fa Backport/2.8/59344 ce_ntp_auth: update to fix "state is present but all of the following are missing: pas… (#59437)
* update to "state is present but all of the following are missing: password" bug

(cherry picked from commit 661b009f36)

* add a changelog fragment.

* update changelog fragment: section "bugfixes" list items must be type str not dict.

* update
2019-07-29 12:06:53 -07:00
5410128801 Ovirt host event log backport (#59432)
* Ovirt host event log (#57935)

* host event log init

* show more events

* add time check

* correct pep8 syntax

* use event id as first elem

* init start event in constr

* update pep8 syntax

* remove precreate

* add changelog
2019-07-29 12:05:22 -07:00
9a3dc5f798 Fix netconf connection command timeout issue (#58322)
*  ncclient uses same timeout value at the time
   of connection initialisation and waiting response
*  Ansible has connect_timeout to control the waiting
   time during initial connection and `command_timeout`
   to control the wait time for resposne. Hence set the
   ncclient timeout seperately to Ansible command_timeout
   after the connection object is created sucessfully.

(cherry picked from commit db0fe4b188)
2019-07-29 09:32:57 -07:00
e2c8a64b45 [stable-2.8] Fix for skipping of gitlab_runner test.
Correct variable name for skipping of the gitlab test when gitlab python
client is not installed.
(cherry picked from commit 0c992d5ae4)

Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
2019-07-26 15:18:31 -07:00
542aec6166 Minor docs fix for sanity test docs backport. 2019-07-26 11:03:45 -07:00
dd42aac878 Remove redundant "Sanity Tests »" from page title.
The docs now have multi-level breadcrumbs so including "Sanity Tests »" in the title on a sanity test page is redundant.

(cherry picked from commit b4494fa547)
2019-07-26 10:15:21 -07:00
4782c6b0b8 remove ambiguity: use "my_test" as module name (#59335) (#59519)
Use "my_test" as the sample module name on the developing_modules_general page.

(cherry picked from commit 28b9f71640)
2019-07-25 15:49:03 -05:00
8e9c8c5b8f Fix return values types for find module in docs (#59480)
* Update find.py (#59456)
Return values for `matched` and `examined` in the find module are integers and not strings.
(cherry picked from commit 7b4ce9e4ae)
2019-07-25 15:47:39 -05:00
9b1615058e psexec - update example for for delegation example (#59475) (#59482)
(cherry picked from commit 3581e63ca8)
2019-07-25 15:44:43 -05:00
4b5c13ff76 Update Ansible release version to v2.8.3.post0. 2019-07-25 13:37:02 -07:00
be6918689a New release v2.8.3 2019-07-25 10:03:46 -07:00
42c2b3e496 [stable-2.8] Fix nightly rpm release
The nightly rpm builds were using a timestamp from the last git commit
in their Release field.  Unfortunately, that was using author timestamp
which is nonsequential.  Change to using commit timestamp which is
sequential.

note that this still has a cornercase if the branch's history is ever
rewritten.
(cherry picked from commit 97edfcc)

Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
2019-07-24 09:49:13 -07:00
b64f3b3b98 [stable-2.8] Re-enable docker_container tests (#59425)
Mark dependent container's ipc_mode as shareable
(cherry picked from commit 266d6e77a9)

Co-authored-by: Felix Fontein <felix@fontein.de>
2019-07-24 09:15:08 -07:00
fc684b6204 [stable-2.8] Mark Docker tests unstable (#59408)
* Mark Docker tests unstable

- docker_swarm is unstable on RHEL 8
- docker_container is unstable on RHEL 7

* Disable docker_container test.
(cherry picked from commit 67c69f3)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-07-22 18:59:41 -07:00
a0688027a5 Revert "Clear 'connection related' plugin vars for next loop iteration (#59024)"
This reverts commit 5e7e9b57c0.

This causes a new set of regressions from 2.8.2:
https://github.com/ansible/ansible/pull/59284#issuecomment-514021543

So this issue won't be fixed in 2.8.3 but work towards a fix for 2.8.4
will continue.
2019-07-22 18:54:45 -07:00
37f8684330 if users are None/empty, dont assume sameness (#58875)
(cherry picked from commit 4ef2545eb5)

 also fix all cases of none remote/become users (#59397)
 some cases failed, when defaults were None on the plugins

(cherry picked from commit 74ac229fa8)
2019-07-22 18:46:09 -07:00
89963a0062 Fix gather facts ignoring gather_subsets config (#59271)
* Fix gather facts ignoring gather_subsets config

 fixes #58728

* Update lib/ansible/playbook/play.py

Co-Authored-By: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 8a886a6bee)
2019-07-22 18:45:06 -07:00
18fc915b15 [2.8] VMware: Fix vmware_guest cloning bug
* fix vmware_guest cloning bug
* added tests for resizing disks during clone

(cherry picked from commit 3a5d13b0d7)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2019-07-22 18:43:53 -07:00
89d5830da0 2.8: Revert "Speed up VariableManager by preserving Templar state. (#45572)" (#59280) (#59373)
* Revert "Speed up VariableManager by preserving Templar state. (#45572)" (#59280)

This reverts commit 6069d09b9d.

Fixes #57351

(cherry picked from commit b7868529ee)

* Add changelog for #59280 (#59380)


(cherry picked from commit d6b1376006)
2019-07-22 17:07:46 -07:00
e989f4c38d Backport 59342, postgresql_schema: parameter ensure replaced by state (#59368)
* parameter ensure replaced by state (#59342)

corrected a typo at the absent-example.
(cherry picked from commit 883cc665e3)

* Backport 59342, postgresql_schema: parameter ensure replaced by state
2019-07-22 17:05:23 -07:00
6e9c928817 [2.8] Address regression causing bootproto=dhcp for manual IP addresses
Commit b7724fdf85
appears to have caused a regression, where `ip4`, `gw4`, `ip6`, `gw6`
were converted to `ipv4.address`, `ipv4.gateway` etc.

This causes bootproto (or `ipv4.method`) to remain `dhcp`, as noted in https://github.com/ansible/ansible/issues/36615

This commit only reverts the key-value pairs to the original names,
which is in line with both expectation (manual ip addr == no dhcp) and
the language used in the playbook, which is, for example, "ip4" not
"ipv4.address"

Co-authored-by: Stuart Pollock <spollock@pivotal.io>
Co-authored-by: Tyler Ramer <tramer@pivotal.io>
(cherry picked from commit 8d0f2e5725)
2019-07-22 17:03:59 -07:00
02c605b4c9 ovirt vm when creating Nonetypefix (#59377)
* ovirt vm when creating Nonetypefix

* update fix and add comment

* add changelog

* Update 59377-ovirt-vm-when-creating-fix.yml
2019-07-22 16:49:02 -07:00
e0dbe1bf26 [stable-2.8] Omit -A and -G options in local mode since luseradd does not support these (#55401) (#58480)
* [stable-2.8] Omit -A and -G options in local mode since luseradd does not support these (#55401)

Add integration tests
(cherry picked from commit 20ad120829)

Co-authored-by: Sam Doran <sdoran@redhat.com>

* User - make groups and append mutually exclusive with local (#59309)

* Update intigration tests

(cherry picked from commit 8edad83ae0)
2019-07-22 16:48:28 -07:00
302de41a31 [2.8] VMware: Accept 0 as valid value for memory reservation
vmware_guest accepts 0MB as valid value for memory reservation in
virtual machine hardware configuration. This fixes the regression
introduced via 193f69064f.

Fixes: #59190

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 1f49abb51c)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2019-07-22 16:37:02 -07:00
e5f68cad5a Fix win_reg_stat for HKU hives (#59359)
(cherry picked from commit 2f2b106423)
2019-07-22 16:35:06 -07:00
ffa92f7725 Fix typo in import package name. (#59229)
(cherry picked from commit cdf0947df0)
2019-07-22 16:29:19 -07:00
6c14bdeb7e disable s3_lifecycle tests (#59311)
(cherry picked from commit 1d3f2c7764)
2019-07-22 16:24:57 -07:00
2f5c3b3cb4 [stable-2.8] Handle situation where ansible_architecure may not be defined when gathering facts (#55466)
(cherry picked from commit f231f21669)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-07-22 16:22:04 -07:00
c40949df8a Ovirt vnic profile docs backport (#59288)
* ovirt vnic profile update readme (#57298)

removes second of two identical examples

* add changelog
2019-07-22 16:20:30 -07:00
5e7e9b57c0 Clear 'connection related' plugin vars for next loop iteration (#59024)
Fixes #58876

(cherry picked from commit a752e2a467)
2019-07-22 15:44:33 -07:00
a2d6f9acd9 Win setup fix 2.8 (#59211)
* Wrap Get-MachineSid's body in a try/catch

It's not critical information and there's been a number of issues over
the years with trying to retrieve it. If an exception is thrown just
return null.

Fixes: #47813
(cherry picked from commit b8a41a90b8)

* add changelog


(cherry picked from commit 277690bcc6)
2019-07-22 15:21:02 -07:00
4f939d4b2b [stable-2.8] Move integration tests to using RHEL 8.0 GA (#57772).
(cherry picked from commit b9dafdbade)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-07-22 15:20:32 -07:00
c55d83f41e Backport/2.8/59071 ce_file_copy : update ce_file_copy to fix a bug. (#59071) (#59243)
* ce_file_copy : update ce_file_copy to fix a bug. (#59071)

* update ce_file_copy to fix a bug.

* Update ce_file_copy.py

* Update ce_file_copy.py

(cherry picked from commit 7a0a21ea7a)

* add a changelog fragment to PR 59243.
2019-07-22 15:11:16 -07:00
b373d45839 Correct a documentation of the jenkins_plugin module (#59331)
It's a backport of #59139
2019-07-22 16:11:53 -05:00
2fbf4ca99c [2.8] Fix ec2_eip parameter logic
device_id is required when private_ip_address is set, but the reverse is not true.

(cherry picked from commit 6273574eb4)

Signed-off-by: flowerysong <junk+github@flowerysong.com>
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2019-07-22 14:01:02 -07:00
d0f74f495b dzdo: fix password prompt (#59208)
(cherry picked from commit 28259ee247)
2019-07-22 13:59:53 -07:00
a5178d8a34 Add pslint ignore rules 2019-07-22 13:59:02 -07:00
9c391ea78e [stable-2.8] Update default test container to use Python 3.8.0b2 (#58877).
(cherry picked from commit 5ccd674dba)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-07-22 13:59:02 -07:00
5447dc855b Ovirt correct sysprep backport (#59286)
* use sysprep only when needed (#59196)

* add changelog
2019-07-22 13:53:52 -07:00
8074fa9a3e patch ansible-connection collection plugin loading (#59119)
(cherry picked from commit d28f25d118)
2019-07-17 15:34:16 -07:00
f837444a77 [stable-2.8] Add test for meta: end_play (#59118)
- Set ansible_python_interpreter for hosts using local connection
(cherry picked from commit d17e7a91b1)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-07-17 15:32:26 -07:00
0d86a4dbaa group: detect duplicate GIDs when local=yes (#58469)
(cherry picked from commit 4898b0a4a2)
2019-07-17 14:30:55 -07:00
299fff1d5e Fix os_quota when volume service not available
os_quota checks the current quotas for compute, network and volume
services and fails when no volume service is found in the catalog.

Since openstack test deployments without volume services are common,
os_quota shouldn't fail if such service is missing.

This was originally fixed in d31a09ceb7
and later adapted to catch exceptions raised by shade. Since then, this
module moved to using openstacksdk, which doesn't catch the exception
raised by keystoneauth1.

Fixes #41240

(cherry picked from commit 1aca1f21f9)
2019-07-17 14:28:26 -07:00
afb91e5140 [2.8] tower_role: ensure alias of "validate_certs" parameter is handled
* tower_role: ensure alias of validate_certs is handled

* tower modules: remove tower_verify_ssl alias too

Error was:

    Failed to update role: The Tower server claims it was sent a bad request.
    GET https://tower/api/v2/projects/22/object_roles/
    Params: [('tower_verify_ssl', False), ('role_field', 'admin_role')]
    Data: None
    Response: {"detail": "Role has no field named 'tower_verify_ssl'"}

Full traceback:

    File "/tmp/ansible_tower_role_payload_7_2p0X/__main__.py", line 145, in main
      result = role.grant(**params)
    File "/usr/local/lib/python2.7/dist-packages/tower_cli/resources/role.py", line 365, in grant
      return self.role_write(fail_on_found=fail_on_found, **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/tower_cli/resources/role.py", line 242, in role_write
      fail_on_multiple_results=True, **data)
    File "/usr/local/lib/python2.7/dist-packages/tower_cli/models/base.py", line 301, in read
      r = client.get(url, params=params)
    File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 546, in get
      return self.request('GET', url, **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/tower_cli/api.py", line 299, in request
      kwargs.get('data', None), r.content.decode('utf8'))

(cherry picked from commit 77e01e6abc)
2019-07-17 12:44:31 -07:00
863520b077 Update 58227-update-cce_evpn_bd_vni-to-fix-a-bug.yml 2019-07-17 12:16:46 -07:00
550cac42bc add a changelog fragment to PR 58558. 2019-07-17 12:16:46 -07:00
98725b25f7 update to fix a bug (#58227)
(cherry picked from commit e0f3e404c9)
2019-07-17 12:16:46 -07:00
6491c5cdd7 Backport/2.8/58226 ce_vxlan_gateway: update the regular expression to match the more acc… (#58557)
* ce_vxlan_gateway: update the regular expression to match the more accurate. (#58226)

* Update the regular expression to match the more accurate

* Update the regular expression to match the more accurate

* Update the regular expression to match the more accurate

(cherry picked from commit 2f91266aa9)

* add a changlog fragment to PR 58557.

* Update 58226-update-ce_vxlan_gateway-to-fix-a-bug.yml
2019-07-17 12:14:47 -07:00
d170588ab6 [2.8] Define region for aws_secret (#58722)
* AWS: Fix KeyError in aws_secret lookup (#54792)

(cherry picked from commit 33d0d36eaa)

* changelog
2019-07-17 12:11:24 -07:00
494ec6d752 Backport/2.8/59070 ce_interface : update ce_interface to fix a bug (#59072)
* update ce_interface to fix a bug. (#59070)


(cherry picked from commit 07a598089a)

* add a changelog fragment to PR 59072.
2019-07-17 11:49:09 -07:00
3d999dbe39 docker_* modules: improve tag validation and requests error handling (#58791)
* Add method to validate docker tags.

* Validate tag option of docker_image.

* Fix regex. Always return boolean, not None vs. Matcher object.

* Also catch requests errors.

* Linting.

* Add changelog.

(cherry picked from commit 8d6f1846a6)
2019-07-17 11:48:27 -07:00
1e20cc8bd1 docker_container: add support for nocopy mode (#59043)
* Add support for nocopy mode.

* Add changelog.

(cherry picked from commit fa7c387f9b)
2019-07-17 09:24:21 -07:00
eb8c4eaa01 assign a sane default to yum/dnf lock_timeout, in line with cli (#57383)
* assign a sane default to yum/dnf lock_timeout, in line with cli

Fixes #57189

Signed-off-by: Adam Miller <admiller@redhat.com>

* fix typo in changelog snippet

Signed-off-by: Adam Miller <admiller@redhat.com>
(cherry picked from commit d2dc4c9bc4)
2019-07-16 20:03:51 -07:00
e6c93bea0d Fix gather_facts error/skipped reporting (#58927)
now give back full output from each module executed
 fixes #57204

(cherry picked from commit adea964c3e)
2019-07-16 19:50:37 -07:00
0f292cd886 nmcli: Argument vlanid (int) is changed internally to string (#58963)
* Argument vlanid (int) is changed internally to string
* Modified test case to check vlan id

Fixes: #58949
(cherry picked from commit e8f4ebb22c)
2019-07-16 17:57:45 -07:00
4477af7f90 ovirt: Resolve also list of hrefs 2019-07-16 17:56:37 -07:00
909f68d035 Ovirt vm migrate with state present backport (#58720)
* ovirt vm migrate with state present  (#58136)

* ovirt vm migrate with state present init

* add migrate comment

* add changelog
2019-07-16 17:50:18 -07:00
d3afa17930 Use templated loop_var/index_var when looping include_* (#58866)
Fixes #58820

(cherry picked from commit 7346b699ee)
2019-07-16 15:11:57 -07:00
044923e4ae Fix broken slxos_config due to changed backup options (#58804)
(cherry picked from commit 5b2d1cc24d)
2019-07-16 14:48:28 -07:00
6d146c89f2 Fix nagios module to recognize if file exists and is fifo pipe (#58569)
add felixfontein suggestion to changelogs/fragments/58569-nagios-fifo-fix.yaml

Co-Authored-By: Felix Fontein <felix@fontein.de>
(cherry picked from commit faf50dbace)
2019-07-16 14:46:21 -07:00
6d467a8bd9 Backport machinectl become plugin fixes (#58734) (#58774)
* Correct machinectl become plugin function arguments (#58734)

* Correct get_option function name and change flags to become_flags

* Remove the '--' from the returned command

* add changelog fragment

* change changelog fragment description

* move the -q argument to machinectl before the shell argument to resolve issues with machinectl v230 (see #56571)

(cherry picked from commit 4f642daae5)

* Update PR number in changelog fragment

* Revert "Update PR number in changelog fragment"

This reverts commit 38e6b4785a.
2019-07-16 14:40:36 -07:00
3516406d59 win_get_url - Fix proxy_url not used correctly
(cherry picked from commit a21d40474c)
2019-07-16 14:23:01 -07:00
5fb2a0ae2d Backport PR to resolve NoneType error in issue 57711 (#58706)
* fix 57711 (#58618)

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
(cherry picked from commit 8b844b67b5)

* changelog file
2019-07-16 14:22:18 -07:00
396e48b36e Ovirt update vm migrate docs backport (#58717)
* ovirt update vm migration domunetation (#58577)

* init update docs

* Update lib/ansible/modules/cloud/ovirt/ovirt_vm.py

Co-Authored-By: Alicia Cozine <879121+acozine@users.noreply.github.com>

* add changelog
2019-07-16 14:21:16 -07:00
4519688a95 Ovirt add host retry doc backport (#58718)
* add changelog

* add docs about retry (#58625)
2019-07-16 14:19:40 -07:00
04762f1c26 [stable-2.8] Improve setup_docker tests to work with RHEL 8 GA (#58649)
- use include_vars to set appropriate packages and pip packages per distribution and version
- install an older version of Docker CE on RHEL 8 since a dependency is unavailable
- disable warnings on tasks that are ok
- skip tests for CentOS/RHEL 6
(cherry picked from commit d50c8c2b83)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-07-16 14:18:54 -07:00
6e0f2a37aa [stable-2.8] Improve dnf test formatting and fix RHEL 8 module name (#58648)
- use single include_vars task rather than multiple set_fact tasks
- use multi-line YAML to break up long conditionals
- use version() test rather than direct comparisions
- use different appstream package on RHEL since '@swig:3.0/default' is not working in the GA
(cherry picked from commit 16d6fcf514)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-07-16 14:06:10 -07:00
db7c82ea21 Backport/2.8/55218 (#58639)
* "no macro" command should not be handled by edit_macro(), fixes #55212
(cherry picked from commit 2cdab1379f)

* fixed ios_config issue where the "no macro" command was erroneously handled by edit_macro()
2019-07-16 14:03:45 -07:00
7e8b81ae18 [2.8] VMware: looking up maxMksConnections in incorrect location
maxMksConnections is contained in vim.vm.ConfigInfo not vim.vm.VirtualHardware

Fixes: #58060

Signed-off-by: lijok <28689084+lijok@users.noreply.github.com>
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 63bdd0d6cd)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2019-07-16 14:01:56 -07:00
752c40464f Docs on general precedence (#50201) (#59120)
* Add docs/docsite/rst/reference_appendices/general_precedence.rst

Co-Authored-By: Sandra McCann <samccann@redhat.com>
(cherry picked from commit c2469648e4)
2019-07-16 14:10:32 -05:00
e8450891ba Load Ansible module_utils for ps_argspec validator (#58571)
* Load Ansible module_utils for ps_argspec validator

* fix validation for modules without Requires statement

* Moved future comment to proper location

(cherry picked from commit c3978fed4b)
2019-07-16 12:10:09 -07:00
014b7ecc07 win_domain_user: do not hide error on failures (#58357)
* win_domain_user: do not hide error on failures

* Was a bit too overzealous in the removal

* Remove uneeded sanity ignore rule

(cherry picked from commit c260721ce5)
2019-07-16 12:05:20 -07:00
dd758f582a openssl_privatekey: forgot to add secp256r1 (#58605)
* Forgot to add secp256r1. This one is the interoperable one.

* Add changelog.

(cherry picked from commit 5d5a7d6ebe)
2019-07-16 12:04:37 -07:00
0306b9a907 [2.8] VMware: Set vapp settings while creating VM
vApp Settings can be set while creating VM.

Fixes: #50617

(cherry picked from commit 760dc19284)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2019-07-16 11:56:14 -07:00
28077887c2 2.8: yum: take care of stale/invalid yum.pid (#58457) (#58489)
* yum: take care of stale/invalid yum.pid (#58457)

* yum: take care of stale/invalid yum.pid

* Add changelog

(cherry picked from commit 5064e67d37)

* yum: check whether the lock file disappeared (#58581)


(cherry picked from commit b0f38931b0)
2019-07-15 13:58:53 -07:00
b41199f1f2 Remove reference to Windows for assemble docs (#59082) (#59098)
(cherry picked from commit 66a5ed64ca)
2019-07-15 15:58:14 -05:00
4d9542a789 Backport/2.8/58251 ce_static_route: fix some bugs. (#58251) (#58565)
* ce_static_route:  fix some bugs. (#58251)

* add a util function to ce.

* add a util function to ce.

* update to fix bugs for ce_static_route

* update to fix bugs for ce_static_route

* update to fix bugs for ce_static_route

* update

* update for shippable.

(cherry picked from commit bb33c922f7)

* add a changelog fragment to PR 58565.

* Update 58565-update-ce_static_route-to-fix-a-bug.yml
2019-07-15 13:57:35 -07:00
fb5a6e1250 Cleanup EXAMPLES (#58972) (#59012)
(cherry picked from commit 4ab364eaaf)
2019-07-12 15:36:50 -05:00
840d869c22 Backport/2.8/58936 (#58939)
* Changing LBName used by same task inside azure_rm_loadbalancer (#58936)

fixes #58933

(cherry picked from commit 00d7aed56b)

* Backporting #58933 to stable-2.8
2019-07-10 19:34:21 -07:00
87f0e0405e Add examples (#58819) (#58917)
* Add examples to the ios_vlan docs: vlan using aggregate and move vlan interface example

(cherry picked from commit 5689cc08ce)
2019-07-10 14:43:38 -05:00
9724b230e3 backport/2.8/58231 ce_netstream_aging: update to fix a bug. (#58231) (#58563)
* ce_netstream_aging: update to fix a bug. (#58231)

* update to fix a bug

* update to for shippable.

(cherry picked from commit 715de33467)

* add a changelog fragment.

* Update 58563-update-ce_netstream_aging-to-fix-a-bug.yml
2019-07-08 21:44:11 -07:00
ae17f3842e Backport/2.8/58230 ce_link_status: update to fix a bug (#58230) (#58561)
* update to fix a bug (#58230)


(cherry picked from commit b7630ccb36)

* add a changelog fragment.
2019-07-08 21:43:08 -07:00
eb9f6ce790 Update 58229-update-ce_interface_ospf-to-fix-a-bug.yml 2019-07-08 21:42:01 -07:00
b7c348afda add a changelog fragment. 2019-07-08 21:42:01 -07:00
e072a5b111 update to fix a bug (#58229)
Signed-off-by: xuxiaowei0512 <786018072@qq.com>
(cherry picked from commit b93411a5b2)
2019-07-08 21:42:01 -07:00
e61ea32779 Backport/2.8/58228 ce_evpn_bgp_rr: update to fix a bug (#58228) (#58559)
* update to fix a bug (#58228)


(cherry picked from commit 23139cdbb9)

* add a changlog fragment.

* Update 58559-update-ce_evpn_bgp_rr-to-fix-a-bug.yml
2019-07-08 18:02:27 -07:00
ead3787fc7 Backport/2.8/57947 update ce_vxlan_global to fix bugs. (#57947) (#58553)
* update ce_vxlan_global to fix bugs.  (#57947)

* update to fix bugs.

* add a changelog fragment.

* update a changelog fragment.

(cherry picked from commit 242f160747)

* Update 57947-update-ce_vxlan_global-to-fix-bugs.yml
2019-07-08 18:01:49 -07:00
7f87698e79 backport/2.8/58207 ce_bfd_view: update to fix a bug (#58207) (#58556)
* update to fix a bug (#58207)


(cherry picked from commit 4a6c86715a)

* add a changelog fragment to PR 58556.

* Update 58207-update-ce_bfd_view-to-fix-a-bug.yml
2019-07-08 18:01:01 -07:00
db5ceb2390 Backport/2.8/58200 ce_bfd_global: update to fix a bug. (#58200) (#58555)
* update to fix a bug. (#58200)


(cherry picked from commit 875e7c3e50)

* add a changlog fragment to PR 58200.

* Update 58200-update-ce_bfd_global-to-fix-a-bug.yml
2019-07-08 18:00:21 -07:00
b53ed66d78 backport/2.8/57916 ce_vrrp: update ce_vrrp to fix a bug (#57916) (#58554)
* update vrrp (#57916)


(cherry picked from commit 442d275ae3)

* add a changelog fragment to PR 58554.

* Update 58554-update-ce_vrrp-to-fix-a-bug.yml
2019-07-08 17:58:19 -07:00
c66ee98d23 update ce_interface to fix bugs (#57907)
* update ce_interface

* update ce_interface

* add a changelog fragment.

(cherry picked from commit e02353026d)
2019-07-08 17:57:34 -07:00
15529abbed [2.8] VMware: Warn user about dvswitch permissions (#58758)
Warn user that permissions for a distributed switch must be defined and managed on either
the datacenter or a folder containing the switch.

(cherry picked from commit 5e2471485a)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2019-07-08 15:32:08 -05:00
2c6c631a38 [stable-2.8] Fix unicode error in changelog generation
(cherry picked from commit fed90ef)

Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
2019-07-05 11:47:27 -07:00
3d9c2e8c23 Add a banner message to warn when not on latest documentation (#58526) (#58762)
* add banner to versions that are not latest

(cherry picked from commit 35b6345bdc)
2019-07-05 09:35:39 -05:00
8321cfb2a4 Update Ansible release version to v2.8.2.post0. 2019-07-03 13:41:29 -07:00
3affc30abe New release v2.8.2 2019-07-03 10:36:36 -07:00
6db2c66835 Revert "[stable-2.8] hostname - fix Oracle Linux (#58510)"
This reverts commit dd304b4811.

Only affects 2.9+ as it is introduced by bundling a new version of
distro
2019-07-02 23:59:48 -07:00
6e7fcf38a8 [stable-2.8] Get minor version number for CentOS and Debian (#57814) (#58538)
* [stable-2.8] Get minor version number for CentOS and Debian (#57814)

* Get the most detailed version number from distro.version() for CentOS and Debian
* Update tests and fixtures
* Update fixture generation script to gather distro info and work with Python 3
* Update LinuxMint fixtures
* Cleanup fixture formatting
* Improvements based on feedback from abadger:
    - use unicode since that is what distro returns
    - use frozenset with a tuple
    - include link Debian to bug
(cherry picked from commit ab6a9ef130)

Co-authored-by: Sam Doran <sdoran@redhat.com>

* Add a changelog for the version number in facts change
2019-06-30 16:59:38 -07:00
a553474ca8 [2.8] purefa_user: Fix Incorrect parameter used causing crashes. (#57588) (#58544)
* purefa_user: Fix Incorrect parameter used causing crashes. (#57588)


(cherry picked from commit 35dcd231be)

* purefa_user: add previous return as an alias

Avoid breaking user's playbooks in minor releases

* update changelog
2019-06-29 12:58:50 -07:00
83c04bdec5 [stable-2.8] Skip tests with unsatisfied deps (#55853)
* Skip gitlab tests if dependencies aren't met

* Skip certain unittests if passlib is not installed

* Fix tests with deps on paramiko to skip if paramiko is not installed

* Use pytest to skip for cloudstack

If either on Python-2.6 or the cs library is not installed we cannot run
this test so skip it
(cherry picked from commit 8acf71f)

Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
2019-06-29 11:31:58 -07:00
7a56e1be46 update acl interface. (#57905)
* update acl interface.

* update ce_interface

* update

* add a changelog fragment.

* update

(cherry picked from commit da72644317)
2019-06-29 11:30:37 -07:00
959c07fc5c ce_snmp_location: fix for out of array index. (#57903)
(cherry picked from commit afe7cd3fda)
2019-06-29 11:29:40 -07:00
aee18ffc27 ce_snmp_target_host: update to fix bug: None has no 'lower()' function. (#57904)
* update to fix bug: None has not 'lower()' function.

* add a changelog fragment.

* update changlog fragment.

* Update 57904-ce_snmp_target_host.yml

(cherry picked from commit 78c8ee9261)
2019-06-29 11:28:59 -07:00
2d1791cdae rm redundant log changelog fragment. 2019-06-29 11:28:18 -07:00
0aa55a40b5 add changelog fragment. 2019-06-29 11:28:18 -07:00
fc5eba72bb ce_bgp: update bgp to fix bugs (#57317)
* update bgp to fix bgus

* add a changelog fragment for bgp

(cherry picked from commit 36cfa9e931)
2019-06-29 11:28:18 -07:00
480b47d3b2 Add Oracle scenario guide (#58443)
* Create and update docs/docsite/rst/scenario_guides/guide_oracle.rst
2019-06-29 11:14:42 -07:00
c67980e07b Handle vaulted non-ascii characters for Python2 (#58503)
* Handle vaulted non-ascii characters for Python2

* Add a test to ensure str() no longer raises UnicodeEncodeError

(cherry picked from commit 826f224f02)
2019-06-29 11:13:55 -07:00
7700c5086d [stable-2.8] Use atexit to cleanup tmp dirs (#56532)
* Wrap everything in try/except to avoid leaving files behind
* Add unit tests, integration tests, and changelog
* Do text the correct way.
(cherry picked from commit 6cf6f5a34b)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-06-29 11:13:28 -07:00
dd304b4811 [stable-2.8] hostname - fix Oracle Linux (#58510)
(cherry picked from commit 1a5ae366f4)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-06-28 10:00:12 -07:00
cb70656c99 Fix notifying handlers by using an exact match (#55624)
* Fix notifying handlers by using an exact match rather than a string subset if listen is text rather than a list

* Enforce better type checking for listeners

* Share code for validating handler listeners

* Add test for handlers without names

* Add test for templating in handlers

* Add test for include_role

* Add a couple notes about 'listen' for handlers

* changelog

(cherry picked from commit ec1287ca7e)
2019-06-28 09:22:39 -07:00
8cc128b8f5 [stable-2.8] podman_image_info - Do not fail when nonexistant image name is provided (#57962)
* Account for older versions of Podman lacking 'exists'
(cherry picked from commit 9ba7015458)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-06-28 09:16:24 -07:00
ab97f58764 Fix version_added for gcp_compute
(cherry picked from commit 16610fa399)
2019-06-28 08:03:04 -07:00
b13a5d32c2 the env argument for docker_container wants a dict, not a list (#58475) (#58486)
(cherry picked from commit 3ec4739cc7)
2019-06-28 08:54:27 -05:00
bbbacebf01 [stable-2.8] Make nuage_vspk test more reliable
- don't background the nuage-vsd-sim
- increase the asncy timeout
- use uri to actually query the simulator API to make sure it is ready for connections
(cherry picked from commit 911a2ec6d3)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-06-26 14:47:11 -07:00
af1ca7bfcb Datadog_monitor: Fix docs with datatypes of params (#58371) (#58404)
Fixes: #58342

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>

(cherry picked from commit bc3c90f2f1)
2019-06-26 11:56:53 -05:00
a6ecc6c243 Backport 57507 postgresql_pg_hba bugfix (#58384)
* Merge authentication options back into a single field to prevent losing options beyond the first (#57507)

* Merge authentication options back into a single field to prevent losing options beyond the first

* Add integration test and changelog

* Fix multiple options for local type connections. Also fix sorting errors between local type connections that lack a src

* Build again because of github problems?

* Add spaces before comments

(cherry picked from commit 5cc6486a2b)
2019-06-26 08:32:46 -07:00
084283233a Set correct version and update changelog fragment 2019-06-26 06:35:42 -07:00
2ff60747b4 Add service_account_contents parameter to allign with the modules (#57848)
(cherry picked from commit 7fd10d821c)
2019-06-26 06:35:42 -07:00
4624f8af13 Backport PR for 58315 2019-06-25 15:13:19 -07:00
b2cbbaed26 postgresql_membership: remove debug print (#58315)
(cherry picked from commit cf528c562a)
2019-06-25 15:13:19 -07:00
fd73fe02b4 [stable-2.8] Set _ansible_verbose_override in gather_facts action plugin. Fixes #58310 (#58339)
(cherry picked from commit bc25ac2)

Co-authored-by: Matt Martz <matt@sivel.net>
2019-06-25 15:12:49 -07:00
9406fbe4a2 [stable-2.8] also allow None Type for safe eval (#58269)
(cherry picked from commit 8555b72)

Co-authored-by: markafarrell <mark.andrew.farrell@gmail.com>
2019-06-25 08:08:10 -07:00
95c2763f40 [2.8] ipaddr: Handle ipaddress index in network correctly
* This commit prevents integer indices from being parsed as ip nets
* ipaddr: unit tests for empty string

Fixes #57895

Signed-off-by: Tobias Schramm <tobleminer@gmail.com>
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit e7c39460ed)
2019-06-24 19:35:27 -07:00
b75ff85e9c Use newer test container.
(cherry picked from commit b78d23d4ad)
2019-06-24 15:44:17 -07:00
8f97d6da8b Backport PR of 57391 postgresql_table - fix conflicts 2019-06-24 15:18:25 -07:00
5ebc83bce6 Backport PR of 57391 postgresql_table - bugfix of schema handling 2019-06-24 15:18:25 -07:00
5e177d73a9 openssl_certificate: fix failing SAN comparisons (#58256)
* Fix failing SAN comparison for older cryptography versions due to not implemented __hashh__ functions.

* Fix SAN comparison: IPv6 addresses need to be normalized before comparing strings.

* Add changelog.

* Fix comment.

(cherry picked from commit 75ca8eb42f)
2019-06-24 15:17:41 -07:00
5d3eebb610 openssh_keypair: bugfix make regenerating keypairs via force possible… (#57801)
* openssh_keypair: bugfix make regenerating keypairs via force possible / add invalid file handling

* openssh_keypair: change permissions of read-only file instead of deleting it for regeneration; add changelog fragment

* address review feedbak, refactor

* add integration tests for bigfixes

* linter: fix indent

* fixup integration tests: use force when regenerating an invalid file

* linter: fix indent

* openssh_keypair: address review feedback

* openssh_keypair: fixup, remove backtick

* openssh_keypair: address review feedback

* Only pass 'y' into stdin of ssh-keygen when file exists.

(cherry picked from commit 547a29805e)
2019-06-24 15:17:08 -07:00
7a9fe9ea7b postgresql_privs: bugfix of 27327 - incorrect views handling (#58272)
(cherry picked from commit 278c59b17e)
2019-06-24 15:16:07 -07:00
7c22c81c5c Adjust tests to new error messages for older docker-py versions. (#58253)
(cherry picked from commit 66a4000058)
2019-06-24 15:13:30 -07:00
b7cc98e86e docker_* modules: improve error message when docker-py is missing (#57914)
* Improve error for docker modules when docker-py can't be imported.

* Add changelog.

* Mention platform and Python interpreter in more cases.

* Clarify wording.

* Adjust tests.

(cherry picked from commit 4a12be31fb)
2019-06-24 15:13:30 -07:00
e7356957ee Fix ansible-vault cipher_whitelist (#57272)
* Fix ansible-vault cipher_whitelist Fixes: #57271

* Add changelog for #57272
2019-06-24 15:13:10 -07:00
f4ff3ade1f Remove from sanity ignores. (#57911)
(cherry picked from commit 808cf4aa26)
2019-06-24 15:10:26 -07:00
6e2bcc3d8e Coherence between example and text (use of to_native) (#58279) (#58283)
(cherry picked from commit 4376e88849)
2019-06-24 11:57:00 -05:00
d9155944cf Backport/2.8/57685 (#57794)
* kubevirt: enable/update tests + fix merge_dicts() (#57685)

* Actually run the unit tests and separate them into two files

* Re-add recursion to merge_dicts()

* Update tests to work with current code

(cherry picked from commit 51add5aa79)

* Changelog fragment

* Replace nested function with dict_transformations.dict_merge
2019-06-24 09:26:42 -07:00
2cc8f3afb7 [stable-2.8] hostname - Correct distribution for various Linux distros based on output from distro library (#56936)
* Adjust hostname classes based on output from distro

Corrects the following:
- OpenSUSE Leap
- ArchARM
- Oracle Linux

* Add CoreOS and Clear Linux distributions
(cherry picked from commit bd55617a5b)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-06-21 15:40:22 -07:00
6bd8e3d002 [stable-2.8] Add Fedora 30 to test matrix (#57713)
Remove Fedora 28 from test matrix
(cherry picked from commit 7b9d991f78)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-06-21 15:39:18 -07:00
062074e68e Backport PR to fix ios_facts ansible_net_model (#58174)
* PR to fix where ansible_net_model was not being populated (#58159)

* fix bug 57285

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* minor fix

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* adding TC fix related

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* fix shippable error

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
(cherry picked from commit 58d446e61a)

* fix ansible_net_model

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* Fix ios test for python2 non-ascii paths

(cherry picked from commit eb7e4591ae)
2019-06-21 15:35:33 -07:00
9d82c470ca [stable-2.8] Check that provider['options'] is a dictionary in validate-modules (#58078)
(cherry picked from commit dc8f7b38e6)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-06-21 12:13:21 -07:00
f548999290 PostgreSQL modules: move params mapping from main to connect_to_db() function Backport/2.8/55799 (#57473)
* PostgreSQL modules: move params mapping from main to connect_to_db() function (#55799)

* PostgreSQL modules: move params mapping from main to connect_to_db() function

* PostgreSQL modules: fix postgresql_db

* PostgreSQL modules: fixes

(cherry picked from commit 9b17346d1e)

* postgresql moving params mapping to connect_to_db: added changelog fragment

* postgresql moving params mapping to connect_to_db: add get_conn_params, fix conflicts
2019-06-21 06:32:18 -07:00
6a71aef6c5 docker_*: make modules more robust on Docker errors (#57913)
* Improve general error behavior if a Docker error is not caught.

* Don't die when network doesn't exist.

* Add changelog.

* Make API version always available. Also catch errors when retrieving version.

* Fix error message.

* Adjust fallback error messages.

(cherry picked from commit f8f2738351)
2019-06-20 19:09:57 -07:00
04e94274fb safe_eval fix (#57188)
* just dont pass locals

 - also fix globals
 - added tests

* fixed tests

(cherry picked from commit b9b0b23015)
2019-06-20 18:22:29 -07:00
5e0c623f38 [stable-2.8] Create new instance of the action plugin per until iteration. Fixes #57886 (#58022)
(cherry picked from commit ffd1171)

Co-authored-by: Matt Martz <matt@sivel.net>
2019-06-20 18:21:53 -07:00
169dfc807e [stable-2.8] passwordstore lookup - replace expired GPG key (#58141)
- Replace private key that expired an 2019-06-20 with a key that does not expire
- Document how to generate a new GPG key using an input file
(cherry picked from commit b9d77b997e)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-06-20 15:33:00 -07:00
cd00cb1e8c docker_swarm_service: Added default value for mounts.source (#58039)
* Added default value for mounts.source

* Added the changelog fragment

* Added tests

* Fixed separators

* Moved the teardown section at the end

(cherry picked from commit 122d4164c5)
2019-06-20 13:58:45 -07:00
546cc087aa Use wait_for in prepare_junos_tests.yaml (#57073)
This should reduce the amount of time we are waiting for netconf to come
online.

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
(cherry picked from commit 7f536630eb)
2019-06-20 13:58:08 -07:00
5f719bba18 crypto modules: Improve requirements / error messages (#57868)
* Reformat requirements.

* Include Python lib versions in lib required error messages, if available.

* Update lib/ansible/modules/crypto/openssl_publickey.py

Co-Authored-By: MarkusTeufelberger <mteufelberger@mgit.at>

* Add changelog.

(cherry picked from commit 4188cd299b)
2019-06-20 13:57:33 -07:00
ad00823266 docsite: remove lexers which have been fixed in Pygments 2.4.0 (#57508)
* Remove lexers which have been fixed in Pygments 2.4.0.
* Add Pygments >= 2.4.0 to test runner.
* Fix pages that triggered lexer errors.

Co-Authored-By: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
(cherry picked from commit 505c99265c)
2019-06-20 11:12:16 -07:00
4cb505a310 PR to fix ios bgp TC failure (#58010)
* fix ios bgp tc failure

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* skip test with 15.6(T)2 ios

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* skip test with 15.6(T)2 ios

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
(cherry picked from commit 77b6255305)
2019-06-20 11:01:35 -07:00
c42a6155a9 [stable-2.8] ssh: Ensure debug messages are properly converted to text (#57850)
* ssh: Ensure debug messages are properly converted to text. Fixes #57843

* surrogate_then_replace is default, be less explicit

* We only needed to_text for display, not exceptions
(cherry picked from commit 375ac76)

Co-authored-by: Matt Martz <matt@sivel.net>
2019-06-20 10:58:15 -07:00
7d9a527086 docker_container: Change expected config source (#57969)
* Change expected config source

* make it conditional

* rename property

* Add changelog fragment

* make it string

* Update changelogs/fragments/57969-docker_container-change-expected-config-source.yml

Co-Authored-By: Felix Fontein <felix@fontein.de>
(cherry picked from commit 8c1c2afd02)
2019-06-20 10:40:36 -07:00
e7551ead6c [backport][2.8] add dropdown version selection to docsite (55655) (#58096)
* cherry-pick f3720c90e0, with correct version
2019-06-19 15:50:50 -05:00
80062dc6be removes link from 404 content, explains options (#57971) (#58091)
(cherry picked from commit 8dfa376e1c)
2019-06-19 14:17:49 -05:00
2dac2d1601 Pull request for temp/iosxr-back (#58075)
* Fix python3 encoding with iosxr_config (#57919)

Python3 requires bytes when writing files.

(cherry picked from commit d40c44bd56)
Depends-On https://github.com/ansible/ansible/pull/58073
Signed-off-by: Paul Belanger <pabelanger@redhat.com>

* Add changelog fragment

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-06-19 10:57:10 -07:00
ba30649af9 Backport/2.8/57379 (#58080)
* Duplicate rules were being created if rule index was not set (#57379)

* bug fixes

* Revert "bug fixes"

This reverts commit 2d839ecf35.

* bug fix

(cherry picked from commit e80d6f18ce)

* add fragment
2019-06-19 10:56:15 -07:00
32503a55c4 [stable-2.8] Change integration tests in order to pass on Fedora 30 (#58081)
* Use different package for DNF tests
    Ninja caused errors in Fedora 30. This works in both Fedora 29 and 30.

* Fix git integration tests
    Git >= 2.21.0 has either a bug or change in behavior where it errors when fetching a
    repository containing submodules that are behind the upstream submodule commits.
    It's weird and I don't fully understand it.

    Get around this my checking out specific commits from a repository rather than
    switch the origin URL.

* Fix PostgreSQL tests
    The error message is slightly different
(cherry picked from commit 18feeb51a8)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-06-19 10:55:13 -07:00
7bd503c52a Remove pause logic form junos_netconf tests (#57966)
We can switch to wait_for / meta, as using pause can lead to race
conditions on slower / faster hardware.

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
(cherry picked from commit 8dc51dfe1c)
2019-06-19 10:54:46 -07:00
05c7f7a230 Remove backup from iosxr replace_config test (#57830)
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
(cherry picked from commit af25274d6a)
2019-06-19 10:53:41 -07:00
378ddec5c6 [stable-2.8] Fix RESTCONF media types (#58015)
Fixes #56680
(cherry picked from commit f656959)

Co-authored-by: Nathaniel Case <ncase@redhat.com>
2019-06-19 10:39:34 -07:00
ab50e41a4c Ovirt vnic profile fix backport (#58058)
* Ovirt vnic profile fix (#57936)

* ovirt vnic profile fix init

* ovirt vnic profile fix init

* update syntax whitespace

* document pass_through

* create get entity method

* update example syntax

* update docs

* change force_create style

* add fragment
2019-06-19 06:24:02 -07:00
4a7a8ecf50 Ovirt nic default vnic backport (#58057)
* Ovirt nic default vnic (#57945)

* default vnic init

* ovirt default nic

* add spacing

* use network must be specified

* Update ovirt_nic.py

* Update ovirt_nic.py

* add no vnic profile exception

* correct pep8 syntax

* correct pep8 syntax

* correct pep8 syntax

* correct pep8 syntax

* add fragment
2019-06-19 06:22:25 -07:00
20fa1156b7 Add support for vlan update on ovs bridges (#57168)
This commit adds support for vlan update on openvswitch_bridge module.

(cherry picked from commit 091bebcbf7)
2019-06-19 06:18:30 -07:00
bafc95eb0f More iosxr integration zuul CI test fixes (#57909)
* Ignore `<rpc-reply>` node from candidate and
  running configuration in xml diff

* Add route-policy as prerequisite to BGP coonfiguration
  in integration test

(cherry picked from commit 4a3e14f90b)
2019-06-19 06:16:08 -07:00
1e5e663d42 rds_instance: allow empty iops and storage_type (#57943)
(cherry picked from commit a66687f2d2)
2019-06-18 12:22:27 -07:00
e720df0e5d Fix rds_instance module to run against an (older) existing RDS instance successfully
Only pop Iops param if no storage_type is given. If given and set to wrong type we get to the AWS client error that informs the user

Docs syntax fix

Fix typo in docs

Co-Authored-By: stefanhorning <stefan@hornings.de>

Added changelog fragment for rds_instance bugfix
2019-06-18 12:22:27 -07:00
221a14f674 add fragment 2019-06-18 12:22:03 -07:00
d4f2df7731 Bug Fixes for na_ontap_interface (#57363)
* bug fixes

* bug fix

(cherry picked from commit 98da0e6c99)
2019-06-18 12:22:03 -07:00
0c85472e9b Fix changelog entry (#57979)
(cherry picked from commit 40540f4d98)
2019-06-18 11:21:25 -07:00
ae995a19e2 Fix junos integration zuul CI failures
(cherry picked from commit 0957835a48)
2019-06-18 11:20:39 -07:00
db13610701 fix 57447 bug (#57938)
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
(cherry picked from commit d63ccb5bc8)
2019-06-18 11:18:04 -07:00
b41bbd9564 Backport/2.8/57617 (#57756)
* kubevirt_pvc: fix parameter priority (#57617)

* Add changelog

* Drop superfluous dict()

Co-Authored-By: Toshio Kuratomi <a.badger@gmail.com>
2019-06-18 11:16:18 -07:00
36df5d22a4 gitlab_runner: Fix idempotency when creating runner (#57833)
(cherry picked from commit ec7b18952b)
2019-06-18 10:51:51 -07:00
fa6e39ddf2 Backport/2.8/57320 (#58009)
* new feature

(cherry picked from commit dbeaf30f97)

* add fragment
2019-06-18 10:47:47 -07:00
4c6a1254ef gitlab_group: doc: fix sample code that used 'parent_path' which does not exists (#56256) (#57997)
(cherry picked from commit a7bf728555)
2019-06-18 09:53:17 -05:00
b3c19e5aae Fix missing doc type. (#57884) (#57982)
(cherry picked from commit da6f6cc456)
2019-06-18 09:16:29 -05:00
9da6fc1754 Documentation error (#57924)
* Update changelogs/fragments/contains-test.yaml - allowed filters are 'select/reject' and 'selectattr/rejectattr'.
2019-06-18 09:10:24 -05:00
808c2faba2 show host_vars/ also in --graph (#56307)
* show host_vars/ also in --graph

  fixes #53422

(cherry picked from commit de87b25a45)
2019-06-17 21:58:41 -07:00
ee02a98d19 ansible-test: ios_command cli test should only be network_cli (#56955)
We do not support testing under ansible_connection=local

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-06-17 21:57:07 -07:00
81dc2ac233 [stable-2.8] - Restructure meraki_network execution (#57663)
* Resolve conflicts

* Fixes for the merge since 2.8 and devel are quite different

* Add changelog
2019-06-17 21:56:40 -07:00
ee48ceaf10 win_get_url - Fix handling of restricted headers (#57892)
* fix 57880

* ADded test

* Remove host header from test

* TEst error

* Fix tests

* fix user agent test

(cherry picked from commit 66728cb93f)
2019-06-17 21:47:14 -07:00
c1391fd636 win_shell - fix space escaping for custom executable (#57455)
(cherry picked from commit d0c4914469)
2019-06-17 21:38:16 -07:00
ad0cc5dc1e Backport/2.8/57268 update acl (#57268) (#57890)
* update acl (#57268)


(cherry picked from commit e009936f87)

* add a changelog fragment for PR 57890.

* add a changelog fragment for PR 27890.
2019-06-17 21:37:42 -07:00
da9f3021be Backport/2.8/57264 update vxlan to fix bugs (#57889)
* update vxlan (#57264)

* update vxlan

* add a changelog fragment for the PR 57264

* Update 57264-update-vxlan-to-fix-bugs.yml

update for change request

* Update ce_vxlan_vap.py

remove commented codes.

(cherry picked from commit 5bddd55703)

* add a changelog fragment for PR 57889.

* add a changelog fragment for PR 57889.
2019-06-17 21:35:28 -07:00
9d3d8bec23 backport/2.8/57025 update snmp modules to fix bugs for cloudengine (#57025) (#57888)
* update snmp modules to fix bugs for cloudengine (#57025)

* update snmp modules to fix bugs for cloudengine

* update snmp modules to fix bugs for cloudengine

* update "ce_snmp_contact", list may be out range

(cherry picked from commit 5ac3661176)

* add a changelog fragment for PR 5788.

* add a changelog fragment for PR 57888.
2019-06-17 21:33:57 -07:00
0f651baf41 Backport/2.8/57024 (#57846)
* Adds visibility parameter to gitlab group creation (#57024)

(cherry picked from commit e7bf46d8bc)

* Add changelog for backport/2.8/57024
2019-06-17 21:32:42 -07:00
0cc78fa3af [stable-2.8] Change RHEL8 image name to match changes in ansible-test (#57807)
* Change RHEL8 image name to match changes in ansible-test

Continue to use the beta version of RHEL 8 until we fix tests that are breaking with the GA version.

* Skip ufw integration test on RHEL 8 Beta
(cherry picked from commit 84075fe351)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-06-17 20:07:05 -07:00
188688cc6b gather_facts: clean up tmp files upon completion (#57845)
Fixes #57248

(cherry picked from commit e9c83b7a17)
2019-06-17 20:05:41 -07:00
d46c187470 netbox: inventory: fix implementation of groups option (#57689)
(cherry picked from commit 71a704cc14)
2019-06-17 20:04:24 -07:00
bad860ad46 ovirt_vm: Fix issue in resetting the storage domain lease (#57469)
Currently, there is no way to remove the lease. The patch allows to
reset it by passing an empty string ('') to lease.
2019-06-17 20:03:55 -07:00
15880a0c23 lvg: fix default value type, should be str (#57723)
(cherry picked from commit 793c18506a)
2019-06-17 20:03:13 -07:00
0521b30515 set ovirt disk active default (#57464) (#57748)
* set ovirt disk active default  (#57464)

* set ovirt disk active default value to True

* disk default activate only when creating

* correct comment syntax

* add changelog

* ovirt disk activate update docs

* Update ovirt_disk.py

* Update ovirt_disk.py
2019-06-17 20:01:57 -07:00
466b039b1c backport/2.8/57269 update info-center (#57269) (#57752)
* update info-center (#57269)


(cherry picked from commit 4dc6faea59)

* add a changelog fragment fot PR 57752.
2019-06-17 20:00:11 -07:00
bb6955c5eb Backport/2.8/57257 option is marked as required but specifies a default (#57750)
* option is marked as required but specifies a default (#57257)

* required and default are conflicting

(cherry picked from commit 05e6339c49)

* add a changelog fragment for PR 57750.
2019-06-17 18:29:35 -07:00
fd04094bde acme_*: new test container, tests for IP certificates (#57530)
* Bump container version.

* Use new URLs.

* Add IP certificate tests.

* Disable IPv6 IP from IP certificate.

Background: in CI, the ACME test container apparently has no IPv6 support.
Without IPv6 support, Pebble can't connect to validate, and thus validation
fails.

(cherry picked from commit c50a75a41e)
2019-06-17 18:27:47 -07:00
0690aab25d Actually run valid_include_keywords test (#57687)
(cherry picked from commit e8948f7655)
2019-06-17 18:27:02 -07:00
1b073fccc2 backport/2.8/57187 update ce_facts to fix array out of range bug (#57187) (#57698)
* update ce_facts (#57187)


(cherry picked from commit 229d20b6d9)

* add a changlog fragment for PR 57698
2019-06-17 17:15:41 -07:00
d419a2777c Make netconf_get python3 compat (#57578)
This uses to_text to ensure tostring() from lxml is decoded properly.

Depends-On: https://github.com/ansible/ansible/pull/57638
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
(cherry picked from commit f709d2e2bb)
2019-06-17 17:15:08 -07:00
ce3e358587 Backport/2.8/57183 update lib/ansible/plugins/action/ce.py to fix a bug (#57696)
* update lib/ansible/plugins/action/ce.py to fix a bug. (#57183)

* update lib/ansible/plugins/action/ce.py

(cherry picked from commit 9c3ae4c1f4)

* add a changelog fragment for PR 57696
2019-06-17 17:14:22 -07:00
afb718f001 [stable-2.8] ftd_configuration: fix a bug with response parsing (#57480) (#57676)
* FTD configuration module: fix a bug with response parsing (#57480)

* Update dependence's name to firepower-kickstart

* Check response type before getting attributes

* Add unit test for construct_ansible_facts method

* Update error message

(cherry picked from commit 4fa93d5b9b)

* Add backlog entry
2019-06-17 16:27:42 -07:00
91b703b0f0 [2.8] VMware: Handle VMs with no configurations
Sometime VMs does not return any configurations which leads
to failing the inventory plugin.

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 7505550500)
2019-06-17 16:23:40 -07:00
dfc47bd6d6 win_pagefile: not using testPath (#57093)
* win_pagefile: not using testPath

* Added changelog

(cherry picked from commit a87495d07c)
2019-06-17 15:48:47 -07:00
133c7adad5 Return results even when the cache is disabled (#55505)
* Return results even when the cache is disabled

By default the cache is disabled and so the results of the API call
are not placed in there for the return statement to fetch.

* Always update self._cache to return

(cherry picked from commit cf00883c9d)
2019-06-17 15:47:20 -07:00
07806f36b6 Remove hardcoded ansible user for junos_user integration tests (#56452)
It is possible we are using a different username then 'ansible' for
testing junos. By using ansible_user_id, this should be a more dynamic
check.

Depends-On: https://github.com/ansible/ansible/pull/57639
Depends-On: https://github.com/ansible/ansible/pull/57638
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-06-17 15:46:33 -07:00
4b0c8f1a12 [FactCache] define first_order_merge method (#55781)
* Add first_order_merge method

Add test for updating a key that already exists

* changelog

(cherry picked from commit 598a058afe)
2019-06-17 15:45:58 -07:00
dcb06ab78f Fix lack of support for Cumulus Linux with Hostname module in Ansible v2.8.0. (#57493)
(cherry picked from commit 1661c87bae)
2019-06-17 15:13:06 -07:00
1422785f1f [stable-2.8] Provide a better error when python-dnf install fails (#57622)
(cherry picked from commit c3ca375)

Co-authored-by: Matt Martz <matt@sivel.net>
2019-06-17 14:24:04 -07:00
b88a39fc22 add changelogs fragments 2019-06-17 14:23:29 -07:00
2f2a54f67f update ospf modules to fix bugs as software version changes (#56974)
(cherry picked from commit b7f4e2a190)
2019-06-17 14:23:29 -07:00
dd678197d3 Ovirt host facts fix (#57793)
* ovirt host facts fix (#57790)

* add changelog
2019-06-17 13:01:47 -07:00
9e100212e2 Backporting requires order option in new implementation 2019-06-17 13:01:08 -07:00
7b73604058 Issue 56430 (#57147)
* Adding integration test for 127.0.0.1/32 and ::1/128.

* Making sure file is not corrupted when render fails

* Fixes #56430

* Adding changelog for MR 57147/Issue 56430
2019-06-17 13:01:08 -07:00
3368780cbd Added environment variables to gcp_compute to align with gcp_* modules (#57776)
Added all variables that are also used by the gcp_* modules as described
in the docs
https://docs.ansible.com/ansible/latest/scenario_guides/guide_gce.html#providing-credentials-as-environment-variables

(cherry picked from commit 8e9f29c40c)
2019-06-17 12:55:57 -07:00
335c2026fa Add missing changelog fragments
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-06-17 12:55:30 -07:00
0a8d237238 Issue55222 (#55223)
* Python 3.7 compatibility for re.Pattern (Fixes #55222)

* Python 3.7 compatibility for re.Pattern (Fixes #55222)
2019-06-17 12:55:30 -07:00
57e323dd8f Fix ios_smoke failure
Set ansible_buffer_read_timeout to be larger then
ansible_command_timeout, as both appliance / controller are on the same
physical network and we are not triggering ansible_command_timeout.

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-06-17 12:55:30 -07:00
7f1888cef4 PR to fix the IOS_NTP integration TC failure (#57481)
* ios_ntp tc fail

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* ios_ntp tc fail

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* fix for local connection

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-06-17 12:55:30 -07:00
545b5af2fb ios_ntp: Switch interface to GigabitEthernet0/1 for tests (#56964)
* ios_ntp: Switch interface to GigabitEthernet0/1 for tests

Lets use an interface we know that exists for testing, in some cases
Loopback0 maybe not be configured.

Signed-off-by: Paul Belanger <pabelanger@redhat.com>

* ios_ntp: properly register result variable for testing

This is currently broken, and tests don't work. Fix this by properly
registering the result variable.

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-06-17 12:55:30 -07:00
b381967194 Fix syntax issue with ios_ntp tests
This was missing a yaml anchor.

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-06-17 12:55:30 -07:00
ac2f1c4a26 ansible-test: use become for connection=local on ios_user
ios_user requires escalated privledges, rather then doing this in the
inventory, we can just add it into the playbook tasks.

Also add missing provider settings for authorize.

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-06-17 12:55:30 -07:00
7b2906243b Add missing scp dependency for ios_file tests
This was required to be installed by a human, out side of our testing.
Add it so ansible-test can now manage.

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-06-17 12:55:30 -07:00
034d030a89 [2.8] VMware: Fix vmware_guest_move undefined VM name error
* Updated testcase
* Added check mode support
* Added check for mutual exclusive for Name and UUID

Fixes: #57580

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 00604d3f2c)
2019-06-17 12:51:13 -07:00
e4a70d2822 Remove required field on service_account_file in gcp_compute plugin inventory (#57345)
(cherry picked from commit 1d76635206)
2019-06-17 11:39:21 -07:00
dbaecb648e Improve speed of the gpc_compute dynamic inventory (#57591)
To get all instances gcp_compute made a call to the Google API for each
zone separately. Because of this if all zones needed to be queried
fetching hosts lasted 30+ seconds. Now the module will use a single
query that will return all the instances, so the execution should last
just a few seconds.

This commit also suppresses a warning from the google-auth library about
using user credentials because if an Ansible user wants to use user
credentials, there is no need to warn him about it.

(cherry picked from commit f6a0f9874d)
2019-06-17 11:38:16 -07:00
01386cca4a preserve same order as inventory manager when using host lookup (#57769)
* preserve same order as inventory manager when using host lookup (#55331)

* preserve same order as inventory manager when using inventory_hostnames lookup

add a test

* move generic code

(cherry picked from commit afb5e02c19)

* changelog
2019-06-17 11:22:21 -07:00
64a83a031a Adds custom 404 with cowsay image (#57422) (#57955)
* Adds custom 404, updates CI reqs, TOC on 404 page links to latest

(cherry picked from commit 5658b2ee3e)
2019-06-17 11:55:03 -05:00
395b722585 Bugfix: Creating two IPs in single run of netbox_ip_address (#56550)
* Found bug, fixed by moving the serialization of objects out of try while creating objects

* Added changelog to document fix

(cherry picked from commit d07d394779)
2019-06-14 19:24:06 -07:00
ea735a1602 Fix --diff to produce output when creating a new file (#57744)
* Fix --diff to produce output when creating a new file

Fixes #57618

* Make the check more defensive

(cherry picked from commit 1fa7bfcd5d)
2019-06-14 19:23:08 -07:00
2645c43a2b backport/2.8/57270 update vrf to fix bugs (#57270) (#57757)
* update vrf to fix bugs (#57270)

* update vrf

* update vrf

(cherry picked from commit 76e06fa7c2)

* add changelog fragment fot PR 57757.
2019-06-14 19:21:40 -07:00
814349c368 Backport/2.8/56976 update ce_ntp.py to fix bug (#57175)
* update ce_ntp.py and remove the root tag name to find all nodes (#56976)

* add a maintainer

* update ce_ntp.py and remove the root tag name to find all node

* update ce_ntp.py and remove the root tag name to find all node

(cherry picked from commit 0137c4343b)

* add changelogs  fragments

* add changelogs  fragments
2019-06-14 19:20:07 -07:00
211a2da2b9 Backport to fix bug in nios member module (#57218)
* Bug fixes for the nios member object (#56045)

* Bug fixes in api.py

* Examples updated in nios_member.py

* Update lib/ansible/module_utils/net_tools/nios/api.py

Co-Authored-By: Sumit Jaiswal <sjaiswal@redhat.com>

(cherry picked from commit d998791b4a)

* Create 56045-nios-member-module.yaml

* Bug fixes to nios_member module
2019-06-14 11:51:44 -07:00
35ffd2825d Make purefa_pgsnap module handle its own exit correctly
(cherry picked from commit d4c0269fbb)
2019-06-14 09:35:21 -07:00
daef4d9c95 openssh_keypair: make fingerprint result a string (#57295)
The extant documentation says that the fingerprint return value is a
single string, but it is currently being returned as a split list.
Convert the returned value to a string as documented, and add some
basic test-case coverage for the return values.

(cherry picked from commit 6f06fc9945)
2019-06-11 19:54:54 -07:00
074b71f7fe win_chocolatey - honour version when bootstrapping chocolatey and fix package listing - 2.8 (#57380)
* win_chocolatey - honour version when bootstrapping chocolatey and fix package listing (#57208)

* win_chocolatey - honour version when bootstrapping chocolatey

* skip upgrade all step

* Fix install latest step

* Remove test changes now that Chocolatey is released

* tweak the package version detection

(cherry picked from commit b5b75daaa5)

* removed disabled alias
2019-06-11 19:54:11 -07:00
b8a41594fc nxos_snmp_user, nxos_snmp_host integration test fixes. (#57201) (#57443)
* Fix nxos_snmp tests

* Add imagetag check for nxos_snmp_user test

(cherry picked from commit 87422ea7e7)
2019-06-11 19:53:28 -07:00
28db439e01 nxos_logging facilties defaults (#57144) (#57444)
* Add new logging facilties defaults (#57144)


(cherry picked from commit 1dc3fe5317)

* changelog

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2019-06-11 19:53:02 -07:00
736e26f019 Fix nxos_vtp_version test (#57358) (#57445)
(cherry picked from commit 870d8bf10b)
2019-06-11 19:52:19 -07:00
b428d36724 nxos_install_os: Fix nxapi local failures (#55993) (#57446)
* nxos_install_os: Fix nxapi local failures (#55993)

* Fix nxapi failures

* Remove logit debug calls

* Remove msg_timestamps

* Fix code alignment issue

(cherry picked from commit 7c73dd3e78)

* changelog

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2019-06-11 19:51:50 -07:00
30aba1a7fd nxos_vlan purge fix 2.8 (#57442)
* nxos_vlan: fix broken purge behavior (issue #57101) (#57229)

* nxos_vlan: fix broken purge behavior (issue #57101)

Symptoms/Analysis:
- `nxos_vlan` `purge: true` would fail when `purge` was trying to delete all unspecified vlans, including vlan 1.
- `nxos` devices do not allow removing vlan 1 and raise a cli exception error
- Previous fix #55144 caused a side effect when `purge` was used: vlan changes specified by `aggregate` were ignored; e.g.
 - vlan 4 is not present; playbook specifies `aggregate: { vlan: 4 }, purge: true`
 - results in proper purging but vlan 4 is not created

Solutions:
- ignore vlan 1 when purging
- remove the `not purge` check from state present logic

Added additional unit tests and integration tests.
Tested against all regression platforms.

* PEP fixes

* Add agg_show_vlan_brief.txt fixture

* Add warning for removing vlan 1

* change method name check

(cherry picked from commit 6bb13bbb84)

* changelog

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2019-06-11 19:50:35 -07:00
769cc117a7 group_chars: default change warning only when needed
(cherry picked from commit 1fb0335243)
2019-06-11 19:49:18 -07:00
dw
b6d74466d4 [stable-2.8] Fix file descriptor leak in lineinfile module. (#57328)
(cherry picked from commit 3fadf4a1cb)

Co-authored-by: dw <dw@botanicus.net>
2019-06-11 19:48:42 -07:00
e6e797af6e Backport PR to fix the bug 57215 & 56300 under Nios Host_Record module (#57347)
* PR to fix the bug 57215 & 56300 under Nios Host_Record module (#57221)

* fix bug 57215 & 56300

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* fix bug 57215 & 56300

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* shippable error fix

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* review comment fix

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
(cherry picked from commit e620e27609)

* B_PR for PR57721

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* renaming changelog file

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* renaming changelog file

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
2019-06-11 19:48:07 -07:00
95b1b42d4f improve conditional warnings (#57190)
* Fix order for warning on templated conditionals

Fix bare variable warnings when the variable is a boolean

* changelog

* Add tests for cases that should and should not give warnings

If the behavior may change when the default behavior for CONDITIONAL_BARE_VARS becomes False there should be a warning. Boolean type conditionals will not change in behavior so don't warn.

* oops, forgot to add files

* typo

(cherry picked from commit 21cd24a0dd)
2019-06-11 19:44:01 -07:00
86cb4089ca Handle binding:vnic_type as optional (#55526)
According to the OpenStack Networking API
the attribute binding:vnic_type of a port is optional.
This change enables the os_port module to handle
binding:vnic_type as optional.

(cherry picked from commit bc50a52ee2)
2019-06-11 12:38:22 -07:00
737a904451 [stable-2.8] Limit tests to paramiko < 2.5.0.
(cherry picked from commit 1e6edf2ccc)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-06-10 16:13:20 -07:00
485ebaa799 [stable-2.8] Fix RuntimeError on Python 3.8. (#57520)
* [stable-2.8] Fix RuntimeError on Python 3.8.
(cherry picked from commit b9a0086aac)

Co-authored-by: Matt Clay <matt@mystile.com>

* Add changelog fragment.
2019-06-10 15:21:15 -07:00
208bb48942 Revert "Disable the rabbitmq tests for now"
This reverts commit 5f47ab958f.

(cherry picked from commit 047fd3cfbc)
2019-06-10 14:46:47 -07:00
0812a08ea3 [stable-2.8] Use bintray to install erlang for rabbitmq tests.
(cherry picked from commit b2791718e5)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-06-10 14:46:47 -07:00
33c8f9d224 [stable-2.8] Fix podman_image_info parsing of podman output.
Stripping the output from `podman image ls -q` prevents passing
a blank image ID to `podman image inspect`, which would fail.
(cherry picked from commit a05be890ad)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-06-10 14:44:47 -07:00
318f46c829 Revert "Temp disable podman_image_info tests."
This reverts commit f6600b5b99.
2019-06-10 14:44:47 -07:00
5928e4fc13 Clarify documentation on dockerfile. (#57570) (#57631)
(cherry picked from commit 433e00c219)
2019-06-10 10:38:44 -05:00
e07c7688c2 Use correct variable for run_once regardless of batch example (#57077) (#57410)
Changes example to `when: inventory_hostname == ansible_play_hosts_all[0]` to really run run_once regardless of serial.

(cherry picked from commit dea9644d21)
2019-06-10 10:36:43 -05:00
c442508e30 acme_certificate: fix docs (#57557) (#57567)
* Fix indentation.
* Forgot when condition for second acme_certificate call.

(cherry picked from commit 9d67f476e6)
2019-06-10 10:26:58 -05:00
d701910bf0 Fix an RST link to the changelog config in docs (#57419) 2019-06-10 09:59:08 -05:00
819507840f Update links to AWS module guidelines to target the devel docsite since (#57465)
the GUIDELINES.md has been removed from devel on github.
2019-06-07 09:59:58 -05:00
bf9f21cc95 Update Ansible release version to v2.8.1.post0. 2019-06-06 22:05:08 -07:00
a31a8c2a53 [stable-2.8] Disable the rabbitmq tests for now
The erlang-solutions repository is broken for Ubuntu18 (They did not
sign their repository metadata).  For now, disable the rabbitmq tests
which depend upon that.  I'll open a PR with a revert of this commit.
We can watch it to see when it passes in Ci to know that the
erlang-soutions repository has been fixed
(cherry picked from commit 5f47ab9)

Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
2019-06-06 15:22:38 -07:00
9a2e582eb2 New release v2.8.1 2019-06-06 11:19:28 -07:00
f6600b5b99 Temp disable podman_image_info tests.
The fix in https://github.com/ansible/ansible/pull/57433 is required for tests to pass.
2019-06-05 15:04:57 -07:00
9f1bb4e142 [Backport] Roadmap and dates for 2.9 (#57428)
* adds 2.9 roadmap, reversed local TOC order (#56371)
(cherry picked from commit f88b660717)

* 2.9 roadmap dates (#57420)
* add dates to 2.9 roadmap, remove alpha phase
(cherry picked from commit 96693600f9)
2019-06-05 15:48:54 -05:00
69696dc83e update docsite breadcrumbs from sphinx_rtd_theme (#57316) (#57423)
* improve breadcrumbs
* get edit on github working again
(cherry picked from commit 3136007032)
2019-06-05 14:58:35 -05:00
77e88ae5d4 Mark win_chocolatey as unstable in 2.8 until next release 2019-06-05 06:15:05 -07:00
4ddc8b4769 [2.8] VMware: Use short unique task name for schedule task
* Updated documentation
* Updated task name logic

Fixes: #56987

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2019-06-03 13:32:56 -07:00
36580c4450 Not native, but text (#55676) (#56935)
* Not native, but text (#55676)

* use to_text instead of to_native
* cleaned up some imports and other pyflakisms
* fix missing lib messages

(cherry picked from commit 27dcf8aaab)

* readded still used import
2019-06-03 09:42:14 -07:00
503eaea2ad Improve docs w.r.t. networks_cli_compatible. (#56971)
(cherry picked from commit b33c9dad40)
2019-06-03 09:35:25 -07:00
5c88199db3 [2.8] docker_image: fix compatibility bugs (#57085)
* docker_image: fix default handling of old docker-build options nocache and rm (#56610)

* Fix usage of nocache parameter.

* Fix defaults.

* Add changelog.

(cherry picked from commit 56e2d48612)

* docker_image: fix module failing when build option is used without specifying path (#56940)

* Fix module failing when build option is used without specifying path.

* Add changelog.

(cherry picked from commit 86928a5f74)

* Extend docker_image tests. (#57090)


(cherry picked from commit c54d79bc13)
2019-06-03 09:34:58 -07:00
6857fb2c39 k8s: Fix .to_dict not needed (#56147)
* k8s: Fix .to_dict not needed

* Add changelog fragment

(cherry picked from commit 7364e79c0d)
2019-06-03 09:31:55 -07:00
059589794e Fix assignments in docker tests. (#57249)
(cherry picked from commit 7cd229aa97)
2019-06-03 09:31:15 -07:00
d2538a0dea [stable-2.8] Plugin paths need to be sent in exectutor, too (#57126)
* Combine `_start_connection` methods into executor
(cherry picked from commit 4142cd5)

Co-authored-by: Nathaniel Case <ncase@redhat.com>
2019-06-03 09:25:15 -07:00
3ae459b3b4 Vyos interface desc fix28 (#57228)
* vyos interfacefix and  test cases

Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com>
(cherry picked from commit be1820d3af)

* backport 28

Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com>
2019-06-03 09:21:12 -07:00
f0664476b7 postgresql_db: add note to doc about pg_dump Backport/2.8/57297 (#57308)
* postgresql_db: add note to doc about pg_dump (backport of #57297)
* Update lib/ansible/modules/database/postgresql/postgresql_db.py
2019-06-03 10:23:41 -05:00
9184255340 Adjust assorted terminology and wording around product offerings. (#57242) (#57245)
* Adjust assorted terminology and wording around product offerings. 
(cherry-picked from c493593b4b) 

* Update docs/docsite/rst/dev_guide/style_guide/trademarks.rst
* Update docs/docsite/rst/user_guide/modules_support.rst
* Update docs/docsite/rst/reference_appendices/tower.rst
2019-05-31 14:56:35 -05:00
2128e7c14f Windows FAQ: fix reference
(cherry picked from commit 8bf56642bd)
2019-05-30 11:33:52 -07:00
e826eca1f2 Fix junos_facts test (#57065)
This commit fixes a non-passing junos_facts integration test, as it was
using a non-ordered frozenset to assert its result.

(cherry picked from commit 0ada6b8d8d)
2019-05-30 11:12:27 -07:00
19ffe970f7 Backport/2.8/57057 add terminal initial prompt for initial connection (#57178)
* add terminal initial prompt for initial connection (#57057)


(cherry picked from commit 9e1f184b2d)

* changelogs fragments

* update changelogs fragments
2019-05-30 10:33:01 -07:00
01c6915eba Backport/2.8/57163 (#57173)
* kubevirt_pvc: improve failure handling (#57163)


(cherry picked from commit cac34ac568)

* kubevirt_pvc: changelog fragment
2019-05-30 10:16:01 -07:00
7d0237f4db update pkg_mgr.py for Amazon Linux support (#56618)
(cherry picked from commit 4c00fc7b32)
2019-05-30 10:11:41 -07:00
f79af725fc Backport/2.8/56912 (#57161)
* Update rabbitmq_queue.py (#56912)

change description for when `state=absent`

(cherry picked from commit 00067c8d54)

* Add changelog fragment for PR 56912
2019-05-30 09:47:02 -05:00
4591f36dcd kubevirt_vm: Improve create VM from template (#56833)
* kubevirt_vm: Improve create VM from template

* kubevirt_vm: Fix checking of VM update

* kubevirt: Fix RS and presets template parameters

* kubevirt_vm: simplify previous change + update comments (#56897)
2019-05-30 07:41:39 -07:00
77e50980b5 Nxos facts fix backport (#57150)
* text format fan info mismatch and module info check (#57009)

Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com>
(cherry picked from commit b143918f30)

* nxos facts fix backport to stable 2.8

Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com>
2019-05-30 06:24:59 -07:00
0365d73102 Backport/2.8/57135 (#57137)
* Fix netapp_e_iscsi_target chap secret size and clearing functionality.

* Add changelogs fragment for PR #57135
2019-05-29 11:55:59 -07:00
f511bec4ff Win_hostname module: Change name check to WMI (#56420)
* Change name check to WMI

* Changelog fragment

* Fixed per review

(cherry picked from commit 94566ed79c)
2019-05-28 17:17:11 -07:00
0d48ead822 docker_container: fix container creation with networks_cli_compatible=yes (#56687)
* Fix behavior.

* Add changelog.

* Add simple test to prevent #56620.

(cherry picked from commit d8dcd20294)
2019-05-28 17:14:09 -07:00
0128006023 Make second group match of ufw status output optional (#56678)
* Make second group match of ufw status output optional

Fixes #56674

* Fix comparison logic.

* Add changelog fragment

(cherry picked from commit 1d22909f7c)
2019-05-28 16:28:33 -07:00
7d9aa0d829 Apply tags conditionally so that the module does not throw up an erro… (#56710)
* Apply tags conditionally so that the module does not throw up an error when using an older distro of openstacksdk

(cherry picked from commit c517538bd8)

* Update 56575-os_stack-apply_tag_conditionally_to_fix_the_module.yaml
2019-05-28 16:21:24 -07:00
776aa014ac route53_facts: add check mode support (#56900)
* route53_facts: add check mode support

* route53_facts: add changelog fragment mentioning check mode support

* route53_facts: alter changelog fragment type from `minor_changes` to `bugfixes`

* Update changelogs/fragments/56900-route53-facts-check-mode.yaml

Co-Authored-By: Felix Fontein <felix@fontein.de>
2019-05-28 15:37:26 -07:00
64890cc456 [2.8] VMware: Fix python 3 incompatibility
Add Python2 and Python3 compatible `string.translate` for hostname customization.

Fixes: #54118
(cherry picked from commit 8f89d1d3da)
2019-05-28 15:29:21 -07:00
116262e5e8 Backport hcloud_volume attach step should be idempotent 2019-05-28 15:06:19 -07:00
0a624eaad3 [2.8] [docker_network] Fix idempotency when using aux_addresses in ipam_config (#56972)
* [docker_network] Fix idempotency when using aux_addresses in ipam_config (#56901)

* [docker_network] Fix idempotency when using aux_addresses in ipam_config

Mismatch between keys returned by Docker API (AuxilliaryAddresses) vs
expected by Ansible module (aux_addresses) resulted in tasks always
have status 'changed'. The existing code normalizing one set of
keys to another missed this special case where converting
CamelCase to lowercase is not sufficent.

Please see
https://github.com/moby/moby/blob/master/api/types/network/network.go
for reference.

* Correct keywords formatting in changelog file

Co-Authored-By: Felix Fontein <felix@fontein.de>
(cherry picked from commit 37df89b2d8)

* docker_network: Integration tests for IPAM config idempotence (#56975)

Integration tests for pull request #56901 which fixes found issues with idempotence.

(cherry picked from commit 6a50c6aae4)
2019-05-28 15:01:52 -07:00
4388886d48 docker conncetion plugin: accept 'dev' as 'newest version' (#56947)
* Accept 'dev' as 'newest version'.

* Add changelog.

* Fix YAML.

(cherry picked from commit 2f523ad08e)
2019-05-28 15:00:10 -07:00
4ef102ae79 Correct repository name to install (#56991) (#57078)
(cherry picked from commit e17434c19f)
2019-05-28 14:33:11 -05:00
4b1c9c1b29 fixed doc build errors (#56735) (#57080)
(cherry picked from commit ac22cd31b6)
2019-05-28 14:32:47 -05:00
5a1985cb06 [stable-2.8] eos_l2_interface handle "Interface does not exist" (#56787) (#56982)
* [stable-2.8] eos_l2_interface handle "Interface does not exist" (#56787)

* Quick and dirty attempt to handle eapi error

* Well this should probably change

* Hopefully this works correctly?

* Fix check_rc handling with httpapi

* Add tests that should hopefully cover the error

* Fix warnings

* Improve tests.
(cherry picked from commit cebb363fcc)

Co-authored-by: Nathaniel Case <ncase@redhat.com>

* Add changelog

* Remove backport overreach

* Fix debug statements in new tests while I'm here
2019-05-28 07:18:11 -07:00
0a3410f5c6 ansible-test: prefer shlex.quote (#56823)
(cherry picked from commit 484c023316)
2019-05-26 08:53:13 -07:00
cb6ece6b4e [stable-2.8] Don't validate ip address for mgmt interface (#56136)
It is possible the EOS appliance doesn't have an IP address on the
management1 interface, instead just check we have found that interface.

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
(cherry picked from commit f9589bd)

Co-authored-by: Paul Belanger <pabelanger@redhat.com>
2019-05-24 14:29:01 -07:00
d617e6cd84 [stable-2.8] eos_config: Fix test issues (#56180) (#56916)
* [stable-2.8] eos_config: Fix test issues (#56180)

* Alter tests to pass

* Change diff_against to make changed work again

* Add another diff_against

* Expose supports_sessions across all EOS connection types

* Change session warning to failure

* supports_sessions needs to be a method to survive the rpc boundary

* Alter tests to match
(cherry picked from commit 0bead36)
2019-05-24 14:27:59 -07:00
39c5758a87 [stable-2.8] Don't detect update if vrf not set. (#56235) (#56421)
* [stable-2.8] Don't detect update if vrf not set. (#56235)
(cherry picked from commit ea41bbc)
2019-05-24 14:27:32 -07:00
0a40b0ed45 [stable-2.8] Update instructions for running module directly (#56883)
The internals of AnsiballZ changed silghtly
(cherry picked from commit 50b1a66649)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-05-24 12:08:49 -07:00
92e4a98219 [stable-2.8] Don't fail trying to read boot image without enable (#56126) (#56134)
* [stable-2.8] Don't fail trying to read boot image without enable (#56126)

Also add a message when network_os_image can't be acquired.
(cherry picked from commit 3d9da0c)

Co-authored-by: Nathaniel Case <ncase@redhat.com>

* Add changelog

* Fix changelog
2019-05-24 11:54:22 -07:00
20d17fe0ea [stable-2.8] Validate types before asserting lengths (#56882)
(cherry picked from commit 9c5b721)

Co-authored-by: Matt Martz <matt@sivel.net>
2019-05-24 11:33:24 -07:00
9844ea49c5 Always keep subset data for callbacks (#56881)
results were only being preserved during no_log
  fixes #56704

(cherry picked from commit 4adb7cfb5f)
2019-05-24 11:33:00 -07:00
eb9d192130 yum: handle "_none_" value for proxy (#56725)
* yum: handle "_none_" value for proxy

Fixes #56538

* Fix sanity check

(cherry picked from commit 7b9d7e6b5c)
2019-05-24 10:52:35 -07:00
bd011688dd [stable-2.8] Ensure uri module always returns status even on failure (#56240)
- Also return url and update docs for other values to indicate they are only returned on success.
- Add integration tests
- Use info variable for common return values
- Use -1 as default status rather than None. This is lines up with with existing code in urls.py
- Add unit tests to ensure status and url are returned on failure
(cherry picked from commit 8f4f3750fe)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-05-24 10:52:05 -07:00
e71b4e2e57 Fix workload profileId indexing in netapp_e_volume module
This commit reflects the changes in PR #56747 in the devel branch
2019-05-24 10:50:48 -07:00
73484808c8 Preserve ssh error (#56460)
* Preserve ssh error

* more details on fail

* removed redundant caption to errors

(cherry picked from commit 22b9525aa9)
2019-05-24 10:28:13 -07:00
c52335a616 Make ansible adhoc work with include_role (#56163)
* Make ansible adhoc work with include_role

Fix logic condition so that include_role works
without

```
ERROR! 'async_val' is not a valid attribute for a IncludeRole

The error appears to be in 'None': line 0, column 0, but may
be elsewhere in the file depending on the exact syntax problem.

(could not open file to display line)
```

* Add include_role test for adhoc

(cherry picked from commit cd95843ea5)
2019-05-24 10:26:45 -07:00
53cfa05568 Prevent vars premature templating (#56117)
Avoid premature vars templating
  * added tests
  * avoid 'is template' warning in vars, since we want them for latter templating

(cherry picked from commit 1da47bfa8c)
2019-05-24 10:25:42 -07:00
206087e342 Backport/2.8/56703 (#56829)
* postgresql_db: bugfix 56703 (#56734)

(cherry picked from commit f9108e23e7)

* postgresql_db bugfix (backport/2.8/56703)
2019-05-24 09:31:47 -07:00
6c078e18a8 openssl_pkcs12: fix crash due to wrong path used for loading key in check mode (#56808)
* Used wrong path for private key.

* Add changelog.

(cherry picked from commit 391a1042c2)
2019-05-24 09:31:22 -07:00
5f67bd5ef9 CLI docs include license not copyright (#56871) (#56874)
(cherry picked from commit fc94d79c47)
2019-05-23 17:18:50 -05:00
3115c95b4c postgresql_ping: fixed a typo in the module documentation (Backport/2.8/56608) (#56842)
* Fix typo in pg server ping (#56608)

(cherry picked from commit 52a89b290f)

* postgresql_ping: fix typo (backport/2.8/56608)
2019-05-23 13:58:31 -05:00
9ec7cdc4b0 Update RHEL repo for Ansible 2.8 (#56859) (#56868)
(cherry picked from commit 3129fc0b17)
2019-05-23 13:56:45 -05:00
48189b95cd Copyright fix for 2018 (#56860) (#56869)
* update copyright in footer

* remove extraneous copyright from cli commands

(cherry picked from commit f9b43a0f68)
2019-05-23 13:55:46 -05:00
8881adc098 [stable-2.8] win_get_url: ignore defender false positive in tests (#56812)
(cherry picked from commit 124400f319)

Co-authored-by: Jordan Borean <jborean93@gmail.com>
2019-05-22 23:57:38 -07:00
c92257daeb fix bad rename in cp conflict fix 2019-05-22 15:04:44 -07:00
bc8f317637 fix collection adjacent loading with --playbook-dir (#56194)
* added inventory adjacent test

(cherry picked from commit 69b2d7e0f3)
2019-05-22 15:04:44 -07:00
40b3619c9a ACI: Do not encode query_string (backport) (#56784)
* Revert "ACI: Implement encoded query_string"

This reverts commit 1690af04fe.

* Add changelog fragment
2019-05-22 15:02:03 -07:00
ed0e874e47 Backport/2.8/55954 (#56810)
* Update cnos_vrf.py Backport coverity fix

(cherry picked from commit ac546457c8)

* Adding change log fragmet.

* Update cnos_vrf.py

* Merge issue rectified

* Update cnos_vrf.py
2019-05-22 15:00:30 -07:00
f35a37f289 [stable-2.8] Whitelist listen as a valid keyword on TaskInclude (#56586) (#56597)
* [stable-2.8] Whitelist listen as a valid keyword on TaskInclude (#56586)

* Whitelist listen as a valid keyword on TaskInclude. Fixes #56580

* Move 'listen' to HandlerTaskInclude

* Remove trailing newline
(cherry picked from commit 576593e)

Co-authored-by: Matt Martz <matt@sivel.net>

* Improvement on setting VALID_INCLUDE_KEYWORDS on HandlerTaskInclude (#56801)


(cherry picked from commit 8bb3274711)
2019-05-22 14:58:30 -07:00
a42c9d17de vmware_vm_facts: fix the support with regular ESXi
Ensure the module still work with the ESXi where CustomFieldsManager
does not exist.

From: https://www.vmware.com/support/developer/converter-sdk/conv60_apireference/vim.CustomFieldsManager.html

    The CustomFieldsManager object is used to add and remove custom fields to
    managed entities.
    The custom fields values set on managed entities are available through the
    customValue property and through the summary objects for VirtualMachine
    and HostSystem. They are not available directly through this managed object.
    This functionality is only available through VirtualCenter.

Fixes: #56071

(cherry picked from commit cf78759f5b)
2019-05-22 13:36:28 -07:00
fc7fb9d7c9 yum: use Custom Group in integration tests (#56439)
(cherry picked from commit 77f997474a)
2019-05-22 13:31:28 -07:00
a5dc9ff8b4 preserve underlying block building error (#56465)
fixes #56462

(cherry picked from commit 8fe9618c84)
2019-05-22 13:27:51 -07:00
e6ed517eed nxos_snmp_traps:sanity: skip idempotency tests for I7 image bug (#55618)
This is a sanity test cleanup to handle a known image bug with (N9K) I7 images.
The I7 image fails to enable some snmp trap link configs causing an idempotency failure in the sanity, so we're skipping the idempotence tests that involve this bug.

Tested on N9K images: 9.2(2), 7.0(3)I7.

(cherry picked from commit 4d46f44ff2)
2019-05-22 13:25:29 -07:00
0176c8893b yum: fix false error msg about autoremove support (#56459)
* yum: fix false error msg about autoremove support

(cherry picked from commit a68ac729ea)
2019-05-22 13:24:04 -07:00
3a3314e9ff Fix netconf_config backup string issue (#56188)
* Fixes Netconf_config single parameter bug (#56138)

* Fixes Netconf_config single parameter bug
Fixes 56022

fixed get_config to not require multiple parameters to just run a backup

* Add Integration test for netconf_config
Associated with #56022

tests backup through netconf only using one parameter.

* Added debug to the begin and end of file

* Fix formatting of save config.  #56022

* removed blank line at end: #56022

(cherry picked from commit 647ed207af)

* Fix netconf_config backup string issue (#56175)

*  Convert the ElementTree object to string
   before dumping the configuration in file.

(cherry picked from commit 9c5745ad21)
2019-05-22 13:01:09 -07:00
e63818b7d0 Clarify that GPLv3+ module_utils need core team approval (#56740) (#56759)
* Clarify that GPLv3+ module_utils need core team approval.

* Update docs/docsite/rst/dev_guide/shared_snippets/licensing.txt

Co-Authored-By: Sam Doran <sdoran@redhat.com>

* More 'module_util' -> 'file in module_utils'.

(cherry picked from commit 53ec9c8019)
2019-05-22 14:51:37 -05:00
2c495821c2 Update get_certificate.py (#56594) (#56758)
* Update get_certificate.py with an example to calculate number of days until cert expires from get_certificate result.

* Update lib/ansible/modules/crypto/get_certificate.py

Co-Authored-By: Felix Fontein <felix@fontein.de>
(cherry picked from commit cb9be4ddaf)
2019-05-22 14:51:09 -05:00
b2364fe748 [stable-2.8] Don't rely on netloc for determining hostname and port, just use hostname and port (#56270)
* Add changelog fragment
* Fix IPv6 address parsing for py2.6, and add tests
* make sure hostname isn't None
(cherry picked from commit 493cf81)

Co-authored-by: Matt Martz <matt@sivel.net>
2019-05-22 11:44:19 -07:00
f0e5f2cad0 2.8: Move update_cache to after self.yum_baseurl definition (#56613) (#56705)
* Move update_cache to after self.yum_baseurl definition (#56613)


(cherry picked from commit e13566140a)

* Add changelog
2019-05-22 11:41:12 -07:00
171ef3e337 Allow python_requirements_facts to have dashes (#56683)
* Allow python_requirements_facts to cope with packages with dashes

```
python_requirements_facts:
  dependencies:
    - kubernetes-validate
```

should work as expected

(cherry picked from commit 5b3305c715)

* Allow python_requirements_facts to cope with packages with dashes (#56166)

* Allow python_requirements_facts to cope with packages with dashes

```
python_requirements_facts:
  dependencies:
    - kubernetes-validate
```

should work as expected

* Ensure tests run for python_requirements_facts

(cherry picked from commit 8e1dd58c2b)
2019-05-22 10:08:01 -07:00
42fb862605 meraki_switchport - Improve reliability (#54275)
* Rewrite much of the execution of meraki_switchport
- Previous versions had problems with idempotency and allowed_vlans

* Modified payload creation
- Parameter map is used
- propsed is created using .copy()
- Much cleaner this way

* Add whitespace for lint

* Add bugfix snippet for changelog

(cherry picked from commit d59eb9edab)
2019-05-22 09:47:36 -07:00
314049aa71 Asa config fix28 backport (#56562)
* asa_config fix (#56559)

Signed-off-by: Rohit Thakur <rohitthakur2590@outlook.com>
(cherry picked from commit 06c050e9bd)

* asa_config_content_fix

Signed-off-by: Rohit Thakur <rohitthakur2590@outlook.com>
2019-05-22 09:44:59 -07:00
2f767bda9b [stable-2.8] When not using file_per_task, make sure we don't prematurely close the perf files (#56477)
* When not using file_per_task, make sure we don't prematurely close the perf files

* add changelog fragment
(cherry picked from commit 867e357)

Co-authored-by: Matt Martz <matt@sivel.net>
2019-05-22 09:44:05 -07:00
ecef18d744 Backport/2.8/55514 (#56686)
* postgresql modules: move connect_to_db and get_pg_version to module_utils/postgres.py (#55514)

* postgresql modules: move connect_to_db, get_pg_version to module_utils

* postgresql modules: move connect_to_db, get_pg_version to module_utils 2

* postgresql modules: move connect_to_db, get_pg_version to module_utils 3

(cherry picked from commit 316d1db29f)

* postgresql modules: move connect_to_db and get_pg_version to module_utils/postgres.py Backport/2.8/55514
2019-05-22 06:46:48 -07:00
411371a756 dnf: fix wildcard matching for state: absent (#56013)
* dnf: fix wildcard matching for state: absent

Fixes #55938

* Add changelog...

* Fix sanity check failure...

(cherry picked from commit 826b99d4bd)
2019-05-21 15:10:00 -07:00
235aa2b85b 2.8 backport :fix bugs for ce (#54750) (#55861)
* fix bugs for ce (#54750)

* Update ce.py

            while to_text(out, errors='surrogate_then_replace').strip().endswith(']'):
                display.vvvv('wrong context, sending exit to device', self._play_context.remote_addr)
                conn.exec_command('return')
                out = conn.get_prompt()

connetion has no send_command function and ce device has no 'exit' command to return user-view(a correct context),but 'return' .command.

* Add files via upload

Some bugs fix.

* Add files via upload

fix some bugs

* fix a bug for ce_command

Running a command with prompt via ce_command, It doesn't work.The reason is that the key word for network_cli recognition is answer not response.

* fix bugs

fix bugs for ce modules

* Update ce.py

* Delete ce_ftp.py

need modify

* Delete ce_lacp.py

* Add files via upload

* Delete ce_aaa_server.py

* Delete ce_aaa_server_host.py

* Compatible with Python 3

Compatible with Python 3 and fix bugs for ce

* Update ce_aaa_server.py

* Add files via upload

modify doc

* Add files via upload

Compatible with Python 3 and fix bugs

* Add files via upload

Compatible with Python 3 and fix bugs

* Add files via upload

Cancellation of change

* Update ce_netconf.py

It is a bug that response has no xml attribute:line 183

* Add files via upload

* Add files via upload

Compatible with Python 3 and fix bugs

* updatp ce_config.py

a bug for this module.

(cherry picked from commit 1017f15c38)
2019-05-21 15:05:15 -07:00
c82a27b89e winrm - fix failure parsing for send input errors (#56245)
(cherry picked from commit fd65f037f8)
2019-05-21 15:01:00 -07:00
a52bce11d2 Backport to fix nios member module param bug fix (#56387)
* Update nios_member.py (#54419)

* Update nios_member.py

* Update api.py

* Update nios_member.py

* Update nios_member.py

* Update api.py

(cherry picked from commit 25f485f79d)

* nios_member param fix

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
2019-05-21 14:40:15 -07:00
faee6a3676 nxos_bgp_neighbor_af:sanity:6k: skip soft-reconfig 'always' test (#55661)
N5K / N6K do not support the `always` keyword on the `soft-reconfig in` configuration.

(cherry picked from commit 4798368b13)
2019-05-21 14:33:17 -07:00
51fb908369 Backport/2.8/56357 (#56367)
* IBM_Storage: fixed a bug which caused several of our modules to pass unwanted arguments and fail

(cherry picked from commit 13f5cf4e82)

* IBM_Storage: Added a changelog for 56357 bug

(cherry picked from commit 0de770e748)
2019-05-21 14:30:55 -07:00
5e2aa93f7d nxos_snmp_host:sanity:6k: Add platform excludes for sanity tests (#55664)
N6K should be present wherever N5K is included/excluded.

(cherry picked from commit 91d187f780)
2019-05-21 14:28:08 -07:00
c74fd2e1ce nxos_ospf_vrf:sanity: ignore no default-metric idempotence tests when I7 images (#55615)
* nxos_ospf_vrf:sanity: ignore no default-metric idempotence tests when I7 images

This is a sanity test cleanup to handle a known image bug with (N9K) I7 images.
The I7 image rejects 'no default-metric' configs, so we're skipping the idempotence
tests that involve this bug.

Tested on N9K images: 9.2(2), 7.0(3)I7, 7.0(3)I2

* simplify check for I7

(cherry picked from commit a568e018be)
2019-05-21 14:24:00 -07:00
bf8a838702 nxos_snmp_user: platform fixes for get_snmp_user (#55832)
* nxos_snmp_user: platform fixes for get_snmp_user

snmp user output behavior varies quite a bit for the different nxos platforms and required several workarounds:

- N5K/N6k
 - These platforms do not support structured output for `show snmp user`.
 - The current code lands in an `except` clause when the output is not structured; so I added a new `get_non_structured_snmp_user` method to scrape the state from the regular cli output if it's present.

- N9K-F
 - The `group` data in the JSON output is different for this platform; it has a different key (just `group` instead of `TABLE_groups` or `group_names`) and it is not indexed
 - For a single group the value is a string, for multiple groups it's a list

- sanity
 - N5K/N6K/N9K-F platforms will reject `no snmp user <name> <role>` when it's the last role defined for the user.
 - workaround is to use `nxos_user` to remove the user

- Changes validated on:
 - `N3K, N3K-F, N35, N6K, N7K, N9K, N9K-F`
 - `6.0(2)A8`
 - `7.0(3)I2, 7.0(3)I4, 7.0(3)I5, 7.0(3)I6, 7.0(3)I7`
 - `7.3(2)D1`
 - `7.3(3)N1, 7.3(4)N1`
 - `8.3(2)`
 - `9.2(2), 9.2(3)`

* fix lint warning

(cherry picked from commit 8c56c116e5)
2019-05-21 14:23:30 -07:00
f279ce5209 [2.8] VMware: vmware_guest_disk support for use_instance_uuid
All vmware_guest_* module support for use_instance_uuid from Ansible 2.8,
somehow vmware_guest_disk missed from this change.
This fix adds support for use_instance_uuid in vmware_guest_disk.

Fixes: #56021

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 7e6be4e634)
2019-05-21 14:23:13 -07:00
1e0f140238 Backport PR for fixing IOS static route TC CI failure (#56294)
* To fix IOS static route CI failure (#56292)

* ios static failure

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* fix CI failure

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
(cherry picked from commit 3fdc4ba6b4)

* adding BP changelog

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* adding endline in changelog

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
2019-05-21 14:22:04 -07:00
17dacf757b nxos_vtp_*: Fixes n6k issues (#55737)
* Add n6k support for nxos_vtp_domain

* Add n6k support for nxos_vtp_version

* Add n6k support for nxos_vtp_password

* Fix shippable error

(cherry picked from commit d55c0cf8dc)
2019-05-21 14:19:59 -07:00
d73b8d66ae [2.8] XenServer: Minor changes and fixes in xenserver_guest (#55678)
Backport of #55678 to stable-2.8.

* XenServer: Minor changes and fixes in xenserver_guest

 - xenserver_guest module: ignore wait_for_ip_address when
   state=absent (fixes #55348). Module docs are updated to reflect this.
 - xenserver_guest module: show proper error message when maximum number
   of network interfaces is reached and multiple network interfaces are
   added at once (fix for changes introduced in #54697).
 - xenserver_guest module: fixed a bug in reconfigure() where VM would
   be powered off even though check mode is used when reconfiguration
   needs VM to be powered off.

* Added changelog fragment

(cherry picked from commit 2a39dc84b7)
2019-05-21 09:38:22 -07:00
46f185c217 nxos_snmp_traps: fix 'group: all' for N35 platforms (#55995)
* nxos_snmp_traps: fix 'group: all' for N35 platforms

- `group: all` attempts to enable traps for all features defined in the module's `feature_list`

- `N35` platforms do not support `snmp-server enable traps bfd`; so removing `bfd` from the `feature_list` for that platform

- Minor cleanup in `sanity.yaml` test file

* whitespace lint fix

(cherry picked from commit 0e0c2a7db7)
2019-05-21 09:37:43 -07:00
79ec0ec78f nxos_interface: Fix admin_state check for n6k (#55673)
* Fix admin_state check for n6k

* Fix rx and tx_rate intent check test

(cherry picked from commit bceca72eb7)
2019-05-21 09:37:17 -07:00
4f37ce32f3 nxos_vlan fix 2.8 backport (#56211)
* nxos_vlan: vlan names containing regex ctl chars should be escaped (#55463)

The `nxos_vlan` module may raise with regex error `sre_constants.error: multiple repeat` in the non_structured codepath if the device has existing vlan names with certain regex control characters; e.g.

```
VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Eth1/3
14   my-vlan-name-is-***              active
```

(cherry picked from commit de8ce08fd8)

* fix nxos_vlan mode idempotence bug (#55144)

* fix nxos_vlan mode idempotence bug

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>

* Fix CI failure

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
(cherry picked from commit 57e0567310)

* nxos_vlan fix 2.8 backport

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2019-05-21 09:36:30 -07:00
05424bec1a Update vagrant.py (#56568) (#56676)
`inventory_file` has been renamed to `inventory_path`.

(cherry picked from commit 6b240433b6)
2019-05-21 11:29:13 -05:00
c8037a541e Fix passwordless workflow (#55441)
(cherry picked from commit 9f830b77fc)
2019-05-21 09:25:59 -07:00
a85461e569 nxos_acl: some platforms/versions raise when no ACLs are present (#55609)
* `nxos_acl` may fail with `IndexError: list index out of range` while attempting to delete a non-existent ACL.

The failure occurs when the `acl` var is an empty list.

* nxos_acl: catch 501 'Structured output unsupported' when no ACLs present

With some older image versions, `show ip access-list | json` will raise a 501 error indicating `'Structured output unsupported'` when there are no access-lists configured. This change turns off the `check_rc` and then looks for the failure condition.

* Fix kwarg

* Fix lint issues

(cherry picked from commit 869fdcd7d4)
2019-05-21 07:56:55 -07:00
3a237b505f ec2_instance fix name idempotency (#55224)
(cherry picked from commit 1462fd740b)
2019-05-21 07:53:08 -07:00
058653487c Fix VyOS cli prompt issues (#56389)
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
(cherry picked from commit 30ccc8e1bd)

Add changelog for vyos prompt issue fix
2019-05-20 22:40:09 -07:00
0cfc338cfe [2.8] VMware: remove duplicate implementation of memory reservation
mem_reservation and memory_reservation has redundant implementation.
Combining them together.

Fixes: #54335

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 193f69064f)
2019-05-20 19:31:10 -07:00
a07ed8530f openssl_certificate: fix passphrase handling for cryptography backend (#56155)
* Make sure passphrase is bytes string.

* Fix typo.

* Add more passphrase tests.

* Fix test names.

* Add changelog.

(cherry picked from commit 7a957ba64a)
2019-05-20 19:22:28 -07:00
7333af4fbb Skip iosxr_bgp tests if device is not running XR 6.1.3
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
(cherry picked from commit 1b0683e905)
2019-05-20 19:09:02 -07:00
c3e2f9f536 eos_bgp needs become: yes (#56131)
We don't specify that in hostvars, so add it to the tests

(cherry picked from commit d39be3d3e0)
2019-05-20 19:08:13 -07:00
f65a1c4134 Fix non-signature authentication (backport 2.8)
Apparently everyone is using signature authentication these days.
2019-05-20 18:53:29 -07:00
b66f77352d Backport PR for fixing NIOS_ZONE module idempotency (#56347)
* To fix the issue where nios_zone module was running second time for same object (#55595)

* fix for 55128 issue

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* review comment fix

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
(cherry picked from commit 661f7be0fe)

* changelog for 2.8

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
2019-05-20 18:17:03 -07:00
3fbe6e976c [WIP] [2.8] connection/docker: add support for privilege escalation (#56277)
* connection/docker: add privilege escalation support (#55816)

As described in #53385 (and #31759), the docker connection driver did
not support privilege escalation. This commit is a shameless
cut-and-paste of the privilege escalation support from the `local`
connection plugin into the `docker` plugin.

Closes: #53385
(cherry picked from commit 61e476b908)

* docker connection plugin: make privilege escalation code more similar to local.py (#56288)

* Make more similar to local.py

* Fix typo.

(cherry picked from commit 708bda06aa)
2019-05-20 18:14:28 -07:00
cf611c8a8e Backport/2.8/55695 (#56254)
* sysctl will now return an error if the value is invalid

sysctl can fail to set a value even if it returns an exit status 0. More
details: https://bugzilla.redhat.com/show_bug.cgi?id=1264080. Because of
this in case of an invalid value or a read-only file system, sysctl
module would return OK, even though it didn't set anything. To be sure
that sysctl correctly applied the changes we also need to check the
output of stderr.

(cherry picked from commit 0432b7f252)

* Run sysctl with LANG=C

Because we are parsing sysctl stderr we need to make sure that errors
are persistent across different system language settings.

(cherry picked from commit a16128f778)

* Add changelog fragment for sysctl

(cherry picked from commit 3ad9d4d83c)
2019-05-20 18:10:15 -07:00
9eecd869f0 Fix vyos_command integration test (#56091)
This has been broken for some time, but only noticed recently.  Because
vyos_command isn't supported on ansible_connection=local, update our
testing to account for that.

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
(cherry picked from commit 59d20e004e)
2019-05-20 17:11:17 -07:00
043990bc07 Replace deprecated ansible-container references (#56427) (#56672)
Link to ansible-bender instead of the deprecated ansible-container.

Co-Authored-By: Felix Fontein <felix@fontein.de>
(cherry picked from commit 66bfa27685)
2019-05-20 16:12:17 -05:00
5145effbf6 Move backport guide to 2.8 (#56578) (#56671)
The backport guide should refer to Ansible 2.8 instead of 2.7 as the target branch, since 2.8 is out.

(cherry picked from commit 4742897635)
2019-05-20 16:11:51 -05:00
e47c603f1d Update gcp_compute_instance_facts.py (#56581) (#56670)
swapped dot inside brackets leading to wrong url

(cherry picked from commit 2a90cbd247)
2019-05-20 15:53:09 -05:00
99f450bbcc Clarify documentation on _info vs. _facts modules (#56611) (#56668)
* Clarify documentation on _info vs. _facts modules.

* Expand with examples for facts and non-facts.

(cherry picked from commit abca3f1956)
2019-05-20 15:52:12 -05:00
4dae67d712 [stable-2.8] Changing the license to Apache 2
(cherry picked from commit ea4842c0d3)

Co-authored-by: EvgenyF <evgenyf@radware.com>
2019-05-20 12:21:28 -07:00
1769d9aebe oom_killer and oom_score_adj are available since docker-py 1.8.0. (#56012)
* oom_killer and oom_score_adj are available since docker-py 1.8.0.

* Add changelog.

(cherry picked from commit f692261ea0)
2019-05-20 09:31:55 -07:00
d32543ba10 postgresql modules: missing_required_libs, removed excess param mapping Backport/2.8/55506 (#55806)
* postgresql modules: missing_required_libs, removed excess param mapping (#55506)

(cherry picked from commit 0ff67d0a1c)

* postgresql modules: missing_required_libs, removed excess param mapping
2019-05-20 09:30:57 -07:00
f7dd79a439 postgresql SSL related tests, Backport/2.8/55288 (#55801)
* postgresql SSL related tests (#55288)

* postgresql SSL tests

* postgresql SSL tests, added link to officiall doc

(cherry picked from commit f8c47262c4)

* postgresql SSL related tests: added changelog fragment
2019-05-20 09:28:34 -07:00
00b4a52633 Fix loading namespaced doc_fragments from collections (#55249)
* Fix loading namespaced doc_fragments

The syntax for specifying a different fragment name was already
using '.' as a separator, so the code needed to be tweaked to
avoid choking on names like `testns.testcoll.fragname` and
`testns.testcoll.fragname.altvar`.

`get_plugin_class()` returns 'docfragment' for the fragment loader;
mangling `subdir` provides consistent alignment with the normal plugin
directory names and avoids needing special handling of plugin types
with 'module' in the name.

* Add changelog entry

(cherry picked from commit 2ef8b297ff)
2019-05-20 09:27:38 -07:00
4818ec2823 docker_container: use restart() API function instead of stop/start sequence (#55894)
* Improve container restart.

* Adjust tests.

* Add changelog.

* Quote options.

* Move tests for restart/recreate options to start/stop tests.

* Fix changelog name.

(cherry picked from commit 95d1564f70)
2019-05-20 09:26:00 -07:00
40dbb28189 [stable-2.8] Add compat tojson filter for jinja2 versions missing it (#56596) (#56606)
(cherry picked from commit 3f4a22d)

Co-authored-by: Matt Martz <matt@sivel.net>
2019-05-19 16:22:12 -05:00
c99ee40812 win_acl - fix network path qualifier parsing (#55970)
(cherry picked from commit cc3b8b9f72)
2019-05-17 23:19:57 -04:00
019573b63d Backport/2.8/55854 (#55856)
* fix cross subs vnet peering (#55854)

(cherry picked from commit fd2ea34444)

* cherry pick cross subs fix
2019-05-17 23:18:46 -04:00
5375c5866d Backport/2.8/55797: A fix for role definition #55797 (#55855)
* a fix by replacing subscription with subscriptions (#55797)
2019-05-17 23:17:56 -04:00
207fff7d36 Fix the get property (#55745) (#55788)
* Fix the get property (#55745)

(cherry picked from commit c7bf3e035b)
2019-05-17 23:17:06 -04:00
d8fb3cc7f0 meraki_ssid - Add examples to documentation (#56425) (#56579)
* Add standalone copy/paste-able examples

(cherry picked from commit 27aca731b3)
2019-05-17 21:15:06 -05:00
22511a4eee Backport/2.8/docs module changes (#56497)
* [doc] command module: mention all parameter types (#56396)

(cherry picked from commit 8968d41599)

* update azure_rm_autoscale document (#56388)

(cherry picked from commit 49ecfdbc10)

* [doc] expect module: mention all parameter types (#56394)

(cherry picked from commit 7f41cc40e6)

* update azure_rm_appgateway document (#56339)

(cherry picked from commit 84f5666aab)

* update azure_rm_appserviceplan related module documents  (#56348)

(cherry picked from commit 22d7e7ea0b)

* Small typo fix in documentation (#56480): documentation was probably C&P'd from user, leaving a "useradd" mention where a "groupadd" should be.

(cherry picked from commit 6182f368e7)

* Update ovirt_vnic_profile.py (#56466): Update documentation to reflect module name

(cherry picked from commit db42cf5873)

* clean backport of PR 56355, clarify config cli usage

(not actually cherry-picked due to conflicts, but see PR mentioned)

* gcp_compute_target_proxy does not exist, update deprecated redirect (#56496)

(cherry picked from commit 7636f36a8a)
2019-05-16 20:39:24 -05:00
94e24d1039 Update Ansible release version to v2.8.0.post0. 2019-05-16 11:01:34 -07:00
2611867fd1 [stable-2.8] Bump erlang ping to 1:20.3.8.18-1
(cherry picked from commit 4b00141)

Co-authored-by: Matt Martz <matt@sivel.net>
2019-05-16 12:00:23 -04:00
d123669a46 Backport/2.8/docs last backports (#56498)
* Update default roles_path documentation (#56320)

(cherry picked from commit c1ebc8d9c2)

* docs: Update scopes value example (#56362): example in GCE guide needs "https://" prefix

(cherry picked from commit 85fa65e5f0)

* [doc] fix example: always trigger the handler (#56384): by default, debug task result isn't changed - add 'changed_when: yes' to trigger handler

(cherry picked from commit b3ab83bc70)

* Update of Ansible 2.8 roadmap (#56436): Remove **if needed** for RC2 & RC3, correct date for RC3

(cherry picked from commit d55823b013)

* add how to create HttpApi plugins for network modules (#54340): in a developer guide for networks

(cherry picked from commit cca365061c)

* [Doc-Release-2.8] fixed broken module links in 2.8 porting guide (#56494)

(cherry picked from commit 635931051b)
2019-05-16 10:19:11 -05:00
3a2901e3c6 update release table for 2.8 (#56486) (#56492)
(cherry picked from commit f097dca60d)
2019-05-16 10:11:47 -05:00
d0196d0dad changed version to 2.8 (#56487) (#56490)
(cherry picked from commit 4bf134756b)
2019-05-16 10:10:42 -05:00
c4893d73b1 New release v2.8.0 2019-05-16 06:58:30 -07:00
6dd6501742 [stable-2.8] Nullify improperly licensed test file
(cherry picked from commit 940d58e)

Co-authored-by: James Tanner <tanner.jc@gmail.com>
2019-05-15 15:17:56 -04:00
0f749a8443 backport porting guide fix 2019-05-15 14:31:34 -04:00
2873741074 [2.8]Changelog fix/2.8 (#56461)
* fixed batch of spelling errors

* more spelling errors
2019-05-15 10:50:33 -04:00
6df8ea0c2a Revert "[stable-2.8] Revert oracle (#56364)"
This reverts commit b9dc8056d7.

Revert the revert oracle change. It's looking like we aren't going to
have an rc4 and this is a code change.  So this can't go in.
2019-05-14 07:31:03 -07:00
b9dc8056d7 [stable-2.8] Revert oracle (#56364)
* Revert "Update vcn module documentation (#55888)"

This reverts commit 94ef24974a.

* Revert "Initial commit for Oracle Cloud Infrastructure modules (#53156)"

This reverts commit 07b9f52fd5.

* Revert "Add Oracle module maintainers (#55889)"

This reverts commit b0f3df360a.
(cherry picked from commit eefc90b66f)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-05-13 10:59:07 -07:00
9b867fbe84 Backport/2.8/docs modules omnibus (#56316)
* Update gcp_container_cluster_facts.py (#55475) : 'state' is not a supported parameter in this module

(cherry picked from commit 8c7e38af62)

* Update win_dns_record.py (#55378): Update examples to show values are strings.

(cherry picked from commit 3fd27f0cac)

* sensu_subscription very minor docstring typo (#55675)

(cherry picked from commit 2cfaf6e80a)

* Update win_domain_group_membership.py (#55594): add notes regarding a computer object and fixing a typo

(cherry picked from commit 3f0900f504)

* hcloud_server: clarify further for usage of `ssh_keys` (#55713)

(cherry picked from commit 6e9379fe11)

* Fix template lookup description (#55557): describe that it returns template content with substituted variables.

(cherry picked from commit 9c038b210b)

* Update ec2_eip_facts.py (#53040): Add several additional examples showing how to filter on tag, how to filter on the EIP allocation id, and how to set a fact using the output.

(cherry picked from commit 1e2cbefac0)

* Update ali_instance_facts examples in documentation (#55760) (#55803)

(cherry picked from commit 357dafffa4)

* Update setup.py (#55871): adds a note on privileges needed on BSD systems to use dmidecode

(cherry picked from commit c181e567a1)

* Remove illegal basic provisioning example (#55892): The bare minimum example in the docs (i.e. only supplying name, state, and cluster) results in the error `state is present but all of the following are missing: task_definition, desired_count`.

(cherry picked from commit c195645575)

* clarify docs for rel src state hard (#55972)

(cherry picked from commit 0b002203b4)

* correct method docs (#55961)

(cherry picked from commit ea57377ddf)

* Update sample (#55654): Correct logConfiguration example on the ecs_taskdefinition module.

(cherry picked from commit 23ddc7738b)

* add missing exported state do doc string (#56109)

(cherry picked from commit ba9f0d53b2)

* package_facts: Trivial docs cleanup (#56015): use
the current YAML style and remove unnecessary quotes around `auto`.

Signed-off-by: Major Hayden <major@redhat.com>
(cherry picked from commit 93d24efe37)

* Update include_role description (#56001) to discuss tasks: use

(cherry picked from commit 8cb76408d3)

* Sync required flags from argument_spec to docs (#56121): arguments for certificate, private_key and password were marked as required in the ArgumentSpec, but not in the documentation. 

(cherry picked from commit 6b474a1ecd)

* updated ec2.py to describe required parameters (#56197): for each option for `state`

(cherry picked from commit 5346a5cdac)

* Update os_image documentation (#49705) to show auth details

(cherry picked from commit f5326aa6cd)
2019-05-13 11:43:05 -05:00
c05b61777c Backport/2.8/docs rst omnibus (#56310)
* Update windows_setup.rst (#55535): Wrong protocol and port in command.

(cherry picked from commit 6ea3eca8ff)

* Clarify the two targets of vault encryption, with notes about advantages and drawbacks of each

Co-Authored-By: tacatac <taca@kadisius.eu>
(cherry picked from commit 79198cad7a)

* Improve consistency of loop documentation (#55674)

(cherry picked from commit a5cb47d697)

* Add Microsoft Document URL for WinRM Memory Hotfix (#55680)

Co-Authored-By: hiyokotaisa <thel.vadam2485@gmail.com>
(cherry picked from commit 7b86208fcd)

* Clarify the documentation for `async` and `poll`; describe the behavior when `poll` = 0 and when it does not.

Co-Authored-By: tacatac <taca@kadisius.eu>
(cherry picked from commit dbc64ae64c)

* Add security group info and example to AWS guide (#55783): expand documentation on how to use lookup plugin aws_service_ip_ranges with ec2_group module

(cherry picked from commit bb5059f2c7)

* correct description of modules vs plugins (#55784)

(cherry picked from commit 9d5b5d7ddd)

* Fix var naming (#55795): Make vars match tasks in Google Compute guide.

(cherry picked from commit 943f7334c5)

* Clarifies how Ansible processes multiple `failed_when` conditions (#55941): multiple failed_when conditions join with AND not OR to counter third-party pages online incorrectly stating that it uses `OR`. ([example](https://groups.google.com/d/msg/ansible-project/cIaQTmY3ZLE/c5w8rlmdHWIJ)).

(cherry picked from commit 5439eb8bd8)

* Docs: edits & expands module_utils & search path info in dev guide (#55931)

(cherry picked from commit 8542459b95)

* Add faq note about ssh ServerAliveInterval (#55568)

(cherry picked from commit 76dba7aa4f)

* docsite: correct path, list requirements for testing module docs, etc. (#52008)

* dev_guide: correct path, list requirements, etc.; module HTML docs are in '_build/html/module' subdir

(cherry picked from commit b14f477bee)

* Developer documentation update involving module invocation (#55747)

* Update docs for the 2.7 change to AnsiballZ which invokes modules with one
  less Python interpreter

* Add a section on how module results are returned and on trust between modules, action plugins, and the executor.

* Update docs/docsite/rst/dev_guide/developing_program_flow_modules.rst

Co-Authored-By: abadger <a.badger@gmail.com>
(cherry picked from commit edafa71f42)

* add doc example of multiline failed_when with OR (#56007)
* add variety to multiple OR failed_when doc example

(cherry picked from commit 7d5ada7161)

* Note that by default the regex test is identical to match, but can do much more (#50205)

* Note that the regex test behaves like 'match', with default settings

(cherry picked from commit 86e98c5213)

* more info on how vaults work (#56183)

also add warning about what it covers.

(cherry picked from commit 8ff27c4e0c)

* Fix var naming in GCE guide

(cherry picked from commit dae5564e2b)

* dev_guide: Various small updates (#53273)

* Document the clarifications that I usually remark when doing reviews
* Update docs/docsite/rst/dev_guide/developing_modules_documenting.rst

Co-Authored-By: dagwieers <dag@wieers.com>
(cherry picked from commit eac7f1fb58)

* Lack of "--update" flag in older Ubuntu distros (#56283): when installing on older Ubuntu distributions be aware of the lack of ``-u`` or ``--update`` flag.

(cherry picked from commit dd0b0ae47b)

* should have gone into 52373 (#56306)

(cherry picked from commit 3c8d8b1509)
2019-05-13 08:22:20 -05:00
d69da31ceb Backport/2.8/docs other (#56318)
* Correct link to Thomas' GitHub account (#55587) from tstringer to trstringer

(cherry picked from commit 158452661a)

* Add changelog fragments for #44811 (#55427)

(cherry picked from commit 7e0603282d)

* Speed up the Sphinx documentation build (#55593)

* speeds up the docs build by changing the navigation collapse setting

(cherry picked from commit 47a440774f)

* Improve rendering of default lists (#56041)

(cherry picked from commit 53ed1bfc49)
2019-05-13 07:27:55 -05:00
6fcb71f51b Update Ansible release version to v2.8.0rc3.post0. 2019-05-10 13:36:33 -07:00
cd9d6f0958 New release v2.8.0rc3 2019-05-10 10:28:29 -07:00
a9b4313570 [2.8] VMware: Add examples of folder in vmware_deploy_ovf (#56286)
Fixes: #51825

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 748cfd89ab)
2019-05-10 09:24:09 -05:00
387093a0d6 Backport PR for fixing net_get and net_put task run failure (#56160)
* Fix net_get and net_put task run failure (#56145)

* net_get and net_put action plugin class need
  to inherit from ActionBase class as the action
  class implements the entire get and put logic

(cherry picked from commit 9271b4e368)

* backport changelog

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
2019-05-09 12:42:17 -07:00
72af010414 Revert nxos, ios, iosxr return_timestamps (#56206)
* Revert "nxos_command:run_commands results failure when commands array size >1 (#52670)"
This reverts commit 0df5b92af3.
* Revert "added timestamps to nxos_command module (#50261)"
This reverts commit e150943314.
* Revert "added timestamps to ios_command module (#50323)"
This reverts commit 2a432a093b.
* Revert "added response_timestamps to iosxr_command module (#50095)"
This reverts commit 2a0c356da9.

(cherry picked from commit 2e8a3efccb)
2019-05-09 12:41:15 -07:00
543bfbbe7f vmware: check the SSL certification
If `validate_certs` is enable, we now validate the server SSL
certificate.

(cherry picked from commit 23e63c9237)
2019-05-09 12:40:56 -07:00
5a6b926744 Add missing selectors2 requirement for network-integration tests
Otherwise, we get the following error:

  ERROR: ncclient 0.6.4 requires selectors2>=2.0.1, which is not installed.

when running ansible-test.

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
(cherry picked from commit 72bfdb38b4)
2019-05-09 12:40:30 -07:00
457efa8136 Fix invalid src option return response for network config modules (#56076)
*  Add changed key in faliure case to maintain backward compatibility

(cherry picked from commit 1a66121f03)
2019-05-09 12:40:19 -07:00
e925dd7713 [stable-2.8] Disable failing hcloud integration tests.
(cherry picked from commit 87d42ca11c)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-05-09 10:03:32 -07:00
0829325d21 fix documentation for docker_container publish_ports option (#56093) (#56100)
The documentation for the docker_container publish_ports options
erroneously stated that container ports must be "exposed" in order to
be "published".

(cherry picked from commit 5e74ecb4fd)
2019-05-06 10:02:42 -05:00
f084305466 Update openssl_privatekey.py (#55438) (#56067)
Docs: Update lib/ansible/modules/crypto/openssl_privatekey.py

Co-Authored-By: snagoor <nagoor.s@gmail.com>
(cherry picked from commit 2925f6960e)
2019-05-06 09:55:40 -05:00
fba466a26f Update Ansible release version to v2.8.0rc2.post0. 2019-05-02 10:56:32 -07:00
22d7b7e5f2 New release v2.8.0rc2 2019-05-01 06:27:52 -07:00
f03d9c1450 [stable-2.8] Clarify documentation an reboot delay paramaters (#55934)
(cherry picked from commit 0e8a6e08ce)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-05-01 06:59:24 -05:00
fdbb83cea0 Update vcn module documentation (#55888)
(cherry picked from commit 94ef24974a)
2019-05-01 06:59:00 -05:00
17f90a68cc Ansible.Basic - fix when deserialising a json string of an array (#55691)
* Ansible.Basic - fix when deserialising a json string of an array

* Added changelog fragment

(cherry picked from commit 5228133d74)
2019-05-01 06:29:55 -05:00
f5de633197 Be sure to use the active state when checking for any_errors_fatal
The current code was not properly checking for the active state when
checking any_errors_fatal, so if the error occurred in a sub-block
or included file it is not properly detected.

Fixes #55515
2019-04-30 13:23:08 -05:00
196018952b [stable-2.8] Install rabbitmq from s3 in tests.
(cherry picked from commit e105f5b436)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-04-30 12:22:20 -05:00
57935b76d7 allow empty plays again, for now (#55878)
(cherry picked from commit 815a375177)
2019-04-29 19:03:58 -05:00
630e8cb8e2 Update Ansible release version to v2.8.0rc1.post0. 2019-04-25 11:18:26 -07:00
104f39a41d [stable-2.8] Use LooseVersion instead of StrictVersion as StrictVersion doesn't understand "rc1"
(cherry picked from commit b71133e)

Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
2019-04-25 10:57:58 -06:00
ebaf42bbbe New release v2.8.0rc1 2019-04-25 08:48:56 -07:00
5c3c3fc835 meraki_content_filtering - Remove redundant API call with get_nets() (#55531)
* Remove redundant API call with get_nets()

* Add changelog fragment

(cherry picked from commit 56da3825c6)
2019-04-25 09:19:30 -06:00
e0a3c6214d meraki_static_route - Remove unnecessary API call (#55528)
* Make module not get all nets every time it's executed with net_id

* Add changelog fragment

* Update changelogs/fragments/meraki_static_route_api_calls.yml

Co-Authored-By: kbreit <kevin.breit@kevinbreit.net>
(cherry picked from commit 7b7d6a1fef)
2019-04-25 09:19:03 -06:00
74e90f89bd mark entire module result untrusted as template (#55717)
* prevents accidental templating on intra-action postprocessing of an untrusted module result
* makes the view of a module result within an action consistent with the way it would be stored for future use (eg facts, register)

(cherry picked from commit 03cac394cc)
2019-04-24 18:38:32 -06:00
f64e95f230 Properly reset timezone in user test when it was originally n/a (#55389)
(cherry picked from commit b4e83642c8)
2019-04-24 14:45:52 -06:00
76f6d21ff3 [stable-2.8] User - Fix shadow file parsing on AIX (#55230)
Implement a new method for shadow file parsing so it can be subclassed.
(cherry picked from commit f27eccabbd)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-04-24 14:45:52 -06:00
0cfbc1feb8 Create 55681-azure_rm_manageddisk.yaml 2019-04-24 14:45:33 -06:00
9fd0254954 Delete 55681-azure_rm_manageddisk.yaml 2019-04-24 14:45:33 -06:00
942d38ae24 add fragment 2019-04-24 14:45:33 -06:00
99d3a641eb Enable azure manged disk test (#55681)
(cherry picked from commit e77260a4fb)
2019-04-24 14:45:33 -06:00
118f008c59 add resource group test (#55688) (#55701)
* add resource group test (#55688)

(cherry picked from commit 0d3d002505)

* fragment

* Update 55688-azure_rm_resourcegroup.yml

* Delete 55688-azure_rm_resourcegroup.yml

* Create 55688-azure_rm_resourcegroup.yml
2019-04-24 14:44:46 -06:00
14531144cf Backport/2.8/55693 (#55698)
* adding final functionapp settings (#55693)

(cherry picked from commit 8de2acb819)

* +changelog
2019-04-24 14:41:41 -06:00
d5cd383855 tests: vultr: fix tests due to vultr API changes (#55621)
(cherry picked from commit e0ea5bb512)
2019-04-24 14:40:04 -06:00
4cd7c2987f vultr_server: fix idempotency for private network and IPv6 options (#55619)
* vultr_server: fix idempotency for private network and IPv6 options

* add changelog

(cherry picked from commit 1705ef5f26)
2019-04-24 14:40:04 -06:00
3044b855b4 adding doc fragment 2019-04-24 14:37:36 -06:00
8b88eecde3 fixing lb / ag replacement (#55546)
(cherry picked from commit 71494c0bd9)
2019-04-24 14:37:36 -06:00
7c678aaff8 fix for removing subscripion_id from resource facts (#55203) (#55685)
* adding changelog

* fix for removing subscripion_id from resource facts (#55203)

(cherry picked from commit 48cb681140)
2019-04-24 14:36:56 -06:00
ebe89926f0 ensure inventory plugin loading rel to play (#51177)
Ensure inventory plugin loading rel to play

  fixes #51033

*  clarify paths
* now adding dirs funciton in loader
* better warnings
* each cli should handle adding dirs depending on context

(cherry picked from commit 780ee45819)
2019-04-24 14:35:24 -06:00
d73da98ecf Ensure discovery unsafe (#55295)
* Ensure safe discovery by marking it Unsafe

(cherry picked from commit 24b44e1772)
2019-04-23 20:25:31 -06:00
6d8b124e16 ansible-test: Use psrp for 2008 host ci_complete (#55273)
* ansible-test: Use psrp for 2008 host ci_complete

* reset Shippable info back to default

(cherry picked from commit 66493e47cf)
2019-04-23 16:26:10 -06:00
ebd7820a44 Remove unneccessary line in config section of purefa_facts (#55164)
(cherry picked from commit 30a216bf78)
2019-04-23 16:25:41 -06:00
a87b36219b [stable-2.8] Move missing library abort to use rather than import (#55649)
* [stable-2.8] Move missing library abort to use rather than import for netconf (#55384)
(cherry picked from commit b442706)

Co-authored-by: Nathaniel Case <this.is@nathanielca.se>

* Add changelog
2019-04-23 16:25:00 -06:00
cec67624ba Backport/2.8/azure tags (#55672)
* azure_rm_subnet: remove documentation that says it supports tags (#55233)
(cherry picked from commit 32345641e7)

* azure_rm_subnet: fix CI error for deleting the azure_tags (#55276)
(cherry picked from commit 91e808eed2)
2019-04-23 15:08:29 -05:00
4dee11336c docker_swarm_service: Use str type for configs/secrets gid/uid (#55591)
* Change type of secrets gid/uid to str
* Add changelog fragment

Co-Authored-By: hannseman <hannes@5monkeys.se>
(cherry picked from commit 14c60e6ec8)
2019-04-23 14:06:25 -06:00
3cd3c0d7c6 [2.8] Add variable type for performance_insights_retention_period
(cherry picked from commit 5bda9cbebf)
2019-04-23 13:54:25 -06:00
905b9b162d [2.8] k8s: fix API call to _wait_for_response
(cherry picked from commit 94f295e4a1)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2019-04-23 13:53:24 -06:00
2e4c1dc3cb GCP Deprecations 2019-04-23 13:49:26 -06:00
2e80441948 crypto modules: use module_utils.compat.ipaddress when possible (#55278)
* Use module_utils.compat.ipaddress where possible.

* Simplify reverse pointer computation.

* Use dummy for unused variables.

* Remove from ignore list.

* Adjust fix.

* Fix text handling for Python 2.

* Add changelog.

(cherry picked from commit c8a15b9dbc)
2019-04-23 12:31:24 -06:00
368375810b win_service - simply env test (#55498)
(cherry picked from commit 62badd76a5)
2019-04-23 12:28:23 -06:00
d83e722b82 Merge pull request #55493 from jborean93/win_region-psrp-2.8
win_region - fix format issues when using psrp (#55487) - 2.8
2019-04-23 12:26:03 -06:00
d83adc4deb docker modules: make sure everything works with older docker-py versions (#55258)
* General test improvements.

* Adjust tests to older docker-py versions.

* docker_swarm_server_info: work around problems with older docker-py versions

* Bump minimal docker-py version for options network_filters and disk_usage.

* More general test improvements.

* Correct usage of docker_image.

* Put files into output directory.

* Speed up test.

* Remove old check.

(cherry picked from commit 12d26eceb1)
2019-04-23 12:24:56 -06:00
c4d98fa134 [stable-2.8] Switch gitlab_hook test to non-deprecated name.
(cherry picked from commit 01a3048b98)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-04-23 10:59:36 -07:00
49c52a89ea ansible-test yamllint: fix UnicodeDecodeError (#55364)
* ansible-test yamllint: fix UnicodeDecodeError

* Conditional fix

(cherry picked from commit f8bebc61c8)
2019-04-22 10:04:32 -07:00
a851a0db08 lxd_container: Create container via fingerprint (#52737) (#55608)
Docs: adds example of creating a container using fingerprints, swapping out 'alias' for 'fingerprint' and adding alternate values for 'server' and 'protocol'.

(cherry picked from commit 405c7b7ab3)
2019-04-22 10:01:54 -05:00
564393a5e0 adds better links to tips and pitfalls page (#55458) (#55607)
(cherry picked from commit d7f6493084)
2019-04-22 10:00:33 -05:00
80e4fc47c3 docs/docsite: minor fixes in docs/docsite/README.md (#55356) (#55606)
Added inline markup to important references. Fixed minor spelling error.

Signed-off-by: James McClune <jmcclune@mcclunetechnologies.net>
(cherry picked from commit da1f86a40f)
2019-04-22 10:00:19 -05:00
91afa0483f ec2_launch_template - fix spelling mistake (#55383) (#55605)
(cherry picked from commit 272dceef42)
2019-04-22 10:00:04 -05:00
33ca2d192f Update set_module_args in unit test docs (#55244) (#55604)
* Update docs/docsite/rst/dev_guide/testing_units_modules.rst
`set_unit_args()` should be imported and used in the unit test documentation. 

Co-Authored-By: kbreit <kevin.breit@kevinbreit.net>
(cherry picked from commit 521e62aa38)
2019-04-22 09:59:38 -05:00
f5561c65bc Add example for full path on unit tests (#55243) (#55603)
Docs: adds an example when a full path is needed for unit tests, with module_utils, etc.
(cherry picked from commit a005dcfbbd)
2019-04-22 09:59:21 -05:00
e64ea2a0b1 Removed misleading padding from highlighted results of a search query (#55464) (#55601)
(cherry picked from commit 0330ea616e)
2019-04-22 09:59:07 -05:00
36225e1603 Postgresql docs fragments 2 (#55363) (#55599)
* Postgres to use docsfragments
* Postgres to use docsfragments: redefined options in postgresql_user

(cherry picked from commit c3cbc39dd9)
2019-04-22 09:58:36 -05:00
9562217680 include windows server 2019 in supported hosts (#55367) (#55598)
<!--- Your description here -->

+label: docsite_pr

(cherry picked from commit 960df24272)
2019-04-22 09:57:25 -05:00
980e5cbdb4 Docs: adding stub page for module/plugin aliases (#54448) (#55597)
* Adding stub pages for deprecated module/plugin aliases.

(cherry picked from commit 395d471065)
2019-04-22 09:57:09 -05:00
65035e2149 Fixed wrong variable specification format in examples (#55252) (#55543)
Signed-off-by: Hideki Saito <saito@fgrep.org>
(cherry picked from commit 83f20e0ea0)
2019-04-22 09:56:55 -05:00
30906ff632 Improving documentation of the aws_ec2 inventory plugin (#55255) (#55542)
(cherry picked from commit 720f62bf85)
2019-04-22 09:55:15 -05:00
1463fdd02a Adding missing comma (#55254) (#55541)
(cherry picked from commit 7efb952825)
2019-04-22 09:54:55 -05:00
57d3a17965 Template: Example of SELinux context type (#54861) (#55540)
* Update template.py with an example using selinux with a suggestion of how to get the proper file context (cheating!)

(cherry picked from commit f8834c5339)
2019-04-22 09:54:39 -05:00
2781230d8e DOCS: Update "connections" data type (#55290) (#55539)
The k8s plugin expects the "connections" field to be a list - current docs examples trigger:
 [WARNING]:  * Failed to parse {...}/inventory.yml with k8s plugin: Expecting connections to be a list.

Updated examples for `host` and  `namespaces` to reflect this.

(cherry picked from commit e90df4b566)
2019-04-22 09:54:22 -05:00
1856babfa5 ec2_group: docs: fix example for deletion by group ID (#55169) (#55538)
requires the region for the example task to work

(cherry picked from commit a5f13dd361)
2019-04-22 09:54:05 -05:00
77d5fa20d8 Update documentation of filetree to mention limits of 'src' attribute (#54347) (#55533)
* Filetree plugin does not return the 'src' attribute when `item.state` is set to `directory`

Error is `'dict object' has no attribute 'src'`. See https://github.com/ansible/ansible/issues/51513#issuecomment-459150769 .

* Update filetree.py

(cherry picked from commit f40778cae3)
2019-04-22 09:52:25 -05:00
91bf8402d1 Fix access_logs_s3_prefix leading/trailing slash (#55148) (#55530)
- Add documentation regarding restrictions on access_logs_s3_prefix (cannot have a leading or trailing slash)

(cherry picked from commit 698d2454c7)
2019-04-22 09:51:51 -05:00
1f84c4982f Fewer examples use connection: local in docs (#55133) (#55529)
* Fewer connection: local lines in module examples and scenario guides

The line 'connection: local' is not required. See
./docs/docsite/rst/inventory/implicit_localhost.rst

(cherry picked from commit 04220478da)
2019-04-22 09:50:52 -05:00
2a118b4cbd SCP filename validation docs (#55399) (#55489)
* SCP filename validation docs

* Update docs/docsite/rst/reference_appendices/faq.rst

Co-Authored-By: jborean93 <jborean93@gmail.com>

* Update docs/docsite/rst/reference_appendices/faq.rst

Co-Authored-By: jborean93 <jborean93@gmail.com>

* Update docs/docsite/rst/reference_appendices/faq.rst

Co-Authored-By: jborean93 <jborean93@gmail.com>

* edits to scp FAQ entry

* zeut alors I have missed one

* incorporate jborean feedback

* adds link to bug report

(cherry picked from commit 8542f16fa9)
2019-04-22 09:49:20 -05:00
4378d8becf Clarify fact_path configurable in ansible.cfg (#54992) (#55544)
Docs: Clarify that `fact_path` can be configured in `ansible.cfg`; uppercase two acronyms. 
(cherry picked from commit 46420dd21a)
2019-04-22 09:38:29 -05:00
0131ad25bf Gce migration docs (#51838) (#55545)
* migration docs for gce, with example playbook

* Update docs/docsite/rst/scenario_guides/guide_gce.rst

Co-Authored-By: rambleraptor <alexstephen@google.com>
(cherry picked from commit 91a664a93e)
2019-04-22 09:38:16 -05:00
93758a5141 vsphere_guest: corrected fix #19716 misbehaviour (#55285)
* vsphere_guest: corrected fix #19716 misbehaviour
* creating machines without vm_extra_config is possible
* power state operation on absent machines will fail

* changelog fragment for PR #55285 (vsphere_guest bugfix)
2019-04-17 08:11:57 -07:00
45ff67b744 psrp - Fix raw and script tests for connection plugin (#55357)
* psrp - Fix raw and script tests for connection plugin

* Fix error propagation with raw in psrp

* uncomment test

(cherry picked from commit fdf9df89f5)
2019-04-17 06:56:00 -07:00
a5a54455a4 [Backport 2.8] Use different headers for each HTTP method (#55299)
* Use different headers for each HTTP method (#55193)

(cherry picked from commit f88b2cbe59)

* add changelog fragment
2019-04-17 06:45:56 -07:00
8e801d5394 postgresql_idx: improved doc, tests, remove useless lines from code (#55131) (#55209)
* postgresql_idx: improved doc, tests, remove useless lines from code (#55131)

* postgresql_idx: improve doc

* postgresql_idx: improve doc, removed unuseless rows from code

* postgresql_idx: misc doc fix

* postgresql_idx: moved common params where they were

* postgresql_idx: moved common params where they were 2

(cherry picked from commit d790285e80)

* postgresql_idx: added changelog about removing useless lines from code
2019-04-17 06:43:17 -07:00
5af5e70f6b psrp - fix test_command rc for win_reboot (#55354)
(cherry picked from commit 49655a452d)
2019-04-16 16:57:20 -07:00
33824f313e psrp - Fix fetch for large files (#55351)
* psrp - Fix fetch for large files

* Fix typo

(cherry picked from commit 52946c49a4)
2019-04-16 16:36:29 -07:00
c624eb994f win_whoami - Fix tests to work over psrp (#55352)
(cherry picked from commit 33c2a9cea7)
2019-04-16 16:20:12 -07:00
424f385548 win_feature - get tests working on psrp (#55353)
(cherry picked from commit 15c331cb48)
2019-04-16 16:06:29 -07:00
28348602f8 ensure facts marked as unsafe (#55326)
dont rely on plugin layer to do so

(cherry picked from commit aa8d23b42f)
2019-04-16 15:49:53 -07:00
ffa7eaa7a7 [stable-2.8] Version in deprecate calls should be a string (#55395)
* Version in deprecate calls should be a string. Fixes #55312. Fixes #55313. Fixes #55314. Fixes #55315. Fixes #55316. Fixes #55317.

* Add changelog fragment
(cherry picked from commit ca83a5c)

Co-authored-by: Matt Martz <matt@sivel.net>
2019-04-16 15:44:36 -07:00
8448967c74 [Backport 2.8] VMware: vmware_tools tls warning fixes
* vmware_tools: remove silence_tls_warnings option

* attempt import of bundled urllib3

(cherry picked from commit 7191d45885)
2019-04-16 15:41:18 -07:00
e62f75192d meraki_vlan - Remove unnecessary API calls when net_id is specified (#54939)
* Remove unnecessary API calls when net_id is specified

* Remove temp_get_nets commented out code

(cherry picked from commit fb3cc7f687)
2019-04-16 15:40:03 -07:00
fc37aed6d9 [stable-2.8] Revert "Disable hcloud tests until issues are resolved."
This reverts commit 216cd86cb8.
(cherry picked from commit a8955b0c7c)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-04-16 15:39:29 -07:00
c975c0e69b Correct plugin loader context for persistent (#54860)
* Correct plugin loader context for persistent

(cherry picked from commit 6579dfda17)
2019-04-16 15:38:42 -07:00
e4d9a5185d postgresql_slot - sslrootcert fix (#55277)
(cherry picked from commit 4190985995)
2019-04-16 15:16:45 -07:00
9cdc204139 openssl_csr: fix idempotency problems (#55142)
* Add test for generating a CSR with everything, and testing idempotency.

* Proper SAN normalization before comparison.

* Fix check in cryptography backend.

* Convert SANs to text. Update comments.

* Add changelog.

(cherry picked from commit cb5c57bcd5)
2019-04-16 15:09:54 -07:00
9e60b212dd [2.8] VMware: get_all_host_objs accepts list of host
vmware_portgroup accepts list of hosts, get_all_host_objs API modified
to accept list of hosts.

(cherry picked from commit 6ff4547489)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2019-04-16 15:08:13 -07:00
ebc717c337 docker_container: improve log_options idempotency by converting to string (#54955)
* Warn when log_options values are not strings.

* Add changelog.

* Improve message.

* Improve formatting and formulation of other messages.

* Add test for warning.

* Trying double escaping.

(cherry picked from commit d64b17731d)
2019-04-16 15:07:23 -07:00
455aa542d0 win_domain - fix for checking for domain on new host (#55195)
(cherry picked from commit 6039ff9a24)
2019-04-16 15:06:02 -07:00
3117495d43 [2.8] Update unit testing docs (#55366)
* Updated links
* Updated indentation
* Fixed typos

Fixes: #55242

(cherry picked from commit 3003954415)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2019-04-16 09:12:57 -05:00
1f7bb82810 Fix minor documentation error: base64 -> b64encode (#55257) (#55260)
* Fix minor documentation error: base64 -> b64encode

(cherry picked from commit 36ab96e4a9)
2019-04-16 09:09:35 -05:00
ad918699d2 Update Ansible release version to v2.8.0b1.post0. 2019-04-15 13:37:07 -07:00
89c3ebf053 New release v2.8.0b1 2019-04-15 12:21:54 -07:00
3ac5ccda03 [stable-2.8] Fix ansible-test unicode error with redact option.
(cherry picked from commit 2ef4ba3)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-04-15 11:37:57 -07:00
5b1645aca9 [stable-2.8] Rebalance Azure tests. (#55238)
(cherry picked from commit 7599229310)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-04-12 22:51:07 -07:00
bba6ca4db1 [stable-2.8] Disable hcloud tests until issues are resolved.
(cherry picked from commit 216cd86cb8)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-04-12 15:04:58 -07:00
9bc5f72c13 tag off long-running azure_rm_virtualnetworkgateway tests
(cherry picked from commit 837ea4b39f)
2019-04-12 14:14:55 -07:00
6179a94d9b [stable-2.8] Fix ansible-test inventory and vars path handling. (#55186)
* Fix ansible-test inventory and vars path handling.
* Improve explanation for missing commit.
(cherry picked from commit a4d0c24bbf)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-04-12 14:14:43 -07:00
1a96098bb3 [stable-2.8] Don't use SSLEOFError in vmware_tools.py
(cherry picked from commit 27a3ec3a12)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-04-12 08:42:24 -07:00
bca7f1fe22 [stable-2.8] vmware_tools: ignore absence of urllib3
(cherry picked from commit 05fe9ef)

Co-authored-by: James Cassell <code@james.cassell.me>
2019-04-11 16:51:35 -07:00
65b461b8fe Update the porting guide link to changelog 2019-04-11 11:17:22 -07:00
2c4b934482 Update the docs template to make 2.8 the current release 2019-04-11 11:04:40 -07:00
2208 changed files with 30743 additions and 16800 deletions

View File

@ -51,7 +51,7 @@ RELEASE ?= 1
# Get the branch information from git
ifneq ($(shell which git),)
GIT_DATE := $(shell git log -n 1 --format="%ai")
GIT_DATE := $(shell git log -n 1 --format="%ci")
GIT_HASH := $(shell git log -n 1 --format="%h")
GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD | sed 's/[-_.\/]//g')
GITINFO = .$(GIT_HASH).$(GIT_BRANCH)
@ -60,7 +60,7 @@ GITINFO = ""
endif
ifeq ($(shell echo $(OS) | egrep -c 'Darwin|FreeBSD|OpenBSD|DragonFly'),1)
DATE := $(shell date -j -r $(shell git log -n 1 --format="%at") +%Y%m%d%H%M)
DATE := $(shell date -j -r $(shell git log -n 1 --format="%ct") +%Y%m%d%H%M)
CPUS ?= $(shell sysctl hw.ncpu|awk '{print $$2}')
else
DATE := $(shell date --utc --date="$(GIT_DATE)" +%Y%m%d%H%M)

View File

@ -84,7 +84,7 @@ and has contributions from over 4000 users (and growing). Thanks everyone!
License
=======
GNU General Public License v3.0
GNU General Public License v3.0 or later
See `COPYING <COPYING>`_ to see the full text.

View File

@ -148,8 +148,5 @@ if __name__ == '__main__':
log_only = True
display.display(u"the full traceback was:\n\n%s" % to_text(traceback.format_exc()), log_only=log_only)
exit_code = 250
finally:
# Remove ansible tmpdir
shutil.rmtree(C.DEFAULT_LOCAL_TMP, True)
sys.exit(exit_code)

View File

@ -1,4 +1,10 @@
releases:
2.8.0:
codename: How Many More Times
fragments:
- 44811-xml-insertbefore-and-insertafter-parameters.yaml
- v2.8.0_summary.yaml
release_date: '2019-05-16'
2.8.0a1:
codename: How Many More Times
fragments:
@ -572,7 +578,6 @@ releases:
- win_copy-empty-dir.yaml
- win_copy-paths.yaml
- win_domain-cred.yaml
- win_domain_membership-replace.yaml
- win_dsc-validation.yaml
- win_dsc-warning.yaml
- win_file-hidden.yaml
@ -1409,3 +1414,713 @@ releases:
shell:
- cmd
release_date: '2019-04-04'
2.8.0b1:
codename: How Many More Times
fragments:
- 40366-modify-existing-volume.yml
- 45355-mysql_user-fix-versions-compatibilities.yml
- 49039-facts-xen-paravirt-cpuinfo.yaml
- 54494-ec2-user-data.yaml
- 54517-include-partition-table-postgresql-privs.yaml
- 54633-openssl_pkcs12_idempotency_fixes.yaml
- 54690-openssl_certificate-assertonly.yml
- 54692-ec2_asg_fix_reading_properties.yml
- 54799-ufw-default-direction.yml
- 54974-rename-safeconfigparser-to-configparser.yaml
- 55006-setup-is_chroot-btrfs.yaml
- 55038-rename-results-key-vmware-guest.yml
- 55083-univention-diff-UnboundLocalError.yaml
- dnf-4.2.2-module-remove.yaml
- facts-pkg-mgr-rhel.yaml
- fibre_channel_wwn_fact_aix.yaml
- fix_cache_assumption.yml
- gcp-compute-add-image.yaml
- include-no-swallow-error.yaml
- jinja2_nested_undefined_getitem.yaml
- paramiko-optional.yaml
- redhat_subscription_use_strings_for_yum_plugin_configs.yaml
- tower_job_launch-options.yaml
- use-module_utils-six-in-contrib-inventory.yaml
- user-read-passwd-when-local.yaml
- v2.8.0b1_summary.yaml
- yum-select-version.yml
modules:
- azure_rm_devtestlabcustomimage_facts
- azure_rm_devtestlabenvironment_facts
- azure_rm_devtestlabpolicy_facts
- azure_rm_devtestlabschedule_facts
- azure_rm_hdinsightcluster_facts
- azure_rm_virtualnetworkgateway
- cloudscale_server_group
- docker_swarm_service_info
- keycloak_group
- oci_vcn
- onyx_buffer_pool
- onyx_vxlan
- openssl_certificate_info
- openssl_csr_info
- openssl_privatekey_info
- ovirt_role
- podman_image
- podman_image_info
- postgresql_owner
- postgresql_slot
- vexata_volume
- win_format
- win_http_proxy
- win_inet_proxy
- xfs_quota
plugins:
connection:
- vmware_tools
inventory:
- cloudscale
- kubevirt
release_date: '2019-04-15'
2.8.0rc1:
codename: How Many More Times
fragments:
- 49904-rds_instance-datatype.yml
- 54955-docker_container-log_options-strings.yml
- 55078-redfish_utils_fix_406_not_acceptable_issue_with_some_oob_controllers.yml
- 55142-openssl_csr-crypto-backend-san.yml
- 55203-fix-for-removing-subscription-id-from-facts.yaml
- 55258-docker_host_info-old-docker-py.yml
- 55258-docker_swarm_service_info-old-docker-py.yml
- 55266-purefa_facts_remove_line.yaml
- 55278-cryto-use-bundled-ipaddress.yml
- 55384-netconf-import.yaml
- 55546-fixed-replacing-lb-with-ag-in-vmss.yaml
- 55591-docker_swarm_service-fix-uid-gid-secrets-config-type.yaml
- 55619-vultr_server_idempotency.yml
- 55681-azure_rm_manageddisk.yaml
- 55688-azure_rm_resourcegroup.yml
- 55693-fixing-final-function-app-properties.yml
- allow_inv_plugin_loading.yml
- ensure_discovery_unsafe.yml
- ensure_facts_safe.yml
- gitlab-deprecated-version.yaml
- k8s-fix_wait_for_response.yaml
- meraki_content_filtering-redundant-calls.yml
- meraki_static_route_api_calls.yml
- meraki_vlan_api_calls.yml
- persistent_loading.yml
- postgresql_idx-remove-useless-lines.yml
- postgresql_slot-fix-sslrootcert.yml
- psrp-fetch.yaml
- psrp-output.yaml
- tower_job_wait-wrong_examples.yml
- user-aix-shadow-file-parsing.yaml
- v2.8.0rc1_summary.yaml
- vmware_portgroup_list_host.yml
- vmware_tools_fix_urllib3_import.yaml
- vsphere_guest-corrected-state-operations.yml
- win_domain-setup.yaml
- win_reboot-psrp-command.yaml
- win_region-format.yaml
release_date: '2019-04-25'
2.8.0rc2:
codename: How Many More Times
fragments:
- 55515-use-active-state-for-any_errors_fatal.yaml
- bad_empty_play.yml
- ps-basic-json.yaml
- v2.8.0rc2_summary.yaml
release_date: '2019-05-01'
2.8.0rc3:
codename: How Many More Times
fragments:
- 51825-vmware_deploy_ovf-add_folder_doc.yml
- 56145-ios-net_get-net_put-update.yaml
- networkos_config_src_option_fix.yaml
- v2.8.0rc3_summary.yaml
- vmware_check_ssl_cert.yaml
release_date: '2019-05-10'
2.8.1:
codename: How Many More Times
fragments:
- 48971-meraki_ssid-docs.yml
- 53385-docker-privilege-escalation.yml
- 53601-meraki_switchport_improve_vlan_reliability.yml
- 54123-vmware_guest-string_compat.yml
- 54335-vmware_guest-memory_reservation.yml
- 54419-nios-member-updates.yaml
- 54750-fix_bugs_for_ce.yml
- 55224-ec2_instance-idempotent-tags.yaml
- 55249-doc_fragments_from_collections.yml
- 55514-postgres_move_connect_to_db.yml
- 55589_fix_vyos_prompt_issues.yaml
- 55595-nios-zone-idempotency-fix.yaml
- 55678-xenserver_guest-change-wait_for_ip_address-behaviour-and-other.yaml
- 55745-azure_rm_common.yaml
- 55797-azure_rm_roledefinition.yaml
- 55854-azure_rm_virtualnetworkpeering.yaml
- 55894-docker_container-restart.yml
- 55897-uri-correct-return-values.yaml
- 55938-dnf-fix-wildcard-matching-state-absent.yaml
- 55954-cnos-coverity-bugfix.yaml
- 56012-docker_container-oom-version.yml
- 56021-vmware_guest_disk-use_instance_uuid.yml
- 56038-fix-non-signature-auth.yaml
- 56073-vmware_vm_facts_fix_the_support_with_regular_ESXi.yaml
- 56126-eos-without-become.yaml
- 56147-k8s-update-with-force.yaml
- 56155-openssl_certificate-passphrase.yml
- 56180-eos-session-support.yaml
- 56235-eapi-vrf.yaml
- 56292-ios-static-route-ci-failure.yaml
- 56357-ibm-storage-unwanted-args-cause-failure.yml
- 56420-Fix-win_hostname-for-non-netbios-names.yml
- 56458-yum-fix-false-error-msg-autoremove.yaml
- 56538-yum-handle-proxy-conf.yaml
- 56575-os_stack-apply_tag_conditionally_to_fix_the_module.yaml
- 56608-postgresql_ping_fix_typo.yml
- 56610-docker_image-fix-oldstyle-defaults.yml
- 56618-update-pkg_mgr.py-for-Amazon-Linux-support.yaml
- 56638-yum-update_cache-fix.yaml
- 56678-ufw-status-change-detection.yaml
- 56687-docker_container-networks_cli_compatible.yml
- 56734-postgres_bugfix_pg_restore.yml
- 56747-netapp_e_volume-fix-profileId-indexing.yaml
- 56784-aci-do_not_encode_query_string.yaml
- 56787-interface-not-found.yaml
- 56808-openssl_pkcs12-passphrase-crash.yml
- 56900-route53-facts-check-mode.yaml
- 56912-update-rabbitmq_queue.yaml
- 56940-docker_image-fail.yml
- 56947-docker-dev.yml
- 56987-vmware_guest_powerstate-fix_task_name.yml
- 56990-hcloud_volume_attaching_idempotent.yaml
- 57057-add-terminal-initial-prompt-for-initial-connection.yml
- 57135-netapp_e_iscsi_target-fix-chap-secret-size-and-clearing.yaml
- 57297-postgresql_db_add_note_dump.yml
- always_keep_subset.yml
- ansible-adhoc.yaml
- asa_config_content_fix.yaml
- better_task_error.yml
- cgroup-perf-recap-fix-open-files.yaml
- docker_network_aux_addresses.yml
- fix_incorrect_nativisim.yml
- include_tasks_listen.yml
- kubevirt_pvc.yml
- kubevirt_vm_fix_craete_template.yml
- netconf_config_backup_issue.yaml
- nxos_acl_28.yaml
- nxos_facts_fix_backport_fix.yaml
- nxos_file_copy_fix.yaml
- nxos_interface_28.yaml
- nxos_snmp_traps_28.yaml
- nxos_snmp_user28.yaml
- nxos_vlan_28.yaml
- nxos_vtp_modules28_fix.yaml
- persistent_loading_2.yml
- playbookdir_coll_adj_fix.yml
- postgresql-add-initial-ssl-tests.yml
- postgresql-missing_required_libs.yml
- python_requirements_facts_dashes.yml
- ssh_better_errors.yml
- sysctl-invalid-value.yml
- urls-ipv6-redirects.yml
- v2.8.1_summary.yaml
- vars_prematurely_template.yaml
- vyos_interface_fixbackport.yaml
- win_acl-network.yaml
- winrm-input-failures.yaml
release_date: '2019-06-06'
2.8.10:
codename: How Many More Times
fragments:
- openstack-regression.yml
- v2.8.10_summary.yaml
release_date: '2020-03-05'
2.8.11:
codename: How Many More Times
fragments:
- 63280-fix_acl_spaces_in_path.yml
- 64906-always-delegate-fact-prefixes.yml
- af_clean.yml
- ansible-test-opensuse-15.1.yml
- ansible-test-rhel-7.8.yml
- fetch_no_slurp.yml
- ldap-params-removal.yml
- remote_mkdir_fix.yml
- subversion_password.yaml
- v2.8.11_summary.yaml
- vault_tmp_file.yml
- vault_tmp_race_fix.yml
- win-unzip-check-extraction-path.yml
release_date: '2020-04-16'
2.8.12:
codename: How Many More Times
fragments:
- 225-mysql_user_fix_no_database_selected.yml
- 68251-redfish_config-fix-boolean-bios-attr-support.yaml
- 68592-pip-check_mode-prereleases.yml
- ansible-test-rhel-82.yml
- dnf-4-2-18.yml
- inventory_docs_fix.yml
- v2.8.12_summary.yaml
- win_psmodule-repo-tls.yaml
release_date: '2020-05-11'
2.8.13:
codename: How Many More Times
fragments:
- 61889-change-transform_invalid_group_chars-default.yml
- 66549-enablerepo-not-honored-when-used-with-disablerepo-all.yml
- 70261_pipe_lookup.yml
- v2.8.13_summary.yaml
release_date: '2020-07-14'
2.8.14:
codename: How Many More Times
fragments:
- 32386_debconf_password.yml
- 67794-atomic_move-default-perms.yml
- 67794-default-permissions-warning-fix.yml
- 70762-sanitize-uri-keys.yml
- copy-sanitize-check-mode-invocation-args.yaml
- rpmfluff-compat-fixes.yml
- test-ansible-runner-pin-psutil.yml
- v2.8.14_summary.yaml
release_date: '2020-08-10'
2.8.15:
codename: How Many More Times
fragments:
- cve-2020-1736-revert.yml
- dnf_gpg.yml
- v2.8.15_summary.yaml
release_date: '2020-08-31'
2.8.16:
codename: How Many More Times
fragments:
- ansible-test-sanity-pylint-config-fix.yml
- v2.8.16_summary.yaml
release_date: '2020-10-05'
2.8.16rc1:
codename: How Many More Times
fragments:
- 159_kubectl.yml
- 69508-ansible-test-local-changes-detection.yml
- ansible-test-azp-resource-prefix.yml
- ansible-test-change-classification.yml
- ansible-test-ci-support-azure.yml
- ansible-test-ci-support-shippable-auth.yml
- ansible-test-ci-support.yml
- ansible-test-endpoint-update.yml
- ansible-test-parallels-endpoint.yml
- v2.8.16rc1_summary.yaml
release_date: '2020-09-28'
2.8.2:
codename: How Many More Times
fragments:
- 31735-fix-hostnames-lookup-order.yaml
- 50081-fix-rds-instance.yml
- 55223-python3-compat-fix-for-re.yaml
- 55505-foreman-inventory.yaml
- 55526-optional_vnic_type.yml
- 55575_notify_handlers_by_exact_match_only.yaml
- 55781-fact-cache-first_merge_order.yml
- 55799-postgres_move_params_mapping_to_connect_to_db.yml
- 55929-vmware_vm_inventory-skip_orphan_vm.yml
- 56045-nios-member-module.yaml
- 56954-purefa_pgsnap_handle_exit_correctly.yaml
- 56974 -update ospf modules to fix bugs as software version changes .yml
- 56976-update ce_ntp.py and remove the root tag name to find all nodes.yml
- 57024-adds-visibility-parameter-gitlab-group.yml
- 57093-win_pagefile-Bug-not-using-testPath.yml
- 57147_Fix_postgresql_pg_hba_TypeError_pg_hba.conf_wiped.yml
- 57190-improve-warnings-for-when.yaml
- 57221-nios-host-record-bug-fix.yaml
- 57248-gather_facts-cleanup-tmp.yaml
- 57264-update-vxlan-to-fix-bugs.yml
- 57272-fix-ansible-vault-whitelist-after-44320.yml
- 57295-openssh_keypair-fingerprint.yaml
- 57317-update-bgp-modules-to-fix-some-bugs.yml
- 57320-Portset-did-not-allow-you-to-add-port-when-creating-a-portset.yml
- 57327-fix-file-descriptor-leak.yaml
- 57363-interface-not-checking-vserser.yml
- 57379-duplicate-rules-create-if-index-not-set.yml
- 57391-postgresql_table_bugfix_schema_handling.yml
- 57447-netvisor-failing-with-network_cli-connection.yaml
- 57464-set-ovirt-disk-active-default.yaml
- 57480-ftd-configuration-fix-response-parsing.yaml
- 57481-ios-ntp-integration-tc-failure-fix.yaml
- 57507-postgresql_pg_hba_multiple_options.yml
- 57580-vmware_guest_move-fix_undefined_name.yml
- 57588-purefa_user_change_api_token_to_api.yaml
- 57591-speed-up-gcp-compute-dynamic-inventory.yaml
- 57618-fix-diff-on-absent-files.yaml
- 57665-ios-smoke-tc-failure-fix.yaml
- 57688-netbox-groups.yaml
- 57696-update-ce.py-to-fix-a-bug.yml
- 57698-update-ce_facts-to-fix-array-out-of-range-bug.yml
- 57720-fix-lvg-warning-int-to-str-conversion.yml
- 57750-option-is-marked-as-required-but-specifies-a-default.yml
- 57752-update-info-center.yml
- 57757-update-vrf-to-fix-bugs.yml
- 57790-ovirt_host_facts_fix.yml
- 57801-openssh_keypair-fix-make-regenerating-valid-files-possible.yml
- 57833-gitlab_runner-Fix-idempotency-on-creation.yml
- 57868-crypto-improve-req-errors.yml
- 57888-update-snmp-modules-to-fix-bugs-for-cloudengine.yml
- 57889-update-scmp-to-fix-bugs.yml
- 57890-update-acl-to-fix-bugs.yml
- 57896-fix-ipaddr-cidr-index-handling.yml
- 57903-ce_snmp_location_fix_for_out_of_array_index.yml
- 57904-ce_snmp_target_host.yml
- 57905-update-ce_acl_interface-to-fix-bugs.yml
- 57913-docker-robustness.yaml
- 57914-docker-py-missing.yaml
- 57919-python3-encoding-iosxr_config.yaml
- 57936-ovirt-nic-default-vnic.yml
- 57936-ovirt_vnic_profile_fix.yml
- 57969-docker_container-change-expected-config-source.yml
- 58015-yang-types.yaml
- 58039-docker_swarm_service-fix-resource-lookup.yaml
- 58159-ios-ansible-net-model-fix.yaml
- 58256-openssl_certificate-san-comparison.yml
- 58272_postgresql_privs-fix-views-handling.yml
- 58310-gather-facts-verbosity.yml
- 58315_postgresql_membership-remove-debug-print.yml
- 58351-fix-non-ascii-vault.yml
- add-env-variables-to-gcp-compute.yml
- add-minor-version-for-centos-debian.yaml
- config-cleanup-tmp-dirs.yaml
- dnf-better-error.yml
- fix_safe_eval.yml
- group-chars-ignore.yaml
- hostname-update-distros.yaml
- hostname_cumulus_linux_support.yaml
- iosxr_fix_netconf_test_failures.yaml
- junos_fix_netconf_test_failures.yaml
- kubevirt28.yaml
- meraki_network-structure.yml
- netbox_ip_address-fix-duplicate-ip.yaml
- netconf-python3-ab45f4c5bf155b6b.yaml
- nxos_install_os_fix28.yaml
- nxos_logging_fix28.yaml
- nxos_vlan_purge_fix28.yaml
- ovirt_fix_issue_in_resseting_sd_lease.yaml
- ovs-46c4645b69c20178.yaml
- podman_image_info-no-fail-on-invalid-image.yaml
- rds_instance_iops_fix.yaml
- runtime-error-3.8.yaml
- show_host_vars_in_graph.yml
- ssh-fix-text-conv.yml
- te-new-action-until.yml
- v2.8.2_summary.yaml
- win_chocolatey-version.yaml
- win_get_url-Fix-restricted-header-handling.yml
- win_shell-arg-space.yaml
release_date: '2019-07-03'
2.8.3:
codename: How Many More Times
fragments:
- 41240-fix-os_quota-without-cinder.yaml
- 50617-vmware_guest-vapp_settings.yml
- 54790-fix-region-aws_secret-lookup.yaml
- 55194-ec2_eip-required_together.yml
- 56376-bootproto_dhcp_regression.yaml
- 56481-group-detect-duplicate-gids-local.yaml
- 57298-ovirt_vnic_remove_duplication_readme.yml
- 57351-role-custom-filter.yaml
- 57518-tower_role-fix_validate_certs.yml
- 57711-To_resolve_NoneType_error_in_aci_l3out.yaml
- 57907-update-ce_interface-to-fix-bugs.yml
- 57947-update-ce_vxlan_global-to-fix-bugs.yml
- 58060-vmware_guest-make_max_connections_work.yml
- 58136-ovirt_vm_migrate_with_state_present.yml
- 58200-update-ce_bfd_global-to-fix-a-bug.yml
- 58207-update-ce_bfd_view-to-fix-a-bug.yml
- 58226-update-ce_vxlan_gateway-to-fix-a-bug.yml
- 58227-update-cce_evpn_bd_vni-to-fix-a-bug.yml
- 58229-update-ce_interface_ospf-to-fix-a-bug.yml
- 58483-win_setup_resilience.yml
- 58554-update-ce_vrrp-to-fix-a-bug.yml
- 58559-update-ce_evpn_bgp_rr-to-fix-a-bug.yml
- 58561-update-ce_link_status-to-fix-a-bug.yml
- 58563-update-ce_netstream_aging-to-fix-a-bug.yml
- 58565-update-ce_static_route-to-fix-a-bug.yml
- 58569-nagios-fifo-fix.yaml
- 58577-ovirt_update_vm_migration_domunetation.yml
- 58579-vmware_object_role_perm_fix.yml
- 58605-openssl_privatekey-secp256r1.yml
- 58625-ovirt_add_host_retry_doc.yml
- 58734-correct-machinectl-become-plugin.yaml
- 58737-vmware_guest-fix_clone_guest.yml
- 58791-docker-errors.yml
- 58820-use-templated-loop_var-in-include_tasks.yaml
- 58949-nmcli-vlanid-typecast.yml
- 59043-docker_container-nocopy.yml
- 59072-update-ce_interface-to-fix-a-bug.yml
- 59190-vmware_guest-mem_reservation.yml
- 59196-ovirt_use_sysprep_when_needed.yml
- 59243-update-ce_file_copy-to-fix-a-bug.yml
- 59342_postgresql_schema-fix-example.yml
- 59377-ovirt-vm-when-creating-fix.yml
- ac_collection_plugin_load.yml
- become_none.yml
- dzdo_password_prompt.yml
- facts-linux-cpu-arm-architecture.yml
- fix_gathering_reporting.yml
- gather_subset_defaults.yml
- ios_command_edit_macro_dont_handle_no_macro.yaml
- ovirt_fetch_also_list_of_hrefs.yaml
- slxos_config_fix.yaml
- user-local-mode-group-append.yaml
- v2.8.3_summary.yaml
- win_domain_user-error.yaml
- win_get_url-proxy-not-used.yml
- win_reg_stat-hku.yaml
- yum-handle-stale-lock-file.yaml
- yum-sane-default-lockfile-timeout.yml
release_date: '2019-07-25'
2.8.4:
codename: How Many More Times
fragments:
- 46332-aws-improve-etag-handling.yml
- 49568-type-checking.yaml
- 49754-default-become-user-pbrun-become-plugin.yaml
- 55716-ec2_instance_int_volume_size.yml
- 56392-consul_session-improve_doc_and_add_integration_tests.yaml
- 56844-glusterfs_volume-fix_compare.yml
- 57579-add-pipelining-to-podman-connection-plugin.yaml
- 57935-ovirt-host-event-log.yml
- 57993-openssh_keypair-add-public-key-and-key-comment-validation.yml
- 58360-fix-cpu-count-ppc.yaml
- 58876-do-not-reuse-remote_user-from-prev-loop.yaml
- 59106-fix-ipv6-truncating-in-ec2_group.yml
- 59335-developing_modules_general-update_docs.yaml
- 59437-update-ce_ntp_auth-to-fix-a-bug.yml
- 59445-ce_rollback_shouldnt_load_xml_configure_via_network_cli.yml
- 59456-find-return-values.yaml
- 59497_postgresql-modules-remove-unused-imports.yml
- 59503-fix-recursive-csharp-logging.yml
- 59515-ce_mtu-update-to-fix-bugs.yml
- 59520-ce_startup-update-to-fix-a-bug.yml
- 59548-import-playbook-plugin-dirs.yml
- 59677-ce_vrrp-to-fix-bugs.yml
- 59678-ce_bgp_af-to-fix-bugs.yml
- 59684-ce_mlag_config-to-fix-bugs.yml
- 59685-ce_stp-to-fix-bugs.yml
- 59715-docker_container-ipv6-port-bind.yml
- 59728-ce_config-to-fix-bugs.yml
- 59769-fix_ansible_issue_58469_regression.yaml
- 59786-ce_netstream_global-to-fix-bugs.yml
- 59862-ovirt-vnic-profile-qos-update-fix.yml
- 60033-ce_netstream_template-to-fix-bugs.yml
- 60084-ce_ce_rollback_set_mmi-mode-enable.yaml
- 60085-ce_config _set_mmi-mode.yml
- 60105-postgresql_turn_off_db_default_warnings.yml
- 60198-ovirt-vnic-profile-check-fix.yml
- 60202-ovirt-host-update-force-docs.yml
- 60270-ce_aaa_server-to-fix-bugs.yml
- 60272-ce_aaa_server_host-to-fix-bugs.yml
- 60274-ce_acl-to-fix-bugs.yml
- adhoc-command-async-output.yaml
- aws_s3-etags.yaml
- dont_template_passwords_from_prompt.yml
- fix_iosxr_facts.yaml
- fix_strategy_inv_up.yml
- gcp-session-merge_dict.yml
- gcp_fixes.yml
- group-chars-ignore-doc.yaml
- netconf_command_timeout.yaml
- os_subnet-subnetpool-id-allowed.yaml
- podman_image-build-output-format.yaml
- sysctl-check-file-and-system.yaml
- user-local-warning-fix.yaml
- v2.8.4_summary.yaml
- vmware_datastore_facts_dict_iter.yml
- win_domain_group_membership-Fix-missing-vars-for-Get-command.yml
- win_dsc-datetime.yaml
- win_user-logon-err.yaml
release_date: '2019-08-15'
2.8.5:
codename: How Many More Times
fragments:
- 57096-netapp_e_lun_mapping-Fix-confict-and-zero-lun.yaml
- 57185-fix_vmware_modules_py_pre2.79.yaml
- 58194-vm-name-item-not-yet-present-at-creation-time.yaml
- 59471-systemd-wait-while-deactivating.yaml
- 59745-fix-pipelining-in-buildah-connection-plugin.yml
- 60381-docker_login-logout-change.yml
- 60410-search-project-in-domain.yml
- 60412-ce_bfd_global-to-fix-bugs.yml
- 60461-ovirt-vm-update-template-search-by-datacenter.yml
- 60581-ovirt-vm-add-linux-boot-param-warning.yml
- 60582-ovirt-vm-update-kernel-docs.yml
- 60616-support-multiple-port.yaml
- 60683-backport-57418.yaml
- 60727-acme_certificate-acme-compatibility.yml
- 60737-xenserver_guest-vbd-plug-fix.yml
- 60745-openssl_certificate-idempotency.yml
- 60912-constructed-groups-option-sanitization.yaml
- 60961-docker_compose-fix-deprecation-warning.yml
- 61231-extended-loop-include.yaml
- 61655-fix-digital-ocean-droplet-create.yaml
- 61735-wait-for-s3-bucket-to-exist-before-modifying.yaml
- 61740-docker_container-port-range-parsing.yml
- bigip-monitor-http-receive-parameter.yaml
- meraki-syslog-net-id.yaml
- meraki_syslog_net_id.yaml
- nxos_install_os_28_testfix.yaml
- openbsd-disabled-account-no-warning-for-passwd.yaml
- package_facts-performace-regression-fix.yaml
- purefa_facts-api-version-check-for-admin-and-all.yml
- user-docs-group-fix.yaml
- v2.8.5_summary.yaml
- win_domain-exceptions-2.yaml
- win_domain-exceptions.yaml
release_date: '2019-09-12'
2.8.6:
codename: How Many More Times
fragments:
- 55919-rabbitmq_publish-fix-for-recent-pika-versions.yml
- 57741-podman-connection-plugin-fix-mount.yaml
- 58756-fix_eos_bgp_fetching_as.yaml
- 58978-junos_user-fix-ssh-key-assignment.yaml
- 59450-ce_file_copy_different_version_sshserver_xml.yml
- 59765-cron-cronvar-use-get-bin-path.yaml
- 60569-plugins-netconf-ce.yml
- 60573-ce_bgp-to-fix-bugs.yml
- 60634-ce_bgp_neighbor-to-fix-bugs.yml
- 60937-ce_bgp_neighbor_af-to-fix-bugs.yml
- 61013-ce_evpn_bgp-to-fix-bugs.yml
- 61136-ce_evpn_bgp-to-fix-bugs.yml
- 61168-ce_evpn_bgp_rrl-to-fix-bugs.yml
- 61283-ce_info_center_global-to-fix-bugs.yml
- 61431-ce_interface_ospf-to-fix-bugs.yml
- 61442-ce_mtu-to-fix-bugs.yml
- 61652-ce_netstream_export-to-fix-bugs.yml
- 61653-ce_netstream_aging-to-fix-bugs.yml
- 61654-ce_ntp-to-fix-bugs.yml
- 61672-jenkins_modules-csrf-handling-in-versions-more-2.173.3.yaml
- 61683-ce_vrf_af-to-fix-bugs.yml
- 61684-ce_ospf-to-fix-bugs.yml
- 61693-acme-buypass-acme-v1.yml
- 61774-ce_stp-to-fix-bugs.yml
- 61842-ce_snmp_target_host-to-fix-bugs.yml
- 61843-ce_snmp_traps-to-fix-bugs.yml
- 61978-get-url-no-checksum.yml
- 61995-ce_vxlan_arp-to-fix-bugs.yml
- 61996-ce_vxlan_vap-to-fix-bugs.yml
- 62184-junos_user_encrypted_password_fix.yaml
- 62498-ce_static_route-to-fix-bugs.yml
- 62587-module_utils-network-cloudengine.yml
- 62589-ce_bgp_af-to-fix-bugs.yml
- 62621-docker_login-fix-60381.yaml
- 62790-openssl_certificate_fix_assert.yml
- 62809-dnf-wildcard-absent-failure.yml
- 62857-detect-freebsd-jails.yaml
- 62928-docker_container-ip-address-idempotency.yml
- 62971-docker_container-image-finding.yml
- 63194-lineinfile_insertafter_duplicate.yaml
- 63249-fix-sts-assume-role-test.yml
- 63331-ce_facts-to-fix-bugs.yml
- 63345-docker_image-deprecation-warnings.yml
- 63388_ce_netsream_list_index_out_of_range.yml
- 63418-docker_node_info-errors.yml
- 63422-ce_link_status_fix_bugs.yaml
- aci-42-filter-whitespace.yaml
- ansible-test-redact.yml
- ansible-test-ssh-keygen-fix.yml
- boto-logging-credentials.yml
- cron-only-get-bin-path-once.yaml
- cronvar-correct-binary-name.yaml
- debug_loop_changed.yaml
- display-warning-remove-erroneous-space.yaml
- dont-template-cli-passwords.yml
- firewalld-version-0_7_0.yml
- lookup_rabbitmq-is_closing-bug.yml
- mso_schema_template_bd-payload-fix.yaml
- no-log-sub-options-invalid-parameter.yaml
- package-facts-use-module-warnings.yaml
- package_facts_apt_fix.yml
- package_facts_clarify.yml
- psexec-kerb-and-interactive.yaml
- user-aix-shadow-unbound-local.yaml
- v2.8.6_summary.yaml
- vmware-use_non_default.yml
- win_exec-error.yaml
release_date: '2019-10-17'
2.8.7:
codename: How Many More Times
fragments:
- 56832-remove-aptitude-warning.yml
- 57804-win_acl-no-longer-needs-SeSecurityPrivilege.yml
- 58158-sysctl-fix-referenced-before-assignment.yaml
- 58323-copy-deep-recursive-with-remote_src.yaml
- 58525-zabbix-modules-logout.yml
- 59017-perf-regression-handlers.yml
- 60425-gitlab-fix-deprecation-warning.yml
- 62407-wait_for_connection.yml
- 62872-ce_config_too_many_quit_close_connection.yml
- 63140-acme-fix-fetch-url-status-codes.yaml
- 63432-openssl_csr-version.yml
- 63513-ce_action_wait_prompt_trigger_time_out.yaml
- 63522-remove-args-from-sumologic-and-splunk-callbacks.yml
- 63919-lineinfile-create-no-dir-path.yml
- 63984-openssl-ed25519-ed448.yml
- 64011_vmware_deploy_ovf.yml
- 64018-ce_acl_interface-to-fix-bugs.yml
- 64382-docker_login-fix-invalid-json.yml
- 64637-docker_swarm_service-tmpfs-source.yml
- ansible-test-rhel-8.1-testing.yml
- ansible_basic_no_log_empty_string.yaml
- lineinfile-backrefs-match-object-type.yaml
- lineinfile-use-correct-index-value.yaml
- paramiko_ssh-improve-error-message.yaml
- v2.8.7_summary.yaml
- vault-ensure-vault-password-files-are-list.yaml
- win_domain_computer-credential.yaml
- win_iis_website-restarted.yaml
- win_partition-var.yaml
release_date: '2019-11-13'
2.8.8:
codename: How Many More Times
fragments:
- 59887-scale-bug.yml
- 62348-yarn-no_version_install_fix.yml
- 63551-yum-single-YumBase-instantiation.yaml
- 63621-gitlab_user-fix-sshkey-and-user.yml
- 64397-netscaler_service-bugfix.yml
- 64648-acme_certificate-acmev1.yml
- 64902-fix-allow-duplicates-in-single-role.yml
- 64940_update_modules_docs_notes.yml
- 64941_update_modules_docs_notes.yml
- 64942_update_modules_docs_notes.yml
- 64943_update_modules_docs_notes.yml
- 64944_update_modules_docs_notes.yml
- 64945_update_modules_docs_notes.yml
- 65017-openssh_keypair-idempotence.yml
- 65018-docker-none-errors.yml
- 65065-plugins-netconf-ce-fix.yaml
- 65176-gitlab-runner-idempotency.yaml
- 65302-dnf-msg-return.yml
- 65435-openssl_csr-privatekey_path-required.yml
- 65839-docker_network-idempotence.yml
- 65854-docker_container-wait-for-removal.yml
- 65993-restart-docker_container-on-restart-policy-updates.yaml
- 66151-docker_swarm_service-healthcheck-start-period.yml
- ansible-test-coverage-constraint.yml
- ansible-test-ignore-pip-warnings.yml
- ansible-test-setuptools-constraint.yml
- fips-paramiko-import-error.yaml
- nxos_file_copy_path_issue.yml
- solaris_zone_name_fix.yml
- user-alpine-on-changed-fix.yaml
- v2.8.8_summary.yaml
- yum-enable-missing-repo.yaml
release_date: '2020-01-15'
2.8.9:
codename: How Many More Times
fragments:
- 62062-os_network-openstacksdk-min.yml
- 66914-purefa_user_string.yaml
- 66974-mysql_user_doesnt_support_privs_with_underscore.yml
- 67515-openssl-fingerprint-fips.yml
- ansible-test-constraints-virtualenv.yml
- ansible-test-jinja2-python-2.6.yml
- v2.8.9_summary.yaml
- win_unzip-paths.yaml
release_date: '2020-03-04'

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,9 @@ new_plugins_after_name: removed_features
sections:
- ['major_changes', 'Major Changes']
- ['minor_changes', 'Minor Changes']
- ['breaking_changes', 'Breaking Changes / Porting Guide']
- ['deprecated_features', 'Deprecated Features']
- ['removed_features', 'Removed Features (previously deprecated)']
- ['security_fixes', 'Security Fixes']
- ['bugfixes', 'Bugfixes']
- ['known_issues', 'Known Issues']

View File

@ -0,0 +1,2 @@
security_fixes:
- kubectl - connection plugin now redact kubectl_token and kubectl_password in console log (https://github.com/ansible-collections/community.kubernetes/issues/65) (CVE-2020-1753).

View File

@ -0,0 +1,2 @@
bugfixes:
- mysql_user - fix the error No database selected (https://github.com/ansible/ansible/issues/68070).

View File

@ -0,0 +1,2 @@
bugfixes:
- inventory_hostnames lookup - use the same order for the returned hosts as the inventory manager

View File

@ -0,0 +1,2 @@
minor_changes:
- debconf - add a note about no_log=True since module might expose sensitive information to logs (https://github.com/ansible/ansible/issues/32386).

View File

@ -1,2 +1,2 @@
bugfixes:
- postgresql_db - the module fails not always when pg_dump errors occured (https://github.com/ansible/ansible/issues/40424).
- postgresql_db - the module fails not always when pg_dump errors occurred (https://github.com/ansible/ansible/issues/40424).

View File

@ -0,0 +1,3 @@
---
bugfixes:
- "os_quota - fix failure to set compute or network quota when volume service is not available"

View File

@ -0,0 +1,2 @@
minor_changes:
- xml - Introduce ``insertbefore`` and ``insertafter`` to specify the position (https://github.com/ansible/ansible/pull/44811)

View File

@ -0,0 +1,2 @@
bugfixes:
- aws_s3 module - Improve ETag calculation, allow overwrite=always to work on FIPS-140-2

View File

@ -1,7 +1,7 @@
minor_changes:
- magic variables - added a new ``ansible_role_names`` magic variable to include the names of roles being applied to
the host both directly and indirectly (via dependencies).
- magic variabels - added a new ``ansible_play_role_names`` magic variable to mimic the old functionality of
- magic variables - added a new ``ansible_play_role_names`` magic variable to mimic the old functionality of
``role_names``. This variable only lists the names of roles being applied to the host directly, and does not
include those added via dependencies
- magic variables - added a new ``ansible_dependent_role_names`` magic variable to contain the names of roles

View File

@ -2,4 +2,4 @@
minor_changes:
- "docker_network - Add support for IPv6 networks."
deprecated_features:
- "docker_network - Deprecate ``ipam_options`` in favour of ``ipam_config``."
- "docker_network - Deprecate ``ipam_options`` in favor of ``ipam_config``."

View File

@ -1,3 +1,3 @@
---
bugfixes:
- apt - Show a warning hint in case apt auto-installs its dependecies.
- apt - Show a warning hint in case apt auto-installs its dependencies.

View File

@ -0,0 +1,2 @@
minor_changes:
- meraki_ssid - Add examples to documentation.

View File

@ -0,0 +1,3 @@
---
bugfixes:
- "nagios - Removed redundant type check which caused crashes. Guardrails added elsewhere in earlier change."

View File

@ -0,0 +1,2 @@
bugfixes:
- pbrun - add default user for become plugin (https://github.com/ansible/ansible/pull/59754)

View File

@ -0,0 +1,2 @@
minor_changes:
- Add variable type for performance_insights_retention_period (https://github.com/ansible/ansible/issues/49904).

View File

@ -0,0 +1,2 @@
bugfixes:
- rds_instance - Fixed EnablePerformanceInsights setting (https://github.com/ansible/ansible/issues/50081)

View File

@ -0,0 +1,2 @@
minor_changes:
- vApp setting can be set while VM creation in vmware_guest (https://github.com/ansible/ansible/issues/50617).

View File

@ -0,0 +1,2 @@
minor_changes:
- Added documentation about the folder parameter with examples in vmware_deploy_ovf (https://github.com/ansible/ansible/issues/51825).

View File

@ -6,9 +6,9 @@ minor_changes:
- "docker_swarm_service - Add option ``restart_config`` as a grouper for restart options."
- "docker_swarm_service - Add option ``update_config`` as a grouper for update options."
deprecated_features:
- "docker_swarm_service - Deprecate ``constraints`` in favour of ``placement``."
- "docker_swarm_service - Deprecate ``log_driver`` and ``log_driver_options`` in favour of ``logging``."
- "docker_swarm_service - Deprecate ``limit_cpu`` and ``limit_memory`` in favour of ``limits``."
- "docker_swarm_service - Deprecate ``reserve_cpu`` and ``reserve_memory`` in favour of ``reservations``."
- "docker_swarm_service - Deprecate ``restart_policy``, ``restart_policy_attempts``, ``restart_policy_delay`` and ``restart_policy_window`` in favour of ``restart_config``."
- "docker_swarm_service - Deprecate ``update_delay``, ``update_parallelism``, ``update_failure_action``, ``update_monitor``, ``update_max_failure_ratio`` and ``update_order`` in favour of ``update_config``."
- "docker_swarm_service - Deprecate ``constraints`` in favor of ``placement``."
- "docker_swarm_service - Deprecate ``log_driver`` and ``log_driver_options`` in favor of ``logging``."
- "docker_swarm_service - Deprecate ``limit_cpu`` and ``limit_memory`` in favor of ``limits``."
- "docker_swarm_service - Deprecate ``reserve_cpu`` and ``reserve_memory`` in favor of ``reservations``."
- "docker_swarm_service - Deprecate ``restart_policy``, ``restart_policy_attempts``, ``restart_policy_delay`` and ``restart_policy_window`` in favor of ``restart_config``."
- "docker_swarm_service - Deprecate ``update_delay``, ``update_parallelism``, ``update_failure_action``, ``update_monitor``, ``update_max_failure_ratio`` and ``update_order`` in favor of ``update_config``."

View File

@ -0,0 +1,4 @@
---
bugfixes:
- Fix privilege escalation support for the docker connection plugin when
credentials need to be supplied (e.g. sudo with password).

View File

@ -0,0 +1,2 @@
bugfixes:
- "meraki_switchport - improve reliability with native VLAN functionality."

View File

@ -0,0 +1,2 @@
minor_changes:
- vmware_guest now accepts Python 2 and Python 3 compatible string translate method (https://github.com/ansible/ansible/issues/54118).

View File

@ -0,0 +1,2 @@
minor_changes:
- Remove duplicate implementation of memory reservation parameter in vmware_guest (https://github.com/ansible/ansible/issues/54335).

View File

@ -0,0 +1,2 @@
bugfixes:
- To fix the nios member module params - https://github.com/ansible/ansible/pull/54419

View File

@ -0,0 +1,2 @@
bugfixes:
- fix bugs for ce - more info see #54750(https://github.com/ansible/ansible/pull/54750)

View File

@ -0,0 +1,2 @@
bugfixes:
- aws_secret - Document region so the config manager can retrieve its value.

View File

@ -0,0 +1,2 @@
bugfixes:
- "docker_container - fix idempotency of ``log_options`` when non-string values are used. Also warn user that this is the case."

View File

@ -0,0 +1,2 @@
bugfixes:
- redfish_utils - fix "406 Not Acceptable" issue with some OOB controllers (https://github.com/ansible/ansible/issues/55078)

View File

@ -0,0 +1,3 @@
bugfixes:
- "openssl_csr - the cryptography backend's idempotency checking for basic constraints was broken."
- "openssl_csr - SAN normalization for IP addresses for the pyOpenSSL backend was broken."

View File

@ -0,0 +1,2 @@
minor_changes:
- In ec2_eip, device_id is required when private_ip_address is set, but the reverse is not true (https://github.com/ansible/ansible/pull/55194).

View File

@ -0,0 +1,3 @@
---
bugfixes:
- "Fixes an issue when subscription_id is masked in the output when it's passed as one of the parameters."

View File

@ -0,0 +1,2 @@
bugfixes:
- Fix python3 compat issue with network/common/config.py - https://github.com/ansible/ansible/pull/55223

View File

@ -0,0 +1,2 @@
bugfixes:
- ec2_instance - make Name tag idempotent (https://github.com/ansible/ansible/pull/55224)

View File

@ -0,0 +1,2 @@
bugfixes:
- Fixed loading namespaced documentation fragments from collections.

View File

@ -0,0 +1,2 @@
bugfixes:
- "docker_host_info - ``network_filters`` needs docker-py 2.0.2, ``disk_usage`` needs docker-py 2.2.0."

View File

@ -0,0 +1,2 @@
bugfixes:
- "docker_swarm_service_info - work around problems with older docker-py versions such as 2.0.2."

View File

@ -0,0 +1,2 @@
bugfixes:
- "purefa_facts - remove unnecessary line that could cause failure in rare circumstances."

View File

@ -0,0 +1,3 @@
bugfixes:
- "openssl_csr, openssl_csr_info - use ``ipaddress`` module bundled with Ansible for normalizations needed for pyOpenSSL backend."
- "acme_certificate - use ``ipaddress`` module bundled with Ansible for normalizations needed for OpenSSL backend."

View File

@ -0,0 +1,2 @@
bugfixes:
- Move netconf import errors from import to use.

View File

@ -0,0 +1,2 @@
bugfixes:
- Fix foreman inventory plugin when inventory caching is disabled

View File

@ -0,0 +1,3 @@
---
bugfixes:
- postgresql - move connect_to_db and get_pg_version into module_utils/postgres.py (https://github.com/ansible/ansible/pull/55514)

View File

@ -0,0 +1,2 @@
bugfixes:
- Be sure to use the active state when checking for any_errors_fatal

View File

@ -0,0 +1,5 @@
---
bugfixes:
- os_port - handle binding:vnic_type as optional
(https://github.com/ansible/ansible/issues/55524,
https://github.com/ansible/ansible/issues/55525)

View File

@ -0,0 +1,2 @@
bugfixes:
- Fixes replacing load balancer with application gateway in Azure virtualmachine scaleset, as leaning up old load balancer was not done properly.

View File

@ -0,0 +1,3 @@
bugfixes:
- handlers - Only notify a handler if the handler is an exact match by ensuring `listen` is a list of strings.
(https://github.com/ansible/ansible/issues/55575)

View File

@ -0,0 +1,2 @@
bugfixes:
- Fix vyos cli prompt inspection (https://github.com/ansible/ansible/pull/55589)

View File

@ -0,0 +1,2 @@
bugfixes:
- "docker_swarm_service - Change the type of options ``gid`` and ``uid`` on ``secrets`` and ``configs`` to ``str``."

View File

@ -0,0 +1,2 @@
bugfixes:
- To fix the nios_zone module idempotency failure - https://github.com/ansible/ansible/pull/55595

View File

@ -0,0 +1,2 @@
bugfixes:
- vultr_server - Fix idempotency for options ``ipv6_enabled`` and ``private_network_enabled``.

View File

@ -0,0 +1,6 @@
minor_changes:
- xenserver_guest - wait_for_ip_address is now ignored when state=absent (https://github.com/ansible/ansible/issues/55348).
bugfixes:
- xenserver_guest - proper error message is shown when maximum number of network interfaces is reached and multiple network interfaces are added at once.
- xenserver_guest - fixed an issue where VM whould be powered off even though check mode is used if reconfiguration requires VM to be powered off.

View File

@ -0,0 +1,2 @@
bugfixes:
- Enable azure manged disk test

View File

@ -0,0 +1,2 @@
bugfixes:
- add resource group test

View File

@ -0,0 +1,2 @@
bugfixes:
- azure_rm_functionapp - adding two properties which need to be set by default, otherwise function app won't behave correctly in Azure Portal.

View File

@ -0,0 +1,2 @@
bugfixes:
- ec2_instance - Ensures ``ebs.volume_size`` and ``ebs.iops`` are ``int`` to avoid issues with Jinja2 templating

View File

@ -0,0 +1,2 @@
bugfixes:
- Fix cannot get credential when `source_auth` set to `credential_file`.

View File

@ -0,0 +1,2 @@
bugfixes:
- fact_cache - Define the first_order_merge method for the legacy FactCache.update(key, value).

View File

@ -0,0 +1,2 @@
bugfixes:
- azure_rm_roledefinition - fix a small error in build scope. (https://github.com/ansible/ansible/pull/55797)

View File

@ -0,0 +1,2 @@
bugfixes:
- postgresql - move params mapping from main to connect_to_db() function (https://github.com/ansible/ansible/pull/55799)

View File

@ -0,0 +1,2 @@
bugfixes:
- azure_rm_virtualnetworkpeering - fix cross subscriptions virtual network peering. (https://github.com/ansible/ansible/pull/55854)

View File

@ -0,0 +1,2 @@
bugfixes:
- "docker_container - use docker API's ``restart`` instead of ``stop``/``start`` to restart a container."

View File

@ -0,0 +1,2 @@
bugfixes:
- uri - always return a value for status even during failure (https://github.com/ansible/ansible/issues/55897)

View File

@ -0,0 +1,2 @@
bugfixes:
- rabbitmq_publish - Fix to ensure the module works correctly for pika v1.0.0 and later. (https://github.com/ansible/ansible/pull/61960)

View File

@ -0,0 +1,2 @@
minor_changes:
- Skip orphan VMs from inventory while running vmware_vm_inventory as VMs does not return any facts (https://github.com/ansible/ansible/pull/55929).

View File

@ -0,0 +1,2 @@
bugfixes:
- "dnf - fix wildcard matching for state: absent (https://github.com/ansible/ansible/issues/55938)"

View File

@ -0,0 +1,3 @@
---
bugfixes:
- Fixing bug came up after running cnos_vrf module against coverity.

View File

@ -0,0 +1,2 @@
bugfixes:
- "docker_container - ``oom_killer`` and ``oom_score_adj`` options are available since docker-py 1.8.0, not 2.0.0 as assumed by the version check."

View File

@ -0,0 +1,2 @@
minor_changes:
- vmware_guest_disk module supports use_instance_uuid parameter since Ansible 2.8 (https://github.com/ansible/ansible/issues/56021).

View File

@ -0,0 +1,2 @@
bugfixes:
- ACI modules - Fix non-signature authentication

View File

@ -0,0 +1,2 @@
bugfixes:
- Bug fixes to nios_member module

View File

@ -0,0 +1,2 @@
bugfixes:
- vmware_vm_facts - fix the support with regular ESXi

View File

@ -0,0 +1,2 @@
bugfixes:
- "eos: don't fail modules without become set, instead show message and continue"

View File

@ -0,0 +1,2 @@
bugfixes:
- Fix net_get and net_put task run failure - https://github.com/ansible/ansible/pull/56145

View File

@ -0,0 +1,2 @@
bugfixes:
- k8s - resource updates applied with force work correctly now

View File

@ -0,0 +1,2 @@
bugfixes:
- "openssl_certificate - fix private key passphrase handling for ``cryptography`` backend."

View File

@ -0,0 +1,2 @@
bugfixes:
- "eos_config: check for session support when asked to 'diff_against: session'"

View File

@ -0,0 +1,2 @@
bugfixes:
- "eos_eapi: fix idempotency issues when vrf was unspecified."

View File

@ -0,0 +1,2 @@
bugfixes:
- To fix the ios static route TC failure in CI - https://github.com/ansible/ansible/pull/56292

View File

@ -0,0 +1,2 @@
bugfixes:
- ibm_storage - Added a check for null fields in ibm_storage utils module.

View File

@ -0,0 +1,2 @@
bugfixes:
- nmcli - fixed regression caused by commit b7724fd, github issue #36615 (https://github.com/ansible/ansible/issues/36615)

View File

@ -0,0 +1,3 @@
---
bugfixes:
- "consul_session - ``state`` parameter: use ``required_if``, document ``id`` parameter, update ``name`` parameter documentation"

View File

@ -0,0 +1,2 @@
bugfixes:
- "win_hostname - Fix non netbios compliant name handling (https://github.com/ansible/ansible/issues/55283)"

View File

@ -0,0 +1,2 @@
bugfixes:
- yum - Fix false error message about autoremove not being supported (https://github.com/ansible/ansible/issues/56458)

View File

@ -0,0 +1,2 @@
bugfixes:
- group - properly detect duplicate GIDs when local=yes (https://github.com/ansible/ansible/issues/56481)

View File

@ -0,0 +1,2 @@
bugfixes:
- 'yum - handle special "_none_" value for proxy in yum.conf and .repo files (https://github.com/ansible/ansible/issues/56538)'

View File

@ -0,0 +1,2 @@
bugfixes:
- os_stack - Apply tags conditionally so that the module does not throw up an error when using an older distro of openstacksdk (https://github.com/ansible/ansible/pull/56710)

View File

@ -0,0 +1,2 @@
bugfixes:
- postgresql_ping - fixed a typo in the module documentation (https://github.com/ansible/ansible/pull/56608)

View File

@ -0,0 +1,3 @@
bugfixes:
- "docker_image - if ``nocache`` set to ``yes`` but not ``build.nocache``, the module failed."
- "docker_image - if ``build`` was not specified, the wrong default for ``build.rm`` is used."

View File

@ -0,0 +1,2 @@
bugfixes:
- pkg_mgr - Ansible 2.8.0 failing to install yum packages on Amazon Linux (https://github.com/ansible/ansible/issues/56583)

View File

@ -0,0 +1,2 @@
bugfixes:
- yum - fix failure when using ``update_cache`` standalone (https://github.com/ansible/ansible/issues/56638)

View File

@ -0,0 +1,2 @@
bugfixes:
- ufw - correctly check status when logging is off (https://github.com/ansible/ansible/issues/56674)

View File

@ -0,0 +1,2 @@
bugfixes:
- "docker_container - fix network creation when ``networks_cli_compatible`` is enabled."

View File

@ -0,0 +1,2 @@
bugfixes:
- postgresql_db - fix for postgresql_db fails if stderr contains output (https://github.com/ansible/ansible/issues/56703)

View File

@ -0,0 +1,2 @@
bugfixes:
- netapp_e_volumes - fix workload profileId indexing when no previous workload tags exist on the storage array.

View File

@ -0,0 +1,2 @@
bugfixes:
- ACI - DO not encode query_string

Some files were not shown because too many files have changed in this diff Show More