Improve setup-gate

This includes a small optimisation to make sure the packages
are passed as a list instead of iterating over them in the apt
commands.

It also ensures the argument "recurse" is passed into the copy
argument, as this was not done previously.

Change-Id: If93fda5a2efad550b5d58e215f2f7ef9a06cdacf
This commit is contained in:
Jean-Philippe Evrard 2018-10-11 10:39:34 +02:00
parent 2df96283b9
commit 56418ef3a8
1 changed files with 7 additions and 8 deletions

View File

@ -38,11 +38,10 @@
- apt_repository:
repo: deb http://{{ zuul_site_mirror_fqdn }}/deb-docker xenial stable
- apt:
name: "{{ item }}"
name:
- docker-ce
- python-pip
allow_unauthenticated: True
with_items:
- docker-ce
- python-pip
- pip:
name: docker
version: 2.7.0
@ -67,6 +66,7 @@
path: "{{ item.path }}"
owner: "{{ item.owner }}"
state: directory
recurse: "{{ item.recurse | default(omit) }}"
with_items:
- path: /logs/apache/
owner: zuul
@ -82,8 +82,7 @@
- src: files/apache.conf
dest: /webroot/
- apt:
name: "{{ item }}"
with_items:
- apache2
- gitweb
name:
- apache2
- gitweb
become: True