Add sudo to dnf list command

Bringing over the fix from ansible-osbuild
This commit is contained in:
Major Hayden 2020-05-22 14:03:46 -05:00 committed by GitHub
parent ac11ea00f0
commit eca999be4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ priority=5
EOF
# Verify that the repository we added is working properly.
dnf list all | grep osbuild-mock
sudo dnf list all | grep osbuild-mock
# Create temporary directories for Ansible.
sudo mkdir -vp /opt/ansible_{local,remote}
@ -61,4 +61,4 @@ ansible-playbook \
schutzbot/test.yml
# Collect the systemd journal anyway if we made it all the way to the end.
sudo journalctl --after-cursor=${JOURNALD_CURSOR} > systemd-journald.log
sudo journalctl --after-cursor=${JOURNALD_CURSOR} > systemd-journald.log