zuul-jobs/test-playbooks/base-roles/configure-mirrors.yaml
James E. Blair a4e1f29468 Add base role integration jobs
These are jobs for the roles in this repo which are currently
tested by the "base-integration" job in openstack-zuul-jobs.
Move it into this repo and rename it "base-roles".

Change-Id: Ibd07964a08120e033bc5a2deca18649bd0e74a48
2019-07-04 14:16:15 +02:00

17 lines
523 B
YAML

- name: Test the configure-mirrors role
hosts: all
roles:
- role: configure-mirrors
mirror_fqdn: "{{ zuul_site_mirror_fqdn }}"
set_apt_mirrors_trusted: True
post_tasks:
- name: Set emacs package fact for gentoo
set_fact:
emacs_package: app-editors/emacs
when: ansible_distribution == 'Gentoo'
- name: Install a package to sanity check the mirror configuration
package:
name: "{{ emacs_package | default('emacs') }}"
state: "present"
become: yes