Skip to content

Commit

Permalink
[actions] install ansible deps into venv
Browse files Browse the repository at this point in the history
run vagrant unprivileged to preserve environment
  • Loading branch information
lae committed Sep 13, 2024
1 parent 4d6cd59 commit fbe76af
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- run: sudo apt install python3-jmespath python3-netaddr nfs-kernel-server
- run: sudo apt install nfs-kernel-server
- run: sudo pipx inject ansible-core jmespath netaddr
- run: ansible-galaxy install geerlingguy.ntp
- name: setup vagrant
run: |
Expand All @@ -45,7 +46,8 @@ jobs:
sudo apt-get update
sudo apt-get install -y libvirt-daemon libvirt-daemon-system vagrant
sudo systemctl enable --now libvirtd
sudo usermod -aG libvirt $USER
sudo apt-get build-dep -y vagrant ruby-libvirt
sudo apt-get install -y --no-install-recommends libxslt-dev libxml2-dev libvirt-dev ruby-bundler ruby-dev zlib1g-dev
sudo vagrant plugin install vagrant-libvirt
- run: sudo vagrant up --no-tty
vagrant plugin install vagrant-libvirt
- run: vagrant up --no-tty

0 comments on commit fbe76af

Please sign in to comment.