Commit Graph

31493 Commits (8d37ea6e4bc3547dbdf82ae77e50e196ea1f409b)

Author SHA1 Message Date
Martin Krizek 77b6633076 [stable-2.11] yum: fix parsing of check-update with subsequent empty lines (#75452)
Rather than adding further complexity to the regex, preprocess the output to
remove any empty lines. Now the only purpose of the regex is to fix
wrapped lines.

Fixes #70949
(cherry picked from commit 51f2f1ac5e)

Co-authored-by: Martin Krizek <martin.krizek@gmail.com>
4 years ago
jamesmarshall24 c65f80cb81
Update Ansible release version to v2.11.12.post0. (#77880) 4 years ago
jamesmarshall24 322366620f
New release v2.11.12 (#77862) 4 years ago
Dimitri Savineau 3c9415c968
Update Ansible release version to v2.11.12rc1.post0. (#77812) 4 years ago
Dimitri Savineau 9818510a0a
New release v2.11.12rc1 (#77811) 4 years ago
Brian Coca 67f06ed83c
dont rely on path to set config defs for plugins (#77659) (#77696)
(cherry picked from commit a3cc6a581e)
4 years ago
Martin Krizek d5e5bd34d6
Prevent losing unsafe from lookups (#77609) (#77652)
This patch fixes a bug which under certain conditions results in data
returned from lookups not being marked as unsafe.

Each time Templar.do_template is invoked a new AnsibleContext is
created and stored effectively at two places:
1) as an instance variable in templar_obj.cur_context
2) as a local variable called new_context in do_template method of Templar

Due to custom functionality in Ansible's Context that allows for nested
templating it is possible that during resolving variable's value
template/do_template method is called recursively again, again creating
a new context. At that point the problem manifests itself because as
mentioned in 1) above the context is overwriten on the templar object
which means that any subsequent calls to _lookup will use the new
context to mark it as unsafe which is now different to the local
new_context which is used for testing for unsafe property.

The solution to the problem appears to be to restore the original
context inside do_template and also to eliminate the local variable
new_context to prevent problems in the future.

It appears that we don't have a better way of storing the context other
than as some form of global variable and so this appears to be the
"best" solution possible at this point. Hopefully data tagging will be
the solution here.

For more examples see unit and integration tests included in this patch.

Fixes #77535

(cherry picked from commit 3980eb8c09)
4 years ago
Christian Adams fee6f50a7e
Update Ansible release version to v2.11.11.post0. (#77632) 4 years ago
Christian Adams cb6ccfda90
New release v2.11.11 (#77627) 4 years ago
jamesmarshall24 d356019be7
Update Ansible release version to v2.11.11rc1.post0. (#77558) 4 years ago
jamesmarshall24 8eb57ec3d4
New release v2.11.11rc1 (#77542) 4 years ago
Jordan Borean 8fb813918b
SID - Use literal UPN value when attempting a user to SID lookup (#77334) (#77347)
(cherry picked from commit ff184b0815)
4 years ago
Jordan Borean 874f4323ef
winrm - ensure callers PATH for kinit is set (#77401) (#77402)
* winrm - ensure callers PATH for kinit is set

* Fix unit test expectations

* Fix type annotation

(cherry picked from commit 60b4200bc6)
4 years ago
jamesmarshall24 d4458925c6
Update Ansible release version to v2.11.10.post0. (#77379) 4 years ago
jamesmarshall24 653b4fba7a
New release v2.11.10 (#77373) 4 years ago
jamesmarshall24 380ff7f3d6
Update Ansible release version to v2.11.10rc1.post0. (#77331) 4 years ago
jamesmarshall24 f78bc40e6f
New release v2.11.10rc1 (#77328) 4 years ago
Elijah DeLee 8dfe4acba4
[2.11 backport] use same timeout for galaxy api interactions (#77088) (#77143)
* use same timeout for galaxy api interactions (#77088)

Also, bump the default. A number of people have reported problems with
this 20 second timeout for a couple of years on
https://github.com/ansible/galaxy/issues/2302

It is mentioned in the issue that resolving dns can sometimes take up to
30 seconds, and that this timeout includes dns resolution.

Includes a changelog message

* fix type hint

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

Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
Co-authored-by: Matt Clay <matt@mystile.com>
4 years ago
Sloane Hertel 939f843024
[2.11] Fix collection redirects for filter and test plugins (#77210) (#77228)
* Fix collection redirects for filter and test plugins (#77210)

* Fix collection redirects for jinja2 filters/tests

* Handle recursive redirects

Co-authored-by: Matt Martz <matt@sivel.net>
(cherry picked from commit 8063643b4c)

* The error message is only capitalized on 2.13. Make test more flexible.

(cherry picked from commit 734777ef05)
4 years ago
Sloane Hertel ca8835c990
[2.11] ansible-galaxy collection verify - display new files/dirs as modified content (#77129)
* Fix 'ansible-galaxy collection verify' to report files/directories not listed in the FILES.json

(cherry picked from commit a1d467dbb2)

* changelog

(cherry picked from commit 3d49d6f69e)
4 years ago
Matt Martz ef46bc46f4
[stable-2.11] Use full python package for ansiballz cache filenames (#77090) (#77126)
* [stable-2.11] Use full python package for ansiballz cache filenames (#77090)

* Use full python package for ansiballz cache filenames

* Be a little more explicit about test goals
(cherry picked from commit 8cbe143)

Co-authored-by: Matt Martz <matt@sivel.net>

* linting
4 years ago
Christian Adams 995ca083db
Update Ansible release version to v2.11.9.post0. (#77162) 4 years ago
Christian Adams 73e6d023b8
New release v2.11.9 (#77157) 4 years ago
Christian Adams adfca2bdc9
Update Ansible release version to v2.11.9rc1.post0. (#77130) 4 years ago
Christian Adams 715fa4fdde
New release v2.11.9rc1 (#77123)
Signed-off-by: Christian M. Adams <chadams@redhat.com>
4 years ago
Brian Coca 5c2251504c
ssh connection: use 'correct' host in all cases (#76017) (#76969)
ssh plugin, use 'correct' information source in all cases
  * still fallback to pc
  * added inventory to new test
  * undef var can still show as parser error on pc
    now task_exectuer has a  more accurate error handling

(cherry picked from commit be19863e44)
4 years ago
Brian Coca f7f27ade2d
gather_facts sees collection networking connection (#76954) (#76964)
needed to properly propagate some arguments by convention: subset, filter

Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
(cherry picked from commit 5bddecb048)
4 years ago
Brian Coca ee112d9984
fix block var inheritance (#75287) (#76897)
* updated tests to conform to new block inheritance

Co-authored-by: Brian Scholer <1260690+briantist@users.noreply.github.com>
Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
(cherry picked from commit b1d6750e8b)
4 years ago
Brian Coca 6916e152ff
clean_facts only show variable name (#76974) (#76985)
(cherry picked from commit 47faa6e206)
4 years ago
Matt Clay cc97353702
[stable-2.11] ansible-test - Use relative paths in junit output. (#76909)
* [stable-2.11] ansible-test - Use relative paths in junit output. (#76871)

* ansible-test - Use relative paths in junit output.
* ansible-test - Handle out-of-tree JUnit paths.
* Also fix a traceback in the junit callback during automatic fact gathering.

(cherry picked from commit fbb5d56bd2)

* Fix task path unicode error in junit callback.

(cherry picked from commit 41db6d8d35)
4 years ago
Dimitri Savineau 4081c8d239
Update Ansible release version to v2.11.8.post0. (#76905) 4 years ago
Dimitri Savineau e40051f7c0
New release v2.11.8 (#76891) 4 years ago
Dimitri Savineau 80c9a74c55
Update Ansible release version to v2.11.8rc1.post0. (#76833) 4 years ago
Dimitri Savineau f0bcb858a9
New release v2.11.8rc1 (#76830) 4 years ago
Brian Coca a280645022
service_facts, now more accurate on systemd (#75326) (#76018)
* service_facts, now more accurate on systemd

(cherry picked from commit 82bab063e7)
4 years ago
Brian Coca 6b4fcdf59f
bacwards compat doc frag (#75819) 4 years ago
Matt Martz b4c1688809
[stable-2.11] Compare FQCN also in lockstep logic. Fixes #76782 (#76787) (#76797)
(cherry picked from commit 29bdb8b)

Co-authored-by: Matt Martz <matt@sivel.net>
4 years ago
Brian Coca a58c2a39d3
include_vars initialize failed (#76754) (#76785)
* include_vars initialize failed

  if source dir is given, but not present and traversal is empty you
  can end up trying to access failed w/o it ever being defined.

  also future proof for more corner cases in decision tree

(cherry picked from commit 89c884e2a2)
4 years ago
Brian Coca 4eac144d7e
ssh connection avoid parsing own debug (#76732) (#76756)
* ssh connection avoid parsiing own debug (#76732)

  - Avoids false positives on become strings being echoed back
   by ssh cli itself
  - added test for debug lines
  - also simplified some of existing test code

(cherry picked from commit 0ff80a15ba)

* unicoode

* dont make em ascii
4 years ago
Brian Coca a72e3d14b3
ssh connection, handle 'fun' control paths (#76424) (#76694)
* handle 'fun' control paths by quoting the option when passed to ssh cli

Co-authored-by: Matt Clay <matt@mystile.com>
(cherry picked from commit aa022dba2d)
4 years ago
Felix Fontein 4d222aefd9
[2.11] Use correct markup in documentation (#76575)
* Use correct markup in documentation (#76545)

(cherry picked from commit 9d1898b1ef)

* Fix markup.

(cherry picked from commit c24c479061)
4 years ago
Jordan Borean 39b6dec937
galaxy build - ignore existing MANIFEST and FILES (#76479) (#76499)
(cherry picked from commit 8482ee4e9a)
4 years ago
Tadej Borovšak 6da3cf51a3
Fix zip content filtering in unarchive module (#76069) (#76420)
When we introduced an include parameter to the unarchive module, we
inadvertenly flipped the exclusion logic. This flip meant that the
unarchive module started rejecting files that should be extracted.

This commit flips the bad logic and adds some tests that will make
sure things do not go bad again.

(cherry picked from commit f92830d16e)
4 years ago
jamesmarshall24 21c65df1fb
Update Ansible release version to v2.11.7.post0. (#76481) 4 years ago
jamesmarshall24 0e828b45a7
New release v2.11.7 (#76476) 4 years ago
Dimitri Savineau a6875a518b
Update Ansible release version to v2.11.7rc1.post0. (#76396) 4 years ago
Dimitri Savineau 9efa8c81d6
New release v2.11.7rc1 (#76391) 4 years ago
Vlad Mencl d945c66b36
set host_key_checking check to False, rather than if not (which captures False and None) (#75168) (#76206)
* set host_key_checking check to False, rather than if not (which captures False and None)
* add host_key_checking default to ssh.py / update documentation

(cherry picked from commit d527be8a52)

Co-authored-by: James Spurin <james@spurin.com>
4 years ago
Jordan Borean 02716851db
LinkUtil - ignore LIB env var (#76184) (#76203)
(cherry picked from commit db2aee558b)
4 years ago
Sloane Hertel 4079bc948b
Skip recursive suboption validation if sub_parameters is not a dict (#75635) (#76189)
* Skip recursive suboption validation if sub_parameters is not a dictionary

* Ensure sub parameter elements is a sequence to prevent iterating over string characters and causing duplicate error messages for the same param

(cherry picked from commit b5ed41edb3)
4 years ago