refactor(vars): remove legacy variable inputs
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: Configure work environment
|
||||
become: "{{ hypervisor != 'vmware' }}"
|
||||
become: "{{ hypervisor_type != 'vmware' }}"
|
||||
block:
|
||||
- name: Wait for connection
|
||||
ansible.builtin.wait_for_connection:
|
||||
@@ -81,7 +81,7 @@
|
||||
msg: This host is not booted from the Arch install media!
|
||||
|
||||
- name: Select primary Network Interface
|
||||
when: hypervisor == "vmware"
|
||||
when: hypervisor_type == "vmware"
|
||||
ansible.builtin.set_fact:
|
||||
environment_interface_name: >-
|
||||
{{
|
||||
@@ -97,7 +97,7 @@
|
||||
|
||||
- name: Set IP-Address
|
||||
when:
|
||||
- hypervisor == "vmware"
|
||||
- hypervisor_type == "vmware"
|
||||
- system_cfg.ip is defined and system_cfg.ip | string | length > 0
|
||||
ansible.builtin.command: >-
|
||||
ip addr replace {{ system_cfg.ip }}/{{ system_cfg.prefix }}
|
||||
@@ -107,7 +107,7 @@
|
||||
|
||||
- name: Set Default Gateway
|
||||
when:
|
||||
- hypervisor == "vmware"
|
||||
- hypervisor_type == "vmware"
|
||||
- system_cfg.gateway is defined and system_cfg.gateway | string | length > 0
|
||||
- system_cfg.ip is defined and system_cfg.ip | string | length > 0
|
||||
ansible.builtin.command: "ip route replace default via {{ system_cfg.gateway }}"
|
||||
@@ -120,7 +120,7 @@
|
||||
changed_when: false
|
||||
|
||||
- name: Configure SSH for root login
|
||||
when: hypervisor == "vmware" and vmware_ssh | bool
|
||||
when: hypervisor_type == "vmware" and vmware_ssh | bool
|
||||
block:
|
||||
- name: Allow login
|
||||
ansible.builtin.replace:
|
||||
@@ -192,7 +192,7 @@
|
||||
environment_rhel_iso_device: >-
|
||||
{{
|
||||
'/dev/sr2'
|
||||
if hypervisor == 'libvirt'
|
||||
if hypervisor_type == 'libvirt'
|
||||
else '/dev/sr1'
|
||||
}}
|
||||
changed_when: false
|
||||
|
||||
Reference in New Issue
Block a user