Refactor playbooks/nodepool-zuul-functional/pre.yaml

Instead of using tasks and roles together, create a new role and use it.
This makes ordering easier to understand.

This is followup for
https://review.openstack.org/#/c/545158/14/playbooks/nodepool-zuul-functional/pre.yaml

Change-Id: I5242e9333dd8761272731d1e5e8af2fd5ca5ee8f
This commit is contained in:
Andreas Jaeger 2018-02-20 19:56:11 +01:00
parent 89f0d11a6e
commit 1d1c88a89e
3 changed files with 8 additions and 9 deletions

View File

@ -4,12 +4,4 @@
- role: bindep
bindep_profile: default
bindep_dir: "{{ zuul.projects['git.openstack.org/openstack-infra/zuul'].src_dir }}"
tasks:
- name: Install packages and run zuul-nodepool-integration/start.sh
shell:
cmd: |
sudo pip3 install .
./tools/zuul-nodepool-integration/start.sh
chdir: "{{ zuul.projects['git.openstack.org/openstack-infra/nodepool'].src_dir }}"
- nodepool-zuul-functional

View File

@ -0,0 +1 @@
Prepare nodepool installation.

View File

@ -0,0 +1,6 @@
- name: Install packages and run zuul-nodepool-integration/start.sh
shell:
cmd: |
sudo pip3 install .
./tools/zuul-nodepool-integration/start.sh
chdir: "{{ zuul.projects['git.openstack.org/openstack-infra/nodepool'].src_dir }}"