on_premises/roles/server_iso
2022-10-16 22:30:32 +02:00
..
defaults add server_iso role 2022-10-16 10:44:17 +02:00
files add server_iso role 2022-10-16 10:44:17 +02:00
handlers add server_iso role 2022-10-16 10:44:17 +02:00
meta rename luks_password in luks_passphrase 2022-10-16 22:30:32 +02:00
tasks remove debuging pause 2022-10-16 11:53:43 +02:00
templates rename luks_password in luks_passphrase 2022-10-16 22:30:32 +02:00
.gitignore add server_iso role 2022-10-16 10:44:17 +02:00
README.md rename luks_password in luks_passphrase 2022-10-16 22:30:32 +02:00

server_iso Role

Create an Oracle Linux 9 ISO for automatic server installation.

Variables

Name Type Requiered Default Description
src_iso_download_url str no https://yum.oracle.com/ISOS/OracleLinux/OL9/u0/x86_64/OracleLinux-R9-U0-x86_64-boot-uek.iso Download link to source installation medium
src_iso_path str no {{ role_path }}/files/OracleLinux-R9-U0-x86_64-boot-uek.iso Storage location of downloaded source installation medium
src_iso_checksum str no sha256:a782e8c78a629ab1c19fcb32e76d3b81c7ef1b04060a0465253c103686339f3a Checksum of downloaded source installation medium
src_iso_label str no OL-9-0-0-BaseOS-x86_64 Volume ID of installation medium. Could be displayed by xorriso -indev {{ role_path }}/files/OracleLinux-R9-U0-x86_64-boot-uek.iso -toc
reboot_after_installation bool no False Automatic reboot after installation.
gateway str no IPv4 default gateway address. This will only be used when ansible_host is a IP address.
nameserver str no IPv4 nameserver address. This will only be used when ansible_host is a IP address.
netmask str no IPv4 subnet mask. This will only be used when ansible_host is a IP address.
ssh_keys list[str] no List of ssh public keys that will be added to .ssh/authorized_keys
iso_path str yes Storage location for the created ISO
luks_passphrase str yes Password for disk encryption. Consider password change after first boot.

Example Playbook

- name: Create server ISO
  hosts: server
  gather_facts: false
  vars:
    iso_path: "~/Downloads/OEL_{{ inventory_hostname }}.iso"
    luks_passphrase: Password1
    ssh_keys:
      - "ssh-rsa 8J+OtU5ldmVyIGdvbm5hIGdpdmUgeW91IHVw8J+Otg== UmljayDwn5W6@IPCfp7sg"
  roles:
    - copyrights.on_premises.server_iso