Speed up Ansible tests

Move Molecule Vagrant tests over to QEmu runners on Linux boxes
"Dog-food" the Vagrant VMs
Accelerate linting of Ansible code as well
This commit is contained in:
Greg Hellings
2022-06-08 13:56:47 -05:00
committed by GitHub
parent 0941dd9909
commit 8448e1f187
9 changed files with 39 additions and 53 deletions
@@ -1,8 +0,0 @@
driver:
name: vagrant
provider:
name: libvirt
platforms:
- name: test-ubuntu16-init
image: ubuntu:16.04
box: generic/ubuntu1604
@@ -1,11 +0,0 @@
- hosts: all
tasks:
- name: Read init file
ansible.builtin.slurp:
path: /etc/default/console-setup
register: __slurped
- name: Validate desired string is present
assert:
that: >-
'ACTIVE_CONSOLES="/dev/tty1"' in ( __slurped["content"] | b64decode )
@@ -4,5 +4,6 @@ driver:
name: libvirt
platforms:
- name: test-ubuntu18-init
image: ubuntu:18.04
box: generic/ubuntu1804
box: boxen/ubuntu-18.04-x86_64
provider_options:
driver: qemu