ichundu.ec2-launch
Role Name: ec2-launch
This role is used to launch Amazon EC2 instances.
Requirements
- Python version 2.6 or higher
- Boto library
Role Variables
Most settings in the EC2 module are defined by variables to make the role flexible. The file defaults/main.yml
lists these variables, which are initially empty and commented out. It is the responsibility of the playbook user to determine which variables to use.
Variable Name | Default Value | Description |
---|---|---|
ec2_access_key |
N/A | AWS access key. If not provided, it uses the value from the environment variable. |
ec2_secret_key |
N/A | AWS secret key. If not provided, it uses the value from the environment variable. |
ec2_launch_id |
N/A | Launch ID for the instance to ensure it can be reused without creating new ones. |
ec2_launch_count |
N/A | Number of instances to launch. |
ec2_launch_count_tag |
N/A | Works with 'exact_count' to find how many instances should be running based on a tag. |
ec2_launch_exact_count |
N/A | Specifies how many instances that match 'count_tag' should be running. |
ec2_launch_image |
N/A | The image ID for the instance, like ami-xxxxxxxx . |
ec2_launch_groups |
N/A | A list of security groups for the instance, separated by commas. |
ec2_launch_tag_name |
N/A | Name tag for the instance. |
ec2_launch_tag_class |
N/A | Class tag for the instance. |
ec2_launch_instance_type |
N/A | Type of EC2 instance types. |
ec2_launch_key_name |
N/A | Name of an existing key pair to assign to the instance. |
ec2_launch_region |
N/A | AWS region where the instance will be created. |
ec2_launch_state |
N/A | Specifies whether to create or terminate instances. |
Dependencies
None
Example Playbook
When using this role, you should define the variables in the playbook, in a vars file, or through an interactive prompt.
- hosts: localhost
roles:
- role: ichundu.ec2-launch
Author Information
Visit: GitHub
Installa
ansible-galaxy install ichundu.ec2-launch
Licenza
Unknown
Download
111
Proprietario