Code Monkey home page Code Monkey logo

ubuntu-autoinstall's Introduction

ubuntu-autoinstall

An Ansible Playbook that performs unattended Ubuntu Server 22.04 VM installations on VMware vSphere.

Prerequisites

Prepare an Ubuntu machine as Ansible Controller by running the following commands:

  • sudo apt update && sudo apt install python3 python3-pip git p7zip-full xorriso
  • git clone https://github.com/rutgerblom/ubuntu-autoinstall.git ~/git/ubuntu-autoinstall
  • pip3 install --upgrade -r ~/git/ubuntu-autoinstall/pip_requirements.txt
  • ansible-galaxy collection install --upgrade -r ~/git/ubuntu-autoinstall/requirements.yml

Usage

Copy the variables_sample.yml file to variables.yml and modify the settings so that they match your environment and your requirements. Start the Ubuntu Server deployment by running: ansible-playbook DeployUbuntu.yml

ubuntu-autoinstall's People

Contributors

rutgerblom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ubuntu-autoinstall's Issues

Use "{{ UbuntuOSPassword }}" instead of password literal

Hi, first of all, thank you for this :-)

I have noted that that password literal is used in four places where I think that "{{ UbuntuOSPassword }}" should be used instead.

I am making a note of this now, but I also expect to create a pull request with, possibly, other changes, once I have this running on macOS.

Regards

Nathan

Failing on Create custom Ubuntu ISO] any help?

I am trying this with ubuntu-20.04.3-live-server-amd64.iso

TASK [Copy user-data file to directory] **************************************************************************************************************************************************
ok: [localhost]

TASK [Create empty meta-data file in directory] ******************************************************************************************************************************************
changed: [localhost]

TASK [Create custom Ubuntu ISO] **********************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "cmd": "xorrisofs -relaxed-filenames -J -R -o /mnt/EXT_USB01/AnsibleUbuntu/ubuntu2004.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table /mnt/EXT_USB01/AnsibleUbuntu/ubuntu20/iso/ /mnt/EXT_USB01/AnsibleUbuntu/ubuntu20/isocopy/", "msg": "[Errno 2] No such file or directory", "rc": 2}

PLAY RECAP *******************************************************************************************************************************************************************************
localhost : ok=8 changed=3 unreachable=0 failed=1 skipped=1 rescued=0 ignored=0

Deployment of VM fails

I'm failing at the Deploy Ubuntu VM task with it complaining about missing modules even after ensuring they are all installed.

TASK [Deploy Ubuntu VM] ************************************************************************************************************************************************************************************** An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'pyVim' fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to import the required Python library (PyVmomi) on velos-jump's Python /usr/bin/python. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"}

error applying netplan

the iso image that it creates stops at netplan apply

I tried to change the ens192 to ens160 same issue

i left it at vmxnet3

Any help would be appreciated

error i am getitng is:

Command '[Netplan', 'apply']' returned non-zero exit status 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.