I need to run ansible against internal resources. Is it an acceptable strategy to create the runner from inside a long lived docker container so I can run cmd line tools? Or should the runner be on the VM and the action spin up, run and spin down. If the later, is there a better way to access the container or do I need to run docker exec commands from the runner
Glad to see you in Github Community Forum!
Self-hosted runners can be physical, virtual, in a container, on-premises, or in a cloud, but please still be awared of the limitation(eg: workflow time limited to 72hours, doc here).
Currently docker is only supported on linux platform in Github Action, if you setup runner on a VM, please choose linux OS, you can run docker exec commands for the container.
Please refer to the official doc below for more details.