1
0
Fork
You've already forked vps
0
Simple Ansible automations to setup my VPS running Fedora. Docker Compose, DNF configs, manage Fedora updates. Also include Fish, basic Fish config and Neovim.
  • Shell 100%
2026年04月25日 14:34:28 +02:00
.ansible.cfg Import existing setup from Delibay infra 2026年03月22日 16:36:56 +01:00
config.fish Removed eza from playbook as not available anymore 2026年03月22日 16:56:33 +01:00
docker-compose-setup.yml Import existing setup from Delibay infra 2026年03月22日 16:36:56 +01:00
LICENSE Initial commit 2026年03月22日 15:46:31 +01:00
playbook.yml Fix missing Fish config folder creation 2026年03月22日 17:00:53 +01:00
README.md Add PGP key verification for new Fedora update 2026年04月25日 14:34:28 +02:00

vps

Simple Ansible automations to setup VPS running Fedora. Docker Compose, DNF configs, manage Fedora updates. Also include Fish, basic Fish config and Neovim.

Usage

Manual steps

Those are the manuals steps I need to follow when creating a new VPS. You can take this as inspiration.

  1. Generate a new SSH keygen with a passphrase: ssh-keygen
  2. Buy a VPS, I usually take a light VPS by Infomaniak
  3. Wait 3-5 minutes for the VPS creation, Infomaniak will send an email when it is ready.
  4. Connect via SSH to the machine by looking at the dashboard to find the ssh -i key fedora@IP command
  5. Change the hostname with the name of the light VPS on the dashboard: sudo hostname <name>

Fedora update

Infomaniak seems to update images only every year when the previous supported version is reaching EOL. (Fedora 39, 42, ...)

If this is the not the latest version, please update following the steps taken from this page

sudo dnf upgrade -y --refresh
reboot

Note: version number must be adapted. Only 1-2 versions bump is supported ! Don't go from 40 to 43.

sudo dnf system-upgrade download --releasever=43

This is probably where you'll have to confirm the authenticity of the new PGP key. You can find the fingerprints at fedoraproject.org/security/.

Importing OpenPGP key 0x31645531:
 UserID : "Fedora (43) <fedora-43-primary@fedoraproject.org>"
 Fingerprint: C6E7F081CF80E13146676E88829B606631645531
 From : file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-43-x86_64
Is this ok [y/N]: 

Automated VPS setup

Prerequisites

sudo dnf install ansible git -y
ansible-galaxy collection install community.docker
git clone https://codeberg.org/samuelroland/vps
cd vps
ansible-playbook playbook.yml -K -v

Reboot and connect, it should start Fish immediately.

License

This setup is released under GPL-3.0-or-later (see LICENSE).

vps - Simple Ansible automations to setup VPS running Fedora
Copyright (C) Samuel Roland
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.