[SEBA-459] Compatibility fixes for ansible-lint 4.x
Change-Id: Ib96cdfe4d431c32bb853213d598058c5d844fdcf
diff --git a/kubespray-installer/k8s-requirements.yaml b/kubespray-installer/k8s-requirements.yaml
index c1649d5..e5916da 100644
--- a/kubespray-installer/k8s-requirements.yaml
+++ b/kubespray-installer/k8s-requirements.yaml
@@ -36,22 +36,30 @@
- python-pycurl
- software-properties-common
- python-netaddr
+ register: task_result
+ until: task_result is success
+ retries: 3
+ delay: 5
- name: Add Ansible PPA
apt_repository:
repo={{ item }}
with_items:
- "{{ ansible_apt_repo | default('ppa:ansible/ansible') }}"
- register: result
- until: result | success
+ register: task_result
+ until: task_result is success
retries: 3
- delay: 10
+ delay: 5
- name: Make sure Ansible is newest version
apt:
name: "ansible"
update_cache: yes
cache_valid_time: 3600
+ register: task_result
+ until: task_result is success
+ retries: 3
+ delay: 5
- name: Enable ip forwarding
sysctl: