project-config/playbooks/proposal/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

29 lines
749 B
YAML

- hosts: all
pre_tasks:
- name: Install git-review
command: pip install git-review
become: yes
- name: Copy scripts to the script dir on the node
copy:
dest: '{{ ansible_user_dir }}/scripts/'
src: '{{ item }}'
mode: 0755
with_items:
- generate_puppetfile.sh
- propose_update.sh
- sync_openstack_ansible_common_files.sh
roles:
- role: configure-git
git_config:
user.name: OpenStack Proposal Bot
user.email: openstack-infra@lists.openstack.org
gitreview.username: proposal-bot
- copy-proposal-common-scripts
# For propose-update-constraints
- copy-release-tools-scripts
- add-sshkey
- bindep
- ensure-tox