https://github.com/geekobiloba/incus-setup
Ansible playbook for Incus server setup
https://github.com/geekobiloba/incus-setup
ansible incus
Last synced: 10 days ago
JSON representation
Ansible playbook for Incus server setup
- Host: GitHub
- URL: https://github.com/geekobiloba/incus-setup
- Owner: geekobiloba
- Created: 2025-09-11T05:52:31.000Z (30 days ago)
- Default Branch: main
- Last Pushed: 2025-09-19T17:09:25.000Z (21 days ago)
- Last Synced: 2025-09-19T18:43:45.756Z (21 days ago)
- Topics: ansible, incus
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ansible playbook for Incus server setup
Supported systems:
- Debian
- 13 (Trixie)
- 12 (Bookworm)
- Ubuntu
- 24.04 LTS (Noble Numbat)## Preparation
1. Install your SSH public key on target servers,
and set up your SSH client config.2. Build your
[Ansible inventory](https://docs.ansible.com/ansible/latest/inventory_guide/intro_inventory.html)
inside `./inventory/` directory.These optional host/group variables are supported:
- `hostname`
- `incus_preseed_file`
- `timezone`
- `zram.max`
- `zram.limit`
- `zram.percent`3. Optionally, install Mitogen,
```shell
curl -Lo- https://files.pythonhosted.org/packages/source/m/mitogen/mitogen-0.3.27.tar.gz \
| tar -C ~ -xzvf - && rm -rf ~/.mitogen && mv -v ~/mitogen-* ~/.mitogen
```## First setup
1. If you want to use Mitogen,
export these environment variables,```shell
export DEFAULT_STRATEGY=mitogen_linear DEFAULT_STRATEGY_PLUGIN_PATH=~/.mitogen/ansible_mitogen/plugins/strategy
```2. Run `sudo` role, then enter sudo password when asked,
```shell
ansible-playbook setup.yaml -vv -t sudo -K
```3. Run common roles,
```shell
ansible-playbook setup.yaml -vv
```4. Optionally, run `zram` role,
```shell
ansible-playbook setup.yaml -vv -t zram
```5. Run `incus` role,
```shell
ansible-playbook setup.yaml -vv -t incus
```