- Don't create registry pod if it already exists
- Fix shell commands
This commit is contained in:
Aleksandr Didenko 2016-07-12 17:56:40 +02:00
parent d450e1f06f
commit 64608f06cf
2 changed files with 4 additions and 3 deletions

View file

@ -36,6 +36,7 @@
args:
chdir: /root/ccp
run_once: true
when: get_pod.stdout.find('registry') == -1
- name: Create registry svc
shell: kubectl create -f registry_svc.yaml
@ -45,11 +46,11 @@
when: get_svc.stdout.find('registry') == -1
- name: Fetch CCP images
shell: "mcp-microservices --config-file=/root/ccp/ccp.conf fetch &> /var/log/ccp-fetch.log"
shell: mcp-microservices --config-file=/root/ccp/ccp.conf fetch
run_once: true
- name: Build CCP images
shell: "mcp-microservices --config-file=/root/ccp/ccp.conf build &> /var/log/ccp-build.log"
shell: mcp-microservices --config-file=/root/ccp/ccp.conf build
run_once: true
- hosts: k8s-cluster

View file

@ -20,7 +20,7 @@
run_once: true
- name: Deploy CCP
shell: "mcp-microservices --config-file=/root/ccp/ccp.conf deploy &> /var/log/ccp-deploy.log"
shell: mcp-microservices --config-file=/root/ccp/ccp.conf deploy
args:
chdir: /root/ccp
run_once: true