Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ignoring of packages in 'latest' state
Change-Id: I019ed9d87435a1ab6e0b7ae8624d85afd95db3ae
- Loading branch information
2093f50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change to line 21 breaks CentOS Linux release 7.7.1908 (Core).
Executing playbook using
Results with
Reverting line 21 back to using
'equalto', 'present'
results with playbook executing without errors.2093f50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What ansible version do you run?
2093f50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here you go!
Note: fresh install of CentOS 7 1908 using the defaults for the Gnome Desktop,
yum install epel-release
,yum install ansible
, and VirtualBox Guest Additions and its deps.2093f50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not able to reproduce that:(
2093f50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you need to check Jinja version installed:
2093f50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah,
in
test appeared in jinja 2.10 [1] while centos installs 2.7.2 (which was released in 2014) via system packages...Not sure though how to solve this issue, as having equalto breaks functionality.... We can kinda update jinja here, but not sure it will be used at once.
[1] https://jinja.palletsprojects.com/en/2.11.x/changelog/#version-2-10
2093f50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are correct. It is jinja2 2.7.2.
Seeing how jinja 2.7.2 is the most current version available for CentOS 7 and Red Hat Enterprise Linux 7, what is the expectation?
2093f50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Identified jinja2 2.8.1 available for python3 from epel but that isn't going to fix the problem.
2093f50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rharmonson I hope this will be addressed with https://review.opendev.org/#/c/716528/