Unify testing builds
Unify Ansible testing builds into a single job Add a few basic "unit test" Ansible builds Update dependencies
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
- hosts: all
|
||||
roles:
|
||||
- init
|
||||
@@ -0,0 +1,8 @@
|
||||
driver:
|
||||
name: vagrant
|
||||
provider:
|
||||
name: libvirt
|
||||
platforms:
|
||||
- name: test-ubuntu16-init
|
||||
image: ubuntu:16.04
|
||||
box: generic/ubuntu1604
|
||||
@@ -0,0 +1,11 @@
|
||||
- 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 )
|
||||
@@ -0,0 +1,8 @@
|
||||
driver:
|
||||
name: vagrant
|
||||
provider:
|
||||
name: libvirt
|
||||
platforms:
|
||||
- name: test-ubuntu18-init
|
||||
image: ubuntu:18.04
|
||||
box: generic/ubuntu1804
|
||||
@@ -0,0 +1,11 @@
|
||||
- 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 )
|
||||
@@ -1,3 +1,3 @@
|
||||
init_file: /etc/default/console-setup
|
||||
init_regexp: '^(ACTIVE_CONSOLES="/dev/tty).*'
|
||||
init_replace: \g<1>1
|
||||
init_regexp: '^(ACTIVE_CONSOLES="/dev/tty).*"'
|
||||
init_replace: \g<1>1"
|
||||
|
||||
Reference in New Issue
Block a user