You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
776 B
36 lines
776 B
- hosts: localhost
|
|
vars:
|
|
- artifacts: ./artifacts
|
|
tags:
|
|
- classic
|
|
remote_user: root
|
|
tasks:
|
|
- name: Install required packages
|
|
dnf:
|
|
name: google-arimo-fonts
|
|
state: latest
|
|
dnf:
|
|
name: google-cousine-fonts
|
|
state: latest
|
|
dnf:
|
|
name: google-tinos-fonts
|
|
state: latest
|
|
|
|
|
|
- name: Install the test files
|
|
copy: src={{ item.file }} dest=/usr/local/bin/{{ item.dest }} mode=0755
|
|
with_items:
|
|
- {file: test-simple, dest: test-simple }
|
|
|
|
- name: Test block
|
|
block:
|
|
- name: Execute the tests
|
|
shell: exec > /tmp/test.log 2>&1 && /usr/local/bin/test-simple
|
|
|
|
always:
|
|
- name: Pull out the logs
|
|
fetch:
|
|
dest: "{{ artifacts }}/"
|
|
src: "/tmp/test.log"
|
|
flat: yes
|