zuul-jobs/roles/ensure-devstack/tasks/main.yaml
vass 84c06a37c4 Rename install-devstack to ensure-devstack for consistency
The old role will be kept and include ensure-devstack for backwards-compatability.

Change-Id: Ia5fe33649a66a24ce6bb9de3cccbd5ef612dfb2f
2020-04-04 15:41:29 -04:00

21 lines
447 B
YAML

- name: Set ownership of /opt
become: true
file:
path: /opt
state: directory
owner: "{{ ansible_user }}"
group: "{{ ansible_user }}"
- name: Clone devstack
git:
repo: https://opendev.org/openstack/devstack
dest: /opt/devstack
version: master
- name: Write local.conf
template:
dest: /opt/devstack/local.conf
src: local.conf.j2
- name: Run devstack
command: ./stack.sh
args:
chdir: /opt/devstack