Skip to content

karrot-dev/karrot-ansible

Repository files navigation

karrot ansible server setup

This configures the server with the basics of:

  1. user accounts and ssh keys
  2. security hardening (via https://github.com/konstruktoid/ansible-role-hardening)
  3. installing enough stuff for co-op cloud to work (https://docs.coopcloud.tech/)

First, create a python virtualenv (recommended, but not essential):

python -m venv .venv
source .venv/bin/activate

(if you're using mise it'll setup the venv for you automatically as we have a .mise.toml config file)

Then, install python deps and galaxy deps:

pip install -r requirements.txt
ansible-galaxy install -r galaxy-requirements.yml
ansible-galaxy collection install -r galaxy-requirements.yml

1. User accounts

You'll want to modify the users.yml and keys in files/ to suit your own needs...

# first time, before accounts created
ansible-playbook users.yml -u root

# later, can use your own account
ansible-playbook users.yml

2. Server hardening

Note: make sure you installed the users first, as after this you'll need to login as one of those, not root.

ansible-playbook harden.yml

3. Rest of the setup

ansible-playbook setup.yml

You're then ready to start using abra with co-op cloud, some useful resources:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published