This repository has been archived on 2023-05-19. You can view files and clone it, but cannot push or open issues or pull requests.
skylab-ansible/README.md

30 lines
746 B
Markdown

# skylab-ansible
Ansible configs for the Skylab Homelab
## Local workstation setup:
```bash
make dev
poetry run ansible-playbook ...
```
## Boostraping remote system for management:
1. Install a supported operating system: [Rocky Linux](https://rockylinux.org),
[Fedora](https://getfedora.org)
2. During installation create a user named `ansible` with any password
3. After installation copy SSH key to the `ansible` user
4. Enable password-less sudo access for the `ansible` user with this command:
```bash
sudo tee /etc/sudoers.d/30-ansible <<<"ansible ALL=(ALL) NOPASSWD:ALL"
```
5. Change the UID/GID of the `ansible` user/group to `1400` with these commands:
```bash
sudo usermod -u 1400 ansible
sudo groupmod -g 1400 ansible
```