67e41fbe96a143ba4cffd1c243e548ec9c97e4dc
Ansible Pull Master
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:
wget -O /tmp/bootstrap.sh https://gitea.romerozone.top/robert/ansible_pull_master/raw/branch/master/bootstrap.sh
Make the script executable:
chmod +x /tmp/bootstrap.sh
Run the bootstrap:
/tmp/bootstrap.sh
The bootstrap script will:
- Install Git and Ansible.
- Prompt for the Ansible Vault password.
- Store the Vault password securely in
/root/.ansible_vault_password. - Configure Ansible to use the Vault password.
- Run the initial
ansible-pull. - 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.
Languages
Shell
100%