0Pricing
Ansible Academy · Lesson

Provision Then Configure in One Flow

Hand off new hosts to config plays.

Two Jobs, One Playbook

Provisioning makes a server exist. Configuring makes it useful. The real power is doing both in a single, smooth play. 🔗

Provision on the Control Node

Cloud creation tasks run locally against the AWS API, so the provisioning play targets localhost, not the new server.

- hosts: localhost
  gather_facts: false
  tasks:
    - amazon.aws.ec2_instance: { name: web-01 }

All lessons in this course

  1. Cloud Collections & Authentication
  2. Launch EC2 Instances Declaratively
  3. Networking: VPCs, Subnets & Security Groups
  4. Provision Then Configure in One Flow
← Back to Ansible Academy