zuul-jobs/roles/use-docker-mirror/tasks/main.yaml
James E. Blair 90fc18f621 Split docker mirror config into its own role
So that the docker mirror configuration can be used without the
install-docker role (e.g., if another process is used to install
docker on a target host), split the part of the role which
configures mirrors into its own role and include it in the
install-docker role.

Change-Id: I7cd7f61e2d1281cd2949c1f69a081c7217d0d328
2019-02-21 14:07:43 -08:00

12 lines
266 B
YAML

- name: Set mirror_fqdn fact
when:
- mirror_fqdn is not defined
- zuul_site_mirror_fqdn is defined
set_fact:
mirror_fqdn: "{{ zuul_site_mirror_fqdn }}"
- name: Set up docker mirrors
include: mirror.yaml
when: mirror_fqdn is defined
static: no