From d01634ea8bad15c484d78e057773c8755acc9d0a Mon Sep 17 00:00:00 2001 From: tanshanshan Date: Tue, 1 Aug 2017 16:38:56 +0800 Subject: [PATCH] fix when --- roles/kubernetes/master/tasks/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/kubernetes/master/tasks/main.yml b/roles/kubernetes/master/tasks/main.yml index dadef4bf5..b9dff2ed3 100644 --- a/roles/kubernetes/master/tasks/main.yml +++ b/roles/kubernetes/master/tasks/main.yml @@ -38,7 +38,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 @@ -47,7 +46,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