31 lines
852 B
YAML
31 lines
852 B
YAML
- hosts: all
|
|
tasks:
|
|
- lineinfile:
|
|
dest: /etc/hosts
|
|
regexp: 'registry01-bud.ng.mirantis.net'
|
|
line: '172.16.180.121 registry01-bud.ng.mirantis.net'
|
|
|
|
- hosts: kube-master
|
|
pre_tasks:
|
|
- name: Rsync CCP repos
|
|
synchronize: src=../ccp/microservices-repos/ dest=/root/microservices-repos/
|
|
- name: Rsync MCP scripts and repo
|
|
synchronize:
|
|
src: ../ccp/
|
|
dest: /root/ccp/
|
|
rsync_opts:
|
|
- "--exclude=/microservices-repos"
|
|
tasks:
|
|
- name: Install MCP cli tool
|
|
shell: "{{ item }}"
|
|
args:
|
|
chdir: /root/ccp/microservices/
|
|
creates: /usr/local/bin/mcp-microservices
|
|
with_items:
|
|
- pip install .
|
|
- python setup.py develop
|
|
- name: Build CCP images
|
|
shell: ./ccp-build.sh
|
|
args:
|
|
chdir: /root/ccp
|
|
run_once: true
|