Skip to content

nephelaiio/ansible-role-ubuntu-installer

Repository files navigation

nephelaiio.ubuntu-installer

Build Status Ansible Galaxy

An ansible role to generate unattended installation isos for Ubuntu server.

Role Variables

Please refer to the defaults file for a full list of input parameters.

Example Playbook

The following example will create an unattended iso for deploying vm.nephelai.io with Ubuntu Focal (22.04.3) pulled from releases.ubuntu.com (default)

- hosts: localhost
  roles:
     - role: nephelaiio.ubuntu_installer
  vars:
    ubuntu_installer_hostname: vm.nephelai.io
    ubuntu_installer_interface:
      static: true
      ipaddress: 10.40.0.22
      netmask: 255.255.255.0
      gateway: 10.40.0.254
      nameservers: 8.8.8.8 8.8.4.8.8.8.8 8.8.4.4

Images are tested by provisioning kvm guests on github actions large runners

Testing

Please make sure your environment has docker installed in order to run role validation tests. Additional python dependencies are listed in the requirements file

Role is tested using Github Actions running Ubuntu Focal. Target iso flavors are:

  • Ubuntu Focal
  • Ubuntu Jammy
  • Ubuntu Noble

It's designed to work on a controller running any recent Ubuntu release

You can test the role directly from sources using command molecule test. Note that this will reconfigure networking for network 192.168.255.0/24 which will be directly connected to a local bridge interface

License

This project is licensed under the terms of the MIT License

About

An ansible role to generate Ubuntu unattended install images

Resources

License

Stars

Watchers

Forks

Packages

No packages published