Document new server bootstrap

This commit is contained in:
2026-10-04 02:27:56 -06:00
parent 00f4ec1007
commit 8252614cb0
+33 -1
View File
@@ -1,4 +1,36 @@
# Ansible Pull Master
This repository is my main repository for Ansible Pull.
This repository is my main repository for ansible pull.
## New Server Bootstrap
For a new Ubuntu server, log in as `root` and download the bootstrap script directly from Gitea:
```bash
wget -O /tmp/bootstrap.sh https://gitea.romerozone.top/robert/ansible_pull_master/raw/branch/master/bootstrap.sh
```
Make the script executable:
```bash
chmod +x /tmp/bootstrap.sh
```
Run the bootstrap:
```bash
/tmp/bootstrap.sh
```
The bootstrap script will:
1. Install Git and Ansible.
2. Prompt for the Ansible Vault password.
3. Store the Vault password securely in `/root/.ansible_vault_password`.
4. Configure Ansible to use the Vault password.
5. Run the initial `ansible-pull`.
6. Retrieve the repository and apply the server configuration.
After the initial pull completes, the server is managed by this Ansible Pull repository.
The Ansible playbook creates the `Default` user and other required configuration, so no normal user account is required before running the bootstrap.