No description
Devops
Commands
# Run a playbook
just play ./vps1.first_playbook.yaml
# Encrypt vault
just encrypt
# Edit vault in vim while keeping it encrypted
just vault-edit
# Decrypt vault
just decrypt
Setup developers connection
1. Setup ssh access
If you don't have an ssh key create one
ssh-keygen -t ed25519 -C "your_email@example.com"
ssh-add ~/.ssh/id_ed25519
Then add the public key ~/.ssh/id_ed25519.pub to the admin user via the vps dashboard, or ask someone who has access to add that for you.
Add this snippit to your ~/.ssh/config:
Ensure you can access vps1 from the following ssh config ~/.ssh/config:
Host vps1.example.com
HostName vps1.example.com
User admin
IdentityFile ~/.ssh/id_ed25519
2. Install ansible
Install ansible on your system, this can be done via python3-pip, brew, ubuntu ppa or dnf.
| OS | Recommend command |
|---|---|
| Fedora | sudo dnf install ansible |
| Ubuntu | docs.ansible.com/../ansible-on-ubuntu |
| Mac | brew install ansible |
| Windows | use WSL |
3. Install just
Just is a handy way to save and run project-specific commands.
Install just as described from their documentation: https://just.systems/man/en/packages.html
3. Run setup
Don't do this more than once, it will exit without doing anything if you do.
just setup