Skip to content

Instantly share code, notes, and snippets.

@bunchc
Created April 9, 2018 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bunchc/63493f939ded78e03bb6504a05299429 to your computer and use it in GitHub Desktop.
Save bunchc/63493f939ded78e03bb6504a05299429 to your computer and use it in GitHub Desktop.
---
# Downloads and installs an openstack-ansible aio
- name: install | Clone openstack-ansible
git:
repo: https://github.com/openstack/openstack-ansible
dest: "{{ osa_download_location }}"
version: "{{ osa_release }}"
- name: install | Bootstrap Ansible
shell: scripts/bootstrap-ansible.sh
environment:
BOOTSTRAP_OPTS: "bootstrap_host_public_address={{ ansible_ssh_host }}"
args:
chdir: "{{ osa_download_location }}"
- name: install | Bootstrap AIO
shell: scripts/bootstrap-aio.sh
environment:
BOOTSTRAP_OPTS: "bootstrap_host_public_address={{ ansible_ssh_host }}"
args:
chdir: "{{ osa_download_location }}"
- name: install | Running setup-hosts.yml
shell: openstack-ansible setup-hosts.yml
args:
chdir: "{{ osa_download_location }}/playbooks"
- name: install | Running setup-infrastructure.yml
shell: openstack-ansible setup-infrastructure.yml
args:
chdir: "{{ osa_download_location }}/playbooks"
- name: install | Running setup-openstack.yml
shell: openstack-ansible setup-openstack.yml
args:
chdir: "{{ osa_download_location }}/playbooks"
- name: install | Correct url in clouds.yml
replace:
regexp: 'http://172.29.236.100'
replace: "https://{{ ansible_ssh_host }}"
path: "/root/.config/openstack/clouds.yaml"
backup: yes
- name: install | Copy cloud.yml to localhost
fetch:
src: "/root/.config/openstack/clouds.yaml"
dest: "/etc/openstack/"
flat: yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment