diff --git a/roles/setup-devstack-source-dirs/defaults/main.yaml b/roles/setup-devstack-source-dirs/defaults/main.yaml index fea05c8146..77a74d7b89 100644 --- a/roles/setup-devstack-source-dirs/defaults/main.yaml +++ b/roles/setup-devstack-source-dirs/defaults/main.yaml @@ -1 +1,9 @@ devstack_base_dir: /opt/stack +devstack_source_dirs: + - src/opendev.org/opendev + - src/opendev.org/openstack + - src/opendev.org/openstack-dev + - src/opendev.org/openstack-infra + - src/opendev.org/starlingx + - src/opendev.org/x + - src/opendev.org/zuul diff --git a/roles/setup-devstack-source-dirs/tasks/main.yaml b/roles/setup-devstack-source-dirs/tasks/main.yaml index 160757ede9..294c29cd29 100644 --- a/roles/setup-devstack-source-dirs/tasks/main.yaml +++ b/roles/setup-devstack-source-dirs/tasks/main.yaml @@ -1,13 +1,6 @@ - name: Find all OpenStack source repos used by this job find: - paths: - - src/opendev.org/opendev - - src/opendev.org/openstack - - src/opendev.org/openstack-dev - - src/opendev.org/openstack-infra - - src/opendev.org/starlingx - - src/opendev.org/x - - src/opendev.org/zuul + paths: "{{ devstack_source_dirs }}" file_type: directory register: found_repos