Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - name: install pre-requisites for kolla-ansible, kolla-ansible itself, and configuration data
- hosts: all
- become: true
- vars:
- kolla_ansible_dir: /tmp/kolla-ansible
- kolla_dir: /tmp/kolla
- tasks:
- - name: install pre-requisite and useful packages
- package:
- name:
- - docker.io
- - docker-compose
- - ack
- - lnav
- - libffi-dev
- - gcc
- - libssl-dev
- - python3-dev
- - python3-openstackclient
- - python3-pip
- - python3-selinux
- - python3-setuptools
- update_cache: true
- state: present
- - name: start docker
- service:
- name: docker
- state: started
- enabled: yes
- - name: add ubuntu to docker group
- user:
- name: ubuntu
- append: true
- groups: docker
- - name: check out kolla git repository
- become: false
- git:
- repo: https://github.com/openstack/kolla
- dest: "{{ kolla_dir }}"
- version: stable/train
- - name: check out kolla-ansible git repository
- become: false
- git:
- repo: https://github.com/openstack/kolla-ansible
- dest: "{{ kolla_ansible_dir }}"
- version: stable/train
- - name: install kolla-ansible pre-requisites
- pip:
- requirements: "{{ kolla_ansible_dir }}/requirements.txt"
- - name: /etc/kolla/
- copy:
- src: kolla-ansible/kolla
- dest: /etc/kolla/
- - name: /etc/kolla/passwords.yml
- copy:
- src: "{{ kolla_ansible_dir }}/etc/kolla/passwords.yml"
- dest: /etc/kolla/passwords.yml
- - name: /etc/ansible/ansible.cfg
- copy:
- src: kolla-ansible/ansible/ansible.cfg
- dest: /etc/ansible/ansible.cfg
- - name: /etc/ansible/hosts
- copy:
- src: kolla-ansible/ansible/multinode
- dest: /etc/ansible/hosts
- - name: install kolla-ansible
- pip:
- name: kolla-ansible
Add Comment
Please, Sign In to add comment