fedora-ec2
Ansible Role - Fedora EC2 instance
Provisions Fedora 27 on AWS EC2. It ensures that:
- Fedora 27 AWS EC2 node is provisioned and started
- public SSH key is uploaded and assigned to provisioned EC2 node
- EC2 security group firewall has been configured to accept only SSH traffic
- OpenSSH server is up and running
- Ansible-friendly version of Python is installed on provisioned instance
Compatibility
This playbook has been tested against Fedora 27.
Requirements
Keep in mind that Ansible EC2 module requires you to have Boto installed:
sudo pip install -U boto
You can specify AWS credentials either in Boto file (for example ~/.boto
) or using environment variables:
AWS_ACCESS_KEY_ID='yourKeyId' AWS_SECRET_ACCESS_KEY='yourSecretKey' ansible-playbook aws.yml
Installation
ansible-galaxy install hekonsek.fedora-ec2,0.11
Role variables
instance_region
- AWS region to use. Default region isus-east-1
i.e. the cheapest one.instance_name
- name tag for created instance. Default value isdefaultServer
.instance_type
- instance type. Default value ist2.medium
.instance_ssd
- indicates if SSD disk should be used. Default value istrue
.keyName
- name that should be assigned to the uploaded SSH public key. Default value isdefaultKey
.group
- name of the security group to create and use. Default value isdefault
.volume_size
- volume size in GB. Default value is8
.volume_device_name
- name of the volume device. Default value is/dev/sda1
.
Example playbook
- hosts: localhost
connection: local
gather_facts: false
roles:
- { role: hekonsek.fedora-ec2,0.11 }
License
Apache 2.0
Install
ansible-galaxy install hekonsek/ansible-role-fedora-ec2
License
Unknown
Downloads
37
Owner