2016-07-01 16:10:29 +00:00
|
|
|
- hosts: all
|
|
|
|
tasks:
|
|
|
|
- lineinfile:
|
|
|
|
dest: /etc/hosts
|
|
|
|
regexp: 'registry01-bud.ng.mirantis.net'
|
|
|
|
line: '172.16.180.121 registry01-bud.ng.mirantis.net'
|
|
|
|
|
2016-06-27 15:57:29 +00:00
|
|
|
- hosts: kube-master
|
|
|
|
pre_tasks:
|
|
|
|
- name: Rsync CCP repos
|
2016-06-30 14:12:26 +00:00
|
|
|
synchronize: src=../ccp/microservices-repos/ dest=/root/microservices-repos/
|
2016-06-27 15:57:29 +00:00
|
|
|
- name: Rsync MCP scripts and repo
|
|
|
|
synchronize:
|
2016-06-30 14:12:26 +00:00
|
|
|
src: ../ccp/
|
2016-06-27 15:57:29 +00:00
|
|
|
dest: /root/ccp/
|
|
|
|
rsync_opts:
|
|
|
|
- "--exclude=/microservices-repos"
|
|
|
|
tasks:
|
2016-07-01 15:19:41 +00:00
|
|
|
- name: Install MCP cli tool
|
2016-06-27 15:57:29 +00:00
|
|
|
shell: "{{ item }}"
|
|
|
|
args:
|
|
|
|
chdir: /root/ccp/microservices/
|
|
|
|
creates: /usr/local/bin/mcp-microservices
|
|
|
|
with_items:
|
|
|
|
- pip install .
|
|
|
|
- python setup.py develop
|
2016-07-04 13:51:35 +00:00
|
|
|
- name: Build CCP images
|
|
|
|
shell: ./ccp-build.sh
|
|
|
|
args:
|
|
|
|
chdir: /root/ccp
|
|
|
|
run_once: true
|