Provisioning Task: Ansible Automation for New Servers¶
Goal¶
Apply baseline configuration to new servers using reusable Ansible roles and inventory.
Steps¶
-
Prepare inventory
[new_servers] server1 ansible_host=192.168.1.10
-
Run bootstrap playbook
- hosts: new_servers become: yes roles: - { role: base-config }
-
Execute playbook
ansible-playbook -i inventory.ini bootstrap.yml
-
Verify
- Check user accounts
- SSH hardened
- Firewall enabled
Output¶
Configured servers with systemd, logging, user, and security baseline applied.