Skip to content

CICD-260 · Server bootstrap automation ​

Encyclopedia · Ansible and configuration management · All snippets

Previous · CICD-259 · Next · CICD-261

1. Where it fits ​

  • Placement controller command.
  • Prerequisites controller with reviewed inventory, pinned Ansible collections and a non-production target.
  • Platforms local-linux, github-actions, gitea-actions.

2. Copy the snippet ​

bash
ansible-playbook -i inventory/staging.yml --limit new_hosts --become playbooks/bootstrap.yml

3. How it works ​

The selected inventory and limit determine the hosts a playbook can affect. Syntax check and check mode give different forms of preflight evidence.

4. Verify the result ​

Bootstrap only the explicit group using an already authorized administrative session. On second run the managed baseline should converge.

Validation syntax-validated (Bash parse). Status definitions.