Provisions Fedora 26 on AWS EC2. It ensures that:
- Fedora 26 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
This playbook has been tested against Fedora 26.
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
ansible-galaxy install hekonsek.fedora-ec2,0.6
instance_region
- AWS region to use. Default region iseu-central-1
.instance_name
- name tag for created instance. Default value isdefaultServer
.instance_type
- instance type. Default value ist2.medium
.instance_ssd
- use ssd?. 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
.
- hosts: localhost
connection: local
gather_facts: false
roles:
- { role: hekonsek.fedora-ec2,0.6 }
Apache 2.0