2023-11-01 16:10:08 +05:00
|
|
|
# System from scratch
|
|
|
|
|
2024-04-08 21:05:17 +05:00
|
|
|
Ansible playbooks for system configuration.
|
2024-01-13 16:42:43 +05:00
|
|
|
|
2024-04-08 21:05:17 +05:00
|
|
|
This repo contains Ansible playbooks for configuring a Debian Linux system from scratch.
|
|
|
|
It handles tasks like installing packages, configuring services, users, etc.
|
2024-01-13 16:42:43 +05:00
|
|
|
|
2024-04-08 21:05:17 +05:00
|
|
|
## Getting Started
|
|
|
|
|
|
|
|
1. Clone the repo.
|
2024-01-13 16:42:43 +05:00
|
|
|
|
|
|
|
```bash
|
2024-04-08 21:05:17 +05:00
|
|
|
git clone https://git.comfycamp.space/lumin/system-from-scratch.git
|
2024-01-13 16:42:43 +05:00
|
|
|
```
|
|
|
|
|
2024-04-08 21:05:17 +05:00
|
|
|
2. Create an inventory file.
|
2024-01-13 16:42:43 +05:00
|
|
|
|
2024-04-08 21:05:17 +05:00
|
|
|
Example:
|
2024-01-13 16:42:43 +05:00
|
|
|
```ini
|
2024-04-08 21:05:17 +05:00
|
|
|
; this group name is used in all playbooks.
|
2024-01-13 16:51:44 +05:00
|
|
|
[odhosts]
|
2024-04-08 21:05:17 +05:00
|
|
|
localhost ansible_connection=local
|
|
|
|
192.0.2.0
|
2024-01-13 16:42:43 +05:00
|
|
|
```
|
2024-01-20 12:35:55 +05:00
|
|
|
|
2024-04-08 21:05:17 +05:00
|
|
|
3. Run a playbook.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
ansible-playbook -i inventory.ini [--ask-become] playbooks/ping.yml
|
|
|
|
```
|
2024-01-20 12:35:55 +05:00
|
|
|
|
2024-04-08 21:05:17 +05:00
|
|
|
## Purpose
|
2024-01-20 12:35:55 +05:00
|
|
|
|
|
|
|
This repository can serve as a source of inspiration.
|
|
|
|
Ansible allows you not only to initially configure the system,
|
|
|
|
but also to synchronize settings between several computers.
|
2024-04-08 21:05:17 +05:00
|
|
|
|
|
|
|
## Contributing
|
|
|
|
|
|
|
|
Bug fixes and improvements are welcome, please submit your pull requests.
|