packstack/playbooks/packstack-pre.yaml

27 lines
861 B
YAML

- hosts: all
name: packstack-pre
tasks:
- name: Ensure legacy workspace directory
file:
path: '{{ ansible_user_dir }}/workspace'
state: directory
- shell:
cmd: |
cp -pr /home/zuul/src/opendev.org/x/packstack {{ ansible_user_dir }}/workspace
- shell:
cmd: |
set -e
set -x
yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*"
yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel
yum -y groupinstall "Development Tools"
# Uninstall python-requests from pip, since we install it in
# system-config/install_puppet.sh
pip uninstall requests -y || true
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
become: true
environment: '{{ zuul }}'