![]() ![]() If Ubuntu’s autoinstall would leave the networking configuration in place after reboot, I would be able to shave off 5 tasks and more than 10 minutes from this deployment.Sometimes I create a VirtualBox disk for usage in a VM with a certain size. The deployment kicks off and will take about 15 minutes depending on your environment:Īnd the result is a shiny new Ubuntu Server 20.04 VM: Now run the Playbook with: ansible-playbook DeployUbuntu.yml Modify DeployUbuntu.yml so that the values of the variables match your environment and requirements: Besides that it’s pretty much good to go. You will change some of the values of the variables defined under vars: so that they match your environment. I’ve also tried to use descriptive names for each task to help you understand what is happening. Most of the tasks here are pretty self-explanatory. name: Delete working directory on Ansible Controller name: Appply the network configuration on ubuntu VM Workingdir: "/00-installer-config.yaml /etc/netplan/00-installer-config.yaml" This together with the supporting files is actually better viewed and cloned on Github.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |