zuul-jobs/roles/ensure-phoronix-test-suite/tasks/main.yaml
Sorin Sbarnea 7325aca987 More E208 (22)
Change-Id: I8cbb919c39bdb099eaec076c7bcf2ea0b84a6475
2020-11-09 14:40:00 +00:00

29 lines
613 B
YAML

---
- name: Install phoronix-test-suite
become: yes
package:
name: phoronix-test-suite
- name: Create config directory
file:
path: "{{ ansible_env.HOME }}/.phoronix-test-suite"
state: directory
mode: 0755
- name: Install config
copy:
src: user-config.xml
dest: "{{ ansible_env.HOME }}/.phoronix-test-suite/user-config.xml"
mode: 0644
- name: Ensure test results are cleaned
file:
path: "{{ ansible_env.HOME }}/test-results"
state: absent
- name: Create result directory
file:
path: "{{ ansible_env.HOME }}/test-results/"
state: directory
mode: 0755