From 477afa8711dba5c3b6f01ffc4d9ae07559e7c3f5 Mon Sep 17 00:00:00 2001 From: tanshanshan Date: Tue, 26 Sep 2017 21:48:05 +0800 Subject: [PATCH] when and run_once are reduplicative (#1694) --- roles/kubernetes/master/tasks/static-pod-setup.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/kubernetes/master/tasks/static-pod-setup.yml b/roles/kubernetes/master/tasks/static-pod-setup.yml index b94c07431..d20557e95 100644 --- a/roles/kubernetes/master/tasks/static-pod-setup.yml +++ b/roles/kubernetes/master/tasks/static-pod-setup.yml @@ -12,7 +12,6 @@ template: src: namespace.j2 dest: "{{kube_config_dir}}/{{system_namespace}}-ns.yml" - run_once: yes when: inventory_hostname == groups['kube-master'][0] tags: apps @@ -21,7 +20,7 @@ register: 'kubesystem' changed_when: False failed_when: False - run_once: yes + when: inventory_hostname == groups['kube-master'][0] tags: apps - name: Create kube system namespace