Guest User

Untitled

a guest
Sep 14th, 2020
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. ---
  2. - name: install pre-requisites for kolla-ansible, kolla-ansible itself, and configuration data
  3. hosts: all
  4. become: true
  5. vars:
  6. kolla_ansible_dir: /tmp/kolla-ansible
  7. kolla_dir: /tmp/kolla
  8. tasks:
  9. - name: install pre-requisite and useful packages
  10. package:
  11. name:
  12. - docker.io
  13. - docker-compose
  14. - ack
  15. - lnav
  16. - libffi-dev
  17. - gcc
  18. - libssl-dev
  19. - python3-dev
  20. - python3-openstackclient
  21. - python3-pip
  22. - python3-selinux
  23. - python3-setuptools
  24. update_cache: true
  25. state: present
  26.  
  27. - name: start docker
  28. service:
  29. name: docker
  30. state: started
  31. enabled: yes
  32.  
  33. - name: add ubuntu to docker group
  34. user:
  35. name: ubuntu
  36. append: true
  37. groups: docker
  38.  
  39. - name: check out kolla git repository
  40. become: false
  41. git:
  42. repo: https://github.com/openstack/kolla
  43. dest: "{{ kolla_dir }}"
  44. version: stable/train
  45.  
  46. - name: check out kolla-ansible git repository
  47. become: false
  48. git:
  49. repo: https://github.com/openstack/kolla-ansible
  50. dest: "{{ kolla_ansible_dir }}"
  51. version: stable/train
  52.  
  53. - name: install kolla-ansible pre-requisites
  54. pip:
  55. requirements: "{{ kolla_ansible_dir }}/requirements.txt"
  56.  
  57. - name: /etc/kolla/
  58. copy:
  59. src: kolla-ansible/kolla
  60. dest: /etc/kolla/
  61.  
  62. - name: /etc/kolla/passwords.yml
  63. copy:
  64. src: "{{ kolla_ansible_dir }}/etc/kolla/passwords.yml"
  65. dest: /etc/kolla/passwords.yml
  66.  
  67. - name: /etc/ansible/ansible.cfg
  68. copy:
  69. src: kolla-ansible/ansible/ansible.cfg
  70. dest: /etc/ansible/ansible.cfg
  71.  
  72. - name: /etc/ansible/hosts
  73. copy:
  74. src: kolla-ansible/ansible/multinode
  75. dest: /etc/ansible/hosts
  76.  
  77. - name: install kolla-ansible
  78. pip:
  79. name: kolla-ansible
  80.  
Add Comment
Please, Sign In to add comment