Builds an AMI using Packer and Ansible. This example uses RHEL 9 AMI as the base image and installs the Ansible Automation Platform installer package after updating the distribution.
Name | Version |
---|---|
amazon | ~> 1.3 |
ansible | ~> 1.1 |
Name | Version |
---|---|
amazon | ~> 1.3 |
ansible | ~> 1.1 |
Name | Type |
---|---|
amazon-ebs.img | source |
Name | Source |
---|---|
ansible | playbook.yml |
Name | Description | Type | Default | Required |
---|---|---|---|---|
ami_filter | The filter to use to find the source AMI | map(string) |
{ |
no |
ami_name | The name of the AMI to create | string |
"rhel-9-aap" |
no |
ami_owner | The owner of the AMI to use as a base (Default: Amazon) | string |
"309956199498" |
no |
instance_type | The instance type to use for the builder | string |
"t2.small" |
no |
region | The region to use for the builder | string |
"us-east-1" |
no |
ssh_username | The SSH username to use for the builder | string |
"ec2-user" |
no |
No outputs.