project-config/playbooks/release/pre.yaml
Andreas Jaeger fbc1f58c30 Move release-tools out of jenkins/scripts
To not install these on the images, create a new scripts directory to
hold them.

Create new copy-release-tools-scripts role to copy the files over,
we do not need using legacy-copy-project-config-scripts anymore since
everything is copied elsewhere.

Add the role to all playbooks that use release-tools scripts.

Change-Id: I36c458e297fec58023799f625739b341c4d403cf
2018-02-27 19:27:35 +01:00

24 lines
807 B
YAML

- hosts: all
pre_tasks:
# This is tempoarary until v2 is gone and we can rework things
- name: Add origin remote to enable notes fetching
command: "git remote add origin https://{{ item.canonical_name }}"
args:
chdir: "{{ ansible_user_dir }}/src/{{ item.canonical_name }}"
with_items: "{{ zuul.projects.values() | list }}"
# ANSIBLE0006: git remote add is not supported by ansible module
tags:
- skip_ansible_lint
roles:
- role: configure-git
git_config:
user.name: OpenStack Release Bot
user.email: infra-root@openstack.org
user.signingkey: infra-root@openstack.org
gitreview.username: release
- bindep
- copy-release-tools-scripts
- add-sshkey
- add-launchpad-credentials
- add-gpgkey