I manage my dotfiles and system with Ansible.
I host my Ansible playbooks on Github.
I would like to create a Github Action Workflow that, at every push:
Arrange
1. Creates an Archlinux vm and starts it
2. Clone my dotfiles on the vm
Act
1. Runs the Ansible playbooks on the vm as I normally do on my systems
Assert
1. Make some assertion about the state of the vm so I can check my playbooks did the right things
Github actions runs on Ubuntu 22.04
Do you think it is possible, or do you know in advance it would be a mess/impossible?
Containers (not VMs) definitely work great. For VMs, I believe it’s possible these days but you need to make sure you get a Github Actions runner that supports nested virtualization.
I don’t know if they’ve just enabled that as large or if you need to somehow request it.