1
0
Fork
You've already forked ansible_template
0
No description
  • Just 80.7%
  • Shell 19.3%
2025年07月02日 17:54:27 +02:00
.githooks Flatten playbooks and allow for multiple group var files and encrypt them all 2025年07月02日 17:54:27 +02:00
group_vars Flatten playbooks and allow for multiple group var files and encrypt them all 2025年07月02日 17:54:27 +02:00
host_vars Flatten playbooks and allow for multiple group var files and encrypt them all 2025年07月02日 17:54:27 +02:00
templates Flatten playbooks and allow for multiple group var files and encrypt them all 2025年07月02日 17:54:27 +02:00
.editorconfig Flatten playbooks and allow for multiple group var files and encrypt them all 2025年07月02日 17:54:27 +02:00
.gitignore Fix readme 2025年07月02日 16:04:09 +02:00
ansible.cfg Initial 2025年07月02日 15:33:56 +02:00
hosts Initial 2025年07月02日 15:33:56 +02:00
justfile Flatten playbooks and allow for multiple group var files and encrypt them all 2025年07月02日 17:54:27 +02:00
LICENSE Add WTFPL 2025年07月02日 16:05:27 +02:00
README.md Flatten playbooks and allow for multiple group var files and encrypt them all 2025年07月02日 17:54:27 +02:00
vps1.first_playbook.yaml Flatten playbooks and allow for multiple group var files and encrypt them all 2025年07月02日 17:54:27 +02:00

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