Fixing for rpm_key functionality

Using var is success instead of var.rc == 0 as its not
a shell command

Change-Id: Ia3b26d594fd4618763d8aba21ca90c5be4dddeae
This commit is contained in:
agopi 2018-08-03 13:47:32 -04:00
parent 0fa170367e
commit f40c430c20

View File

@ -13,8 +13,9 @@
rpm_key:
state: present
key: "{{ epel7_rpmkey }}"
become: true
register: import_result
until: "import_result.rc==0"
until: import_result is success
retries: 10
delay: 10
@ -23,7 +24,7 @@
yum: "name={{ epel7_rpm }} state=present"
become: true
register: install_result
until: install_result|success
until: install_result is success
retries: 10
delay: 10
notify: remove_epel