lab:ansible_virtualbox_autoboot_linux:deploy_a_fleet_of_vms
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
lab:ansible_virtualbox_autoboot_linux:deploy_a_fleet_of_vms [2024/01/29 21:16] – [Create a New variables.yml File] user | lab:ansible_virtualbox_autoboot_linux:deploy_a_fleet_of_vms [2024/05/10 05:16] (current) – removed user | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Deploy a Fleet of VMs ====== | ||
- | In this step we will give the '' | ||
- | |||
- | Overview: | ||
- | - Give sudo permissions to user ansible | ||
- | - Set up the variables.yml file | ||
- | - Set up up the server.yml file with the information about the servers we want | ||
- | - Create jinja templates | ||
- | - Create playbook to deploy servers | ||
- | - Create playbook to update packages on the servers | ||
- | |||
- | ===== Grant sudo Permissions to the ansible User ===== | ||
- | From your regular login account all the '' | ||
- | < | ||
- | |||
- | You can new test sudo access for the user '' | ||
- | * '' | ||
- | * '' | ||
- | |||
- | For the remainder of the Lab you will be using the '' | ||
- | |||
- | ===== Create a New variables.yml File ===== | ||
- | Create a new variables.yml file in the home directory (you are the user '' | ||
- | |||
- | Replace the ssh key with the one you saved earlier. Also as before you need to replaced the bridge_interface_name value with the interface of your host machine. | ||
- | |||
- | <file yaml variables.yml> | ||
- | --- | ||
- | Global: | ||
- | bridge_interface_name: | ||
- | username: ansible | ||
- | ssh_key: " | ||
- | workingdir: "{{ lookup(' | ||
- | inventory_file: | ||
- | vboxmanage_path: | ||
- | ubuntu_iso: https:// | ||
- | ubuntu_iso_filename: | ||
- | new_iso_filename: | ||
- | </ | ||
- | ===== Create servers.yml File ===== | ||
- | |||
- | ===== Create | ||
- | |||
- | ===== Deploy Servers ===== | ||
- | |||
- | ===== Update Servers ===== | ||
- | |||
- | |||
- | ====== Next Step ====== | ||
- | continue to.... [[Deploy an Application to our fleet of VMs]] | ||
- | |||
- | Or back to [[Delete the First Ubuntu VM using Ansible]] | ||
- | |||
- | ====== Optional ====== | ||
- | Explore using CSV files from Excel | ||
- | |||
lab/ansible_virtualbox_autoboot_linux/deploy_a_fleet_of_vms.1706562994.txt.gz · Last modified: 2024/01/29 21:16 by user