Fix packages fact
Update packages fact variable to use ansible_facts. Change-Id: I0039bf7c2dd11da212ad1f74bb227562af6c13cb Related-Bug: #1915761
This commit is contained in:
parent
4178cf561b
commit
d70c205af8
|
@ -7,7 +7,7 @@
|
||||||
assert:
|
assert:
|
||||||
fail_msg: The installed version of subscription-manager is too old.
|
fail_msg: The installed version of subscription-manager is too old.
|
||||||
that:
|
that:
|
||||||
- packages['subscription-manager'][0]['version'] is version_compare('1.10', '>=')
|
- ansible_facts['packages']['subscription-manager'][0]['version'] is version_compare('1.10', '>=')
|
||||||
rescue:
|
rescue:
|
||||||
- name: Attempt to update subscription-manager
|
- name: Attempt to update subscription-manager
|
||||||
yum:
|
yum:
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
assert:
|
assert:
|
||||||
fail_msg: The installed version of subscription-manager is too old.
|
fail_msg: The installed version of subscription-manager is too old.
|
||||||
that:
|
that:
|
||||||
- packages['subscription-manager'][0]['version'] is version_compare('1.10', '>=')
|
- ansible_facts['packages']['subscription-manager'][0]['version'] is version_compare('1.10', '>=')
|
||||||
|
|
||||||
- name: Configure yum plugins
|
- name: Configure yum plugins
|
||||||
ini_file:
|
ini_file:
|
||||||
|
|
Loading…
Reference in New Issue