mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-16 22:07:39 -02:30
Ansible 2.0
This commit is contained in:
@@ -60,9 +60,8 @@
|
||||
uri:
|
||||
url: http://127.0.0.1:{{ kube_apiserver_insecure_port }}/api/v1/namespaces
|
||||
method: POST
|
||||
body: '{"apiVersion":"v1","kind":"Namespace","metadata":{"name":"kube-system"}}'
|
||||
body: "{{namespace_kubesystem|to_json}}"
|
||||
status_code: 201,409
|
||||
body_format: json
|
||||
run_once: yes
|
||||
when: inventory_hostname == groups['kube-master'][0]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user