openstack-chef-repo/playbooks/pre.yaml
Jens Harbott 577adaea35 Implement native zuul v3 tests
Change-Id: I5160ce88aefa2c5b70e4a4cb085867198e60b45a
2017-10-27 13:34:05 +00:00

22 lines
542 B
YAML

- hosts: all
roles:
- bindep
vars:
bindep_file: /home/zuul/src/git.openstack.org/openstack/openstack-chef-repo/bindep.txt
- hosts: all
vars:
chefdk: chefdk_1.6.1-1_amd64.deb
tasks:
- name: Purge some packages
shell: apt-get -y purge libvirt0 libvirt-dev python-libvirt
become: yes
- name: Fetch chefdk package
get_url:
dest: /tmp/{{ chefdk }}
url: https://packages.chef.io/stable/ubuntu/16.04/{{ chefdk }}
- name: Install chefdk package
shell: dpkg -i /tmp/{{ chefdk }}
become: yes