- hosts: localhost
vars:
- artifacts: ./artifacts
- testfilename: fonttest.py
- testfilepath: /usr/local/bin
tags:
- classic
remote_user: root
tasks:
- name: Install required package
dnf:
name:
- shobhika-fonts
- python3
state: latest
- name: Install the test files
copy: src={{ testfilename }} dest={{ testfilepath }}/{{ testfilename }} mode=0755
- name: Test Execution
block:
- name: Execute the tests
command: python3 {{ testfilepath }}/{{ testfilename }}