From 12bbb243b254ba58bacd598a82d957a07fa385f3 Mon Sep 17 00:00:00 2001 From: Hans Kristian Flaatten Date: Tue, 18 Apr 2017 14:59:14 +0200 Subject: [PATCH] Move namespace file to template directory --- roles/kubernetes/master/tasks/main.yml | 6 +++--- .../master/{files/namespace.yml => templates/namespace.j2} | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename roles/kubernetes/master/{files/namespace.yml => templates/namespace.j2} (100%) diff --git a/roles/kubernetes/master/tasks/main.yml b/roles/kubernetes/master/tasks/main.yml index 2c669c46d..dadef4bf5 100644 --- a/roles/kubernetes/master/tasks/main.yml +++ b/roles/kubernetes/master/tasks/main.yml @@ -34,9 +34,9 @@ - meta: flush_handlers -- name: copy kube system namespace manifest - copy: - src: namespace.yml +- name: Write kube system namespace manifest + template: + src: namespace.j2 dest: "{{kube_config_dir}}/{{system_namespace}}-ns.yml" run_once: yes when: inventory_hostname == groups['kube-master'][0] diff --git a/roles/kubernetes/master/files/namespace.yml b/roles/kubernetes/master/templates/namespace.j2 similarity index 100% rename from roles/kubernetes/master/files/namespace.yml rename to roles/kubernetes/master/templates/namespace.j2