[CORD-2874]
Fix deprecation warnings raised by Ansible 2.5
Change-Id: Icb607d267af2771b046b46399ce5f0d182f629ab
diff --git a/roles/java-oracle/tasks/main.yml b/roles/java-oracle/tasks/main.yml
index 4c0d4b9..0120a1f 100644
--- a/roles/java-oracle/tasks/main.yml
+++ b/roles/java-oracle/tasks/main.yml
@@ -1,4 +1,4 @@
-
+---
# Copyright 2017-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-
----
# java-oracle/tasks/main
- name: Install add-apt-repository
@@ -33,7 +31,7 @@
apt_repository:
repo: 'ppa:webupd8team/java'
register: result
- until: result | success
+ until: result is success
retries: 3
delay: 10