This is a home lab environment based on the following technologies:
The project's milestone page is where issues are tracked and organized.
The milestones are numbered from 1-5. The lower numbers are foundational layers, like physical setup. The higher numbers build on the lower ones, and include things like software deployment.
The idea is to focus on accomplishing foundational items before moving on to higher-level objectives.
Save the private keys in these two locations:
Saving the encrypted private key in source control was considered as an option. However, having it in the ~/.ssh
directory makes ssh commands work more easily.
The public keys that reference these private keys are in inventory/group_vars/all/vars.yml
.
~/.ansible/vault_pw.txt
.vault.yml
files.The whole idea of Ansible is to codify the infrastructure, and avoid creating "snowflake" application servers. In our efforts to do that, we need to avoid creating a "snowflake" virtualization/Ansible server!
Our goal is is to make the host server configuratoin as simple as possible.
~/.ansible/vault_pw.txt
.
ansible-vault
ssh-keygen
to create the public/private keypair in ~/.ssh/
Enable to run script files.
Copy the private key file to a place where the ssh
command in PowerShell will expect it.
# from WSL
cp ~/.ssh/id_rsa /mnt/c/Users/[username]/.ssh/
https://github.com/geerlingguy/ansible-for-devops
https://www.ansiblefordevops.com/