Try using the dnf module
This commit is contained in:
parent
6a521a3d60
commit
f0298d56c6
@ -4,6 +4,9 @@
|
|||||||
- classic
|
- classic
|
||||||
remote_user: root
|
remote_user: root
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: Add extra required packages
|
||||||
|
dnf:
|
||||||
|
- name: rpmdevtools
|
||||||
- name: Install the test files
|
- name: Install the test files
|
||||||
copy: src={{ item.file }} dest=/usr/local/bin/{{ item.dest }} mode=0755
|
copy: src={{ item.file }} dest=/usr/local/bin/{{ item.dest }} mode=0755
|
||||||
with_items:
|
with_items:
|
||||||
@ -12,7 +15,7 @@
|
|||||||
block:
|
block:
|
||||||
- name: Execute the tests
|
- name: Execute the tests
|
||||||
shell: |
|
shell: |
|
||||||
dnf install -y --nogpgcheck rpmdevtools; cat /proc/filesystems; ls /lib/modules/$(uname -r)/kernel/fs; ls /sbin/mount.*; (/usr/local/bin/Squashfs-compression-test.sh &> /tmp/test.log); grep -iq failed /tmp/test.log && result=fail || result=pass
|
cat /proc/filesystems; ls /lib/modules/$(uname -r)/kernel/fs; ls /sbin/mount.*; (/usr/local/bin/Squashfs-compression-test.sh &> /tmp/test.log); grep -iq failed /tmp/test.log && result=fail || result=pass
|
||||||
echo -e "results:\n- {result: $result, test: working}" > /tmp/results.yml
|
echo -e "results:\n- {result: $result, test: working}" > /tmp/results.yml
|
||||||
always:
|
always:
|
||||||
- name: Pull out the logs
|
- name: Pull out the logs
|
||||||
|
Loading…
Reference in New Issue
Block a user