restructure
This commit is contained in:
2
ansible/roles/baremetal/defaults/main.yml
Normal file
2
ansible/roles/baremetal/defaults/main.yml
Normal file
@ -0,0 +1,2 @@
|
||||
---
|
||||
iso_source:
|
3
ansible/roles/baremetal/files/packages
Normal file
3
ansible/roles/baremetal/files/packages
Normal file
@ -0,0 +1,3 @@
|
||||
linux-lts
|
||||
linux-lts-headers
|
||||
base
|
11
ansible/roles/baremetal/tasks/main.yml
Normal file
11
ansible/roles/baremetal/tasks/main.yml
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
- name: attach installation iso as virtual media
|
||||
|
||||
- name: boot from installation iso
|
||||
|
||||
- name: detect booted ip address
|
||||
|
||||
- name: configure disks
|
||||
|
||||
- name: sync ntp
|
||||
|
9
ansible/roles/baremetal/templates/eno.network.j2
Normal file
9
ansible/roles/baremetal/templates/eno.network.j2
Normal file
@ -0,0 +1,9 @@
|
||||
[Match]
|
||||
MACAddress={{ mac_address }}
|
||||
|
||||
[Link]
|
||||
ARP=no
|
||||
|
||||
[Network]
|
||||
DHCP=no
|
||||
Bond=lacp
|
1
ansible/roles/vm_template/defaults/main.yml
Normal file
1
ansible/roles/vm_template/defaults/main.yml
Normal file
@ -0,0 +1 @@
|
||||
---
|
7
ansible/roles/vm_template/tasks/main.yml
Normal file
7
ansible/roles/vm_template/tasks/main.yml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
|
||||
- name: sysprep the template vhd
|
||||
when: template_created is changed
|
||||
ansible.builtin.shell:
|
||||
cmd: |
|
||||
virt-sysprep -a {{ root_vhd_pool_dir }}/{{ vhd_template }}
|
Reference in New Issue
Block a user