Ubuntu 20.04 on QEmu working

This commit is contained in:
Greg Hellings
2022-05-04 09:00:17 -05:00
parent 950500c9f1
commit ff59effbb1
43 changed files with 757 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
- name: load version information
include_vars: "{{ item }}"
loop:
- "{{ role_path }}/vars/{{ ansible_facts['os_family'] }}.yml"
- "{{ role_path }}/vars/{{ ansible_facts['distribution'] }}.yml"
- "{{ role_path }}/vars/{{ ansible_facts['distribution'] }}_{{ ansible_facts['distribution_major_version'] }}.yml"
- "{{ role_path }}/vars/{{ ansible_facts['distribution'] }}_{{ ansible_facts['distribution_version'] }}.yml"
when: item is file
- name: modify init file
become: true
replace:
path: "{{ init_file }}"
replace: "{{ init_replace }}"
regexp: "{{ init_regexp }}"
when: init_file is defined
+3
View File
@@ -0,0 +1,3 @@
init_file: /etc/sysconfig/init
init_regexp: "^ACTIVE_CONSOLES=.*$"
init_replace: ACTIVE_CONSOLES=/dev/tty1
+3
View File
@@ -0,0 +1,3 @@
init_file: /etc/default/console-setup
init_regexp: '^(ACTIVE_CONSOLES="/dev/tty).*'
init_replace: \g<1>1