[SEBA-459] Compatibility fixes for ansible-lint 4.x
Change-Id: Ib96cdfe4d431c32bb853213d598058c5d844fdcf
diff --git a/interface-config/roles/interface-config/tasks/main.yml b/interface-config/roles/interface-config/tasks/main.yml
index 458d0c1..dea3d3e 100644
--- a/interface-config/roles/interface-config/tasks/main.yml
+++ b/interface-config/roles/interface-config/tasks/main.yml
@@ -33,6 +33,10 @@
with_items:
- bridge-utils
- ifenslave
+ register: task_result
+ until: task_result is success
+ retries: 3
+ delay: 5
# management network
- name: Find management interfaces given management_net_kmods
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: