Onboarding a New System
Onboarding a New System
Onboarding a New System
Onboarding a new VM, LXC Container, or bare metal server using Ansible Pull.
Log into the VM or bare metal server as the
rootuser:1 2 3
apt update && apt upgrade -y && apt install git ansible -y scp michel@<VMHost>:/home/michel/.vault_pass.txt .vault_pass.txt ansible-pull -U https://github.com/MichelfrancisBustillos/ansible_pull.git --vault-password-file .vault_pass.txt
Log in as the default user
michel:Note: If working with an LXC Container, run the AppArmor Error fix first
1 2
scp michel@<VMHost>:/home/michel/.vault_pass.txt /home/michel/.vault_pass.txt ansible-pull -U https://github.com/MichelfrancisBustillos/ansible_pull.git --vault-password-file /home/michel/.vault_pass.txt
This will fully update the system and set it up with Ansible Pull. The Ansible playbook will:
- Install Tools:
- BatCat
- Micro
- Pipx
- Docker
- Install Agents:
- Tailscale
- Glances
- Portainer
- Watchdog
- Configure Environment:
- Replace .bashrc and .bash_aliases
- Enable Pushover notifications via email (postfix)
- Enable unattended updates
- Setup default user accounts
- Setup regular checks for Ansible playbooks updates
Related Posts
This post is licensed under CC BY 4.0 by the author.