From 8252614cb0127a08b877c94e9fd477659bceabd3 Mon Sep 17 00:00:00 2001 From: Robert Date: Sun, 4 Oct 2026 02:27:56 -0600 Subject: [PATCH] Document new server bootstrap --- README.md | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 79a7907..8feb9ec 100644 --- a/README.md +++ b/README.md @@ -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. \ No newline at end of file +## 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.