c12s-kubespray/playbooks/ccp-deploy.yaml

23 lines
451 B
YAML
Raw Normal View History

2016-06-27 15:57:29 +00:00
- hosts: kube-master
2016-07-08 12:32:43 +00:00
2016-06-27 15:57:29 +00:00
pre_tasks:
2016-07-08 12:32:43 +00:00
- name: Rsync CCP configs
synchronize:
2016-06-30 14:50:29 +00:00
src: ../ccp/
dest: /root/ccp/
2016-07-08 12:32:43 +00:00
2016-06-27 15:57:29 +00:00
tasks:
2016-07-08 12:32:43 +00:00
- name: Get namespaces
shell: kubectl get namespace
register: get_ns
run_once: true
2016-07-08 12:32:43 +00:00
2016-06-27 15:57:29 +00:00
- name: Deploy CCP
shell: mcp-microservices --config-file=/root/ccp/ccp.conf deploy
2016-06-27 15:57:29 +00:00
args:
chdir: /root/ccp
run_once: true
when: get_ns.stdout.find('openstack') == -1