Files
vms/ansible/roles/init/molecule/ubuntu18/verify.yml
T

12 lines
304 B
YAML
Raw Normal View History

2022-05-06 14:47:43 -05:00
- 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 )