Ansible 2.0

This commit is contained in:
ant31
2016-01-12 17:56:29 +01:00
parent af8f394714
commit b769636435
10 changed files with 34 additions and 52 deletions

View File

@@ -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]

View File

@@ -0,0 +1,6 @@
---
namespace_kubesystem:
apiVersion: v1
kind: Namespace
metadata:
name: kube-system