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
|
|
|
|
2016-07-07 17:30:36 +00:00
|
|
|
- name: Rsync CCP configs
|
2016-06-28 12:06:53 +00:00
|
|
|
synchronize:
|
2016-06-30 14:50:29 +00:00
|
|
|
src: ../ccp/
|
2016-06-28 12:06:53 +00:00
|
|
|
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
|
|
|
|
2016-07-07 17:30:36 +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
|
2016-07-07 17:30:36 +00:00
|
|
|
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
|
2016-07-07 17:30:36 +00:00
|
|
|
when: get_ns.stdout.find('openstack') == -1
|