Ubuntu 20.04 on QEmu working
This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1,3 @@
|
||||
init_file: /etc/sysconfig/init
|
||||
init_regexp: "^ACTIVE_CONSOLES=.*$"
|
||||
init_replace: ACTIVE_CONSOLES=/dev/tty1
|
||||
@@ -0,0 +1,3 @@
|
||||
init_file: /etc/default/console-setup
|
||||
init_regexp: '^(ACTIVE_CONSOLES="/dev/tty).*'
|
||||
init_replace: \g<1>1
|
||||
Reference in New Issue
Block a user