Created
April 9, 2018 19:59
-
-
Save bunchc/63493f939ded78e03bb6504a05299429 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# 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