ci: use a proper inventory file and add a dnf test

This commit is contained in:
Maxwell G 2023-06-02 15:13:41 +00:00
parent 7076cf3fdd
commit 1f76584a4d
No known key found for this signature in database
GPG Key ID: F79E4E25E8C661F8

View File

@ -3,15 +3,32 @@
set -euo pipefail
ansible --version
ansible -c local -i localhost, localhost -m setup
ansible -c local -i locahost, localhost -b \
cat <<EOF >inventory
[all]
localhost ansible_connection=local
EOF
export ANSIBLE_INVENTORY=inventory
ansible localhost -bm setup
ansible localhost -b \
-m package \
-a name=filesystem \
|& tee out
grep -F 'localhost | SUCCESS' out
(! grep -F 'localhost | CHANGED' out)
ansible localhost -b \
-m community.general.copr \
-a "name=gotmax23/community.general.copr_integration_tests chroot=fedora-rawhide-x86_64" \
|& tee out
grep 'localhost | CHANGED' out
ansible -c local -i localhost, localhost -b \
grep -F 'localhost | CHANGED' out
ansible localhost -b \
-m package \
-a name=copr-module-integration-dummy-package \
|& tee out
grep 'localhost | CHANGED' out
grep -F 'localhost | CHANGED' out
rpm -ql copr-module-integration-dummy-package