Skip to content

Commit 0c60ecc

Browse files
committed
[actions] install ansible deps into venv and run vagrant w/o sudo
1 parent 4d6cd59 commit 0c60ecc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ jobs:
2222
runs-on: ubuntu-22.04
2323
steps:
2424
- uses: actions/checkout@v4
25-
- run: sudo apt install python3-jmespath python3-netaddr nfs-kernel-server
25+
- run: sudo apt install nfs-kernel-server
26+
- run: sudo pipx inject ansible-core jmespath netaddr
2627
- run: ansible-galaxy install geerlingguy.ntp
2728
- name: setup vagrant
2829
run: |
@@ -45,7 +46,8 @@ jobs:
4546
sudo apt-get update
4647
sudo apt-get install -y libvirt-daemon libvirt-daemon-system vagrant
4748
sudo systemctl enable --now libvirtd
49+
sudo usermod -aG libvirt $USER
4850
sudo apt-get build-dep -y vagrant ruby-libvirt
4951
sudo apt-get install -y --no-install-recommends libxslt-dev libxml2-dev libvirt-dev ruby-bundler ruby-dev zlib1g-dev
5052
sudo vagrant plugin install vagrant-libvirt
51-
- run: sudo vagrant up --no-tty
53+
- run: vagrant up --no-tty

0 commit comments

Comments
 (0)