Commit Graph

325 Commits (e61a089b5ed4e9da34cacc47956227dcf052d2c5)

Author SHA1 Message Date
Jordan Borean 327016404d win_acl - fix network path qualifier parsing (#55970)
(cherry picked from commit cc3b8b9f72)
7 years ago
Dag Wieers c1b640b65d ACI: Ensure we use native strings for signature (#55163)
* ACI: Ensure we use native strings for signature

* Add changelog fragment
7 years ago
Jordan Borean 2fab4dd204 win_domain - fix for checking for domain on new host (#55195)
(cherry picked from commit 6039ff9a24)
7 years ago
Lukasz Szczesny 0d3b577774 Backport/2.6/54105 pamd: fix idempotence issue when removing rules 7 years ago
Martin Krizek 8b05790a45 2.6: Fix copy module to reset filesystem acls (#51868) (#54795)
* Fix copy module to reset filesystem acls (#51868)

The controller's fixup_perms2 uses filesystem acls to make the temporary
file for copy readable by an unprivileged become user. On Python3, the
acls are then copied to the destination filename so we have to remove
them from there.

We can't remove them prior to the copy because we may not have
permission to read the file if the acls are not present. We can't
remove them in atomic_move() because the move function shouldn't know
anything about controller features. We may want to generalize this into
a helper function, though.

Fixes #44412

Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
(cherry picked from commit d15812fabf)

* Fix get_bin_path usage
7 years ago
Toshio Kuratomi da048ae80d New release v2.6.16 7 years ago
Simon Westphahl 7d6c925e38 Catch all request timeouts for winrm connection (#54104)
* Catch all request timeouts for winrm connection

The current implementation only catches 'ConnectTimeout' exceptions.
Instead we should catch 'Timout' which also catches ReadTimeout
exceptions.

Improves on: #51744

Co-Authored-By: westphahl <westphahl@gmail.com>

* Changelog for winrm error handling improvement
7 years ago
Jordan Borean 707c75ab0b win_user_right - fix non json output issue (#54495)
(cherry picked from commit e2d2874d81)
7 years ago
Felix Fontein e1c53bdfed openssl_publickey: fix handling of OpenSSH private keys with passphrase (#54192)
* Cleanup.
* Make sure that OpenSSH passphrases are handled correctly.
* Add changelog.

(cherry picked from commit 1a94cf140c)
7 years ago
Jordan Borean 92b3c3a65b win_file - fix glob like paths (#54003)
(cherry picked from commit c053bc1fc7)
7 years ago
Jordan Borean 1859c5bac6 win_copy - fix glob like paths (#54006)
(cherry picked from commit 2f1bc34589)
7 years ago
Jordan Borean fed3df4d44 win_certificate_store - fix glob like paths (#54007)
(cherry picked from commit eb18df1a0f)
7 years ago
Jordan Borean 7c800167c0 win_find - fix glob like paths (#54005)
(cherry picked from commit 8a4079ddbf)
7 years ago
Jordan Borean 0429b10ddc Merge pull request #53845 from jborean93/win-paths-2.6
Windows - Fix issues with glob like path chars - 2.6
7 years ago
Jordan Borean 7ee89d4ac6 win_chocolatey Fix incompatibilities with latest Chocolcatey release 7 years ago
Toshio Kuratomi dd6a174ff0 New release v2.6.15 7 years ago
Matt Clay 2cae458ba9 [stable-2.6] Keep existing to_yaml behavior with pyyaml >= 5.1. (#53772)
In pyyaml versions before 5.1 the default_flow_style for yaml.dump
was None. Starting with 5.1 it is now False. This change explicitly
sets the value to None to maintain the original to_yaml behavior.

The change to pyyaml was made in the following commit:

507a464ce6
(cherry picked from commit 7f0e09aa31)

Co-authored-by: Matt Clay <matt@mystile.com>
7 years ago
S 4c3a5629b3 Fixed win_file crash with hidden files (#52584)
* Fixed crash with hidden files

added "-force" parameter on "Get-Item" cmdlet. this is needed to get file info if the file is "hidden" 
without this option modules like win_file, win_template, win_copy crashes on hidden files. this is because with "test-path" it sees that the file exists, but "get-item" can't get the file info. 
for more information on "-force option": https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-item

* Add changelog and integration tests

* fix tests for older Windows versions

(cherry picked from commit 3bc474bf99)
7 years ago
Jordan Borean 1e8b9daaa2 win_domain: fix issue when running without credential delegation (#53480)
* win_domain: fix issue when running without credential delegation

* Add check for reboot is required to complete role e install

* Fix changelog sanity issue

* removed meta file accidentally committed

(cherry picked from commit 008db85d44)
7 years ago
Jordan Borean 2bf946d25e winrm - try and recover from a send input failure (#53187) (#53306)
(cherry picked from commit ae24bbff4a)
7 years ago
Jordan Borean 1ab1c22659 Add changelog fragment 7 years ago
s-hertel 19590192f4 fix no_log indentation so AWS temporary credentials aren't displayed in tests
(cherry picked from commit 6cacbcba66)
7 years ago
plumbeo 9fcfd0a221 backport/2.6/40092 (#51910)
* mysql_user: Match quotes, double quotes and backticks when checking current privileges

(cherry picked from commit 1ae0e21383)

* Add changelog fragment for PR #40092

(cherry picked from commit 8974ce3c78)

* mysql_user: fix malformed regex used to check current privileges
7 years ago
Toshio Kuratomi 446012263a New release v2.6.14 7 years ago
Zim Kalinowski 92e62a1bf1 resolved merge conflicts 7 years ago
Zim Kalinowski ef54e0410c fixed merge conflicts 7 years ago
Zim Kalinowski 22709af2e9 Fixing managed disk facts (#51781)
(cherry picked from commit 0c8c72a0bf)
7 years ago
Zim Kalinowski c9449694b8 Backport/2.6/45378 (#52448)
* backporting fix for sql tags

* removed unnecessary tests
7 years ago
Simon Westphahl ab4cfa1b50 Backport: Raise AnsibleConnectionError on winrm connnection errors (#52226)
* Raise AnsibleConnectionError on winrm con errors

Currently all uncaught exceptions of the requests library that is used
in winrm will lead to an "Unexpected failure during module execution".

Instead of letting all exceptions bubble up we catch the connection
related errors (inkl. timeouts) and re-raise them as
AnsibleConnectionError so Ansible will mark the host as unreachable and
exit with the correct return code.

This is especially important for Zuul (https://zuul-ci.org) to
distinguish between failures and connection/host related errors.

* Update lib/ansible/plugins/connection/winrm.py

Co-Authored-By: westphahl <westphahl@gmail.com>

* Add changelog fragment
7 years ago
Wojciech Sciesinski bec375d691 Install the NuGet package provider if needed (#52130)
* Install the NuGet package provider if needed

* Add the changelog fragment file
7 years ago
Matt Martz 4be3215d2f [stable-2.6] Disallow use of remote home directories containing .. in their path (CVE-2019-3828) (#52133)
* Disallow use of remote home directories containing .. in their path

* Add CVE to changelog
(cherry picked from commit b34d141)

Co-authored-by: Matt Martz <matt@sivel.net>
7 years ago
Jordan Borean 19d20304de win become - fix token elevation issues
This is an implementation of 8bffcf8e50
that was done in the PR https://github.com/ansible/ansible/pull/48082 to devel.
The changes have been manually brought across to the the stable-2.7 branch as it
cannot be cleanly cherry picked due to the substantial differences in become
between these versions.

Currently we impersonate the `SYSTEM` token in order to elevate our become
process with the highest privileges it has available but there are some edge
cases where the first `SYSTEM` token we come across doesn't have the
`SeTcbPrivilege` which is required for the above. This PR adds a further check
in the search for a `SYSTEM` token to make sure it has the `SeTcbPrivilege`
before continuing.

(cherry picked from commit cc5088c9e1)
7 years ago
Toshio Kuratomi 97a37b9ebc New release v2.6.13 7 years ago
Jordan Borean 72703bd3b7 win_power_plan: fix for Windows 10 and Server 2008 compatibility (#51471)
(cherry picked from commit f27078df52)
7 years ago
Brian Coca e9e3999ddc Handle complex quoting in extra args in pull cli (#50212)
* added tests

fixes #40729

(cherry picked from commit b6824669df)
(cherry picked from commit e010034151)
7 years ago
Sam Doran 197daf095b Catch sshpass authentication errors and don't retry multiple times to prevent account lockout (#50776)
* Catch SSH authentication errors and don't retry multiple times to prevent account lock out

Signed-off-by: Sam Doran <sdoran@redhat.com>

* Subclass AnsibleAuthenticationFailure from AnsibleConnectionFailure

Use comparison rather than range() because it's much more efficient.

Signed-off-by: Sam Doran <sdoran@redhat.com>

* Add tests

Signed-off-by: Sam Doran <sdoran@redhat.com>

* Make paramiko_ssh connection plugin behave the same way

Signed-off-by: Sam Doran <sdoran@redhat.com>

* Add changelog

Signed-off-by: Sam Doran <sdoran@redhat.com>
(cherry picked from commit 9d4c0dc111)
7 years ago
Abhijeet Kasurde 5613bb311f Merge pull request #51118 from Akasurde/backport/2.6/51047
[backport/2.6] Update vmware.py minor typo
7 years ago
Jacob Olsen c77f6b1d8c check for chroot in systemd module (#43904)
* check for result['status'] in systemd module

* instead of checking for result['state'], actually check for chroot and warn

* allow systemctl status to work if in a chroot, update warn text

* simply change warning message


(cherry picked from commit 37960ccc87)
7 years ago
Ganesh Nalawade 60a867441e Fix mandatory statement error for junos modules (#50074)
* Fix mandatory statement error for junos modules

Fixes #40267

*  Add error regex in junos terminal plugin to error out
   in case of commit fails

*  If commit fails add logic to discard changes before existing
   else next task will result in error

* Add integration test

* Minor update

(cherry picked from commit cc8e90395a)
7 years ago
Toshio Kuratomi 3996d84173 New release v2.6.12 7 years ago
Brian Coca 421a378022 added missing docs for option in acl module (#50775) (#50806)
* added missing docs for option in acl module (#50775)

* added missing docs for option in acl module
* remove acl from ignore

(cherry picked from commit 91d8383898)
7 years ago
Jérémy Lecour f9dcf40de5 [backport 2.6] Lineinfile must not insert lines multiples times with insertbefore/insertafter (#50086)
* Change test suite to fit expected behaviour

This reverts some changes from ansible/ansible@723daf3
If a line is found in the file, exactly or via regexp matching, it must
not be added again.
insertafter/insertbefore options are used only when a line is to be
inserted, to specify where it must be added.

(cherry picked from commit 31c11de2af)
(cherry picked from commit eb92ce3d6f)

* Implement the change in behaviour mentioned in the previous commit

(cherry picked from commit a4141cfa2e)
(cherry picked from commit 6afe25d93e)

* Fix comment to reflect what the code does

(cherry picked from commit 150f5cb232)
(cherry picked from commit 1a13bf06a3)

* Set the correct return message.

In these cases, the lines are added, not replaced.

(cherry picked from commit 3216c31401)
(cherry picked from commit 5bd04bd5d5)

* Add a changelog

(cherry picked from commit c39cf6b332)
(cherry picked from commit fc071636b4)
7 years ago
Felix Fontein ed945c7f36 docker_volume: revert #47390 (#50663)
* Revert "Fix option change detection / force support for docker_volume. (#47390)"

This reverts commit 8ef994fbc5.

* Update changelog.

* Adjusting tests.

(cherry picked from commit 0e7a9a2771)
7 years ago
Brian Coca bcdd9abcd3 allow openstack invetnory to work cacheless
fixes #45431

(cherry picked from commit a47671aad1)
7 years ago
Dag Wieers c2f6116476 win_firewall_rule: Remove invalid 'bypass' action (2.6 backport) (#50224)
* win_firewall_rule: Remove invalid 'bypass' action

This fixes #50143

* Add changelog fragment
7 years ago
Dag Wieers d774a795d7 win_updates: Correctly report changes on success (2.6 backport) (#50226)
* win_updates: Correctly report changes on success

* Add changelog fragment
7 years ago
Jordan Borean a574e0a1c9 win_copy - fix remote dir copy when it contains an empty dir (#50126)
(cherry picked from commit 65ce1b727e)
7 years ago
Jordan Borean daf5c86338 win_lineinfile - fix malformed returned json (#50066)
(cherry picked from commit efda3eaf1c)
7 years ago
Matt Clay 5e03754e8f New release v2.6.11 7 years ago
Trishna Guha 61263a357c changelog
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
7 years ago