From 77241b075ea8917b6e158bacaad058e169cdf7f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Wed, 27 Jun 2018 09:26:21 +0200 Subject: [PATCH] re-order tasks --- prepare.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/prepare.yml b/prepare.yml index bf894ee..a3ae5ae 100644 --- a/prepare.yml +++ b/prepare.yml @@ -41,6 +41,19 @@ register: sysctl tags: network + - name: Check that net.ipv4.ip_forward = 1 + assert: + that: + - ip_forward_value == '1' + msg: > + The sysctl variable 'net.ipv4.ip_forward' needs to be enabled. + If you stumbled on this message, there is a high chance you have this + setting hardcoded somewhere. You will have to change it by yourself + and re-run this playbook. + vars: + ip_forward_value: '{{ sysctl.stdout_lines[0] }}' + tags: network + - name: Uninstall things that might interfere with DNS yum: name: '{{ item }}' @@ -74,19 +87,6 @@ port_53_listeners: '{{ ss.stdout_lines|length }}' tags: dns - - name: Check that net.ipv4.ip_forward = 1 - assert: - that: - - ip_forward_value == '1' - msg: > - The sysctl variable 'net.ipv4.ip_forward' needs to be enabled. - If you stumbled on this message, there is a high chance you have this - setting hardcoded somewhere. You will have to change it by yourself - and re-run this playbook. - vars: - ip_forward_value: '{{ sysctl.stdout_lines[0] }}' - tags: network - - name: Check if /etc/kubernetes exists stat: path: /etc/kubernetes