From fbce6349c492c14355ebf096df6b2def1751be42 Mon Sep 17 00:00:00 2001 From: Sergey Date: Tue, 12 Feb 2019 01:12:06 +0300 Subject: [PATCH] check kube_pods_subnet and kube_service_addresses to valid ip network range, not single ip address (#4188) --- .../kubernetes/preinstall/tasks/0020-verify-settings.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml b/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml index 4057e5cec..8ec6cc111 100644 --- a/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml +++ b/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml @@ -160,15 +160,15 @@ - name: "Check that kube_service_addresses is a network range" assert: that: - - kube_service_addresses | ipaddr - msg: "kube_service_addresses is not a valid network range" + - kube_service_addresses | ipaddr('net') + msg: "kube_service_addresses = '{{ kube_service_addresses }}' is not a valid network range" run_once: yes - name: "Check that kube_pods_subnet is a network range" assert: that: - - kube_pods_subnet | ipaddr - msg: "kube_pods_subnet is not a valid network range" + - kube_pods_subnet | ipaddr('net') + msg: "kube_pods_subnet = '{{ kube_pods_subnet }}' is not a valid network range" run_once: yes - name: "Check that kube_pods_subnet does not collide with kube_service_addresses"