All Projects → cchurch → ansible-role-win-ec2

cchurch / ansible-role-win-ec2

Licence: other
Ansible role to create and destroy Windows instances on EC2

Projects that are alternatives of or similar to ansible-role-win-ec2

monit
Ansible role that configures monit. Will also setup baseline monitoring of SSH, NTP, and Cron.
Stars: ✭ 37 (+184.62%)
Mutual labels:  ansible-role
ansible-concourse
An ansible role to manage Concourse CI
Stars: ✭ 22 (+69.23%)
Mutual labels:  ansible-role
stork
Retrieve tokens from Vault for your EC2 instances.
Stars: ✭ 12 (-7.69%)
Mutual labels:  ec2
ansible-role-harden-linux
Ansible role for hardening Linux
Stars: ✭ 99 (+661.54%)
Mutual labels:  ansible-role
traefik-cluster-ecs
This is a tutorial on how to deploy a Traefik Load Balancer in AWS using CloudFormation to load balancer development ECS tasks using hosts (FQDN).
Stars: ✭ 62 (+376.92%)
Mutual labels:  ec2
ansible-aide
An Ansible role to install, configure, and schedule AIDE.
Stars: ✭ 14 (+7.69%)
Mutual labels:  ansible-role
dog
A firewall management system.
Stars: ✭ 67 (+415.38%)
Mutual labels:  ec2
ansible-role-nginx-config
Ansible role for configuring NGINX
Stars: ✭ 104 (+700%)
Mutual labels:  ansible-role
ansible-role-asdf
No description or website provided.
Stars: ✭ 45 (+246.15%)
Mutual labels:  ansible-role
zsh-ec2ssh
zsh plugin to list up EC2 instances and ssh login the instances.
Stars: ✭ 10 (-23.08%)
Mutual labels:  ec2
ansible-qemu-kvm
Ansible role to provision KVM/QEMU virtual machines
Stars: ✭ 38 (+192.31%)
Mutual labels:  ansible-role
getting-into-consul
A zero to complete walk through of setting up HashiCorp Consul on AWS from scratch!
Stars: ✭ 56 (+330.77%)
Mutual labels:  ec2
ansible-palybooks
Ansible Palybooks Written and Published by www.server-computer.com. NO WARRANTY for any damages and loss of data.
Stars: ✭ 24 (+84.62%)
Mutual labels:  ansible-role
ansible-role-aptly
Install aptly debian respository manager and enable the REST API
Stars: ✭ 37 (+184.62%)
Mutual labels:  ansible-role
ansible-role-yarn
Ansible Role - YARN Package Manager for Ubuntu/RHEL/CentOS https://galaxy.ansible.com/ocha/yarn/
Stars: ✭ 27 (+107.69%)
Mutual labels:  ansible-role
ansible-role-systemd-service
No description or website provided.
Stars: ✭ 37 (+184.62%)
Mutual labels:  ansible-role
vpc-peering-operator
A Kubernetes Operator to manage the lifecycle of AWS VPC Peering Connections
Stars: ✭ 23 (+76.92%)
Mutual labels:  ec2
terraform-aws-cloudwatch-flow-logs
Terraform module for enabling flow logs for vpc and subnets.
Stars: ✭ 32 (+146.15%)
Mutual labels:  ec2
ansible-roles
My Ansible roles for Debian/Ubuntu
Stars: ✭ 57 (+338.46%)
Mutual labels:  ansible-role
ansible-playbook-volumio-bluetooth
Pair your phone and stream audio to a Raspberry Pi running Volumio
Stars: ✭ 13 (+0%)
Mutual labels:  ansible-role

Build Status Galaxy

Win-EC2

Create and destroy Windows instances on EC2. Generate a static inventory file usable for running additional playbooks against Windows hosts.

Role Variables

The following variables may be defined to customize this role:

  • win_ec2_region: Region in which instances are created, default is us-east-1.
  • win_ec2_instance_type: Instance type for creating instances, default is m3.medium.
  • win_ec2_security_group: Name of security group to create/use for Windows instances, default is win-ec2.
  • win_ec2_security_group_description: Description for security group, default is Security group for Ansible WinRM.
  • win_ec2_security_group_rules: When creating a security group, use these rules, default only opens TCP ports 5986 and 3389.
  • win_ec2_security_group_id: Specify an existing security group ID instead of creating one, default uses the result of creating the security group.
  • win_ec2_vpc_id: VPC ID to use when creating the security group, default is no VPC.
  • win_ec2_vpc_subnet_id: VPC subnet ID in which to launch the instance, default is no VPC subnet.
  • win_ec2_assign_public_ip: Assign a public IP when provisioning within a VPC, default is to use the default setting for the VPC subnet.
  • win_ec2_termination_protection: Enable or disable termination protection, default is disabled.
  • win_ec2_key_name: Name of keypair created/used for Windows instances, default is win-ec2.
  • win_ec2_public_key_path: Path to public key for creating keypair, default is ~/.ssh/id_rsa.pub.
  • win_ec2_private_key_path: Path to matching private key to use for decrypting Windows passwords, default is ~/.ssh/id_rsa.
  • win_ec2_name_prefix: Prefix for Name tag associated with each instance, default is win-ec2.
  • win_ec2_images: List of AMIs to use for creating instances. Each list item should be a hash containing ami_id and name keys. Default is {{win_ec2_default_images[win_ec2_region]}}.
  • win_ec2_action: Action to perform, should be one of create, recreate or destroy; default is create.
  • win_ec2_winrm_port: Port for connecting to new instances, default is 5986.
  • win_ec2_winrm_user: Username for connecting to new instances, default is Administrator.
  • win_ec2_inventory_dest: Path to write static inventory file, default is {{playbook_dir}}/inventory.win-ec2.
  • win_ec2_wait_for: Wait for network connectivity on instance public IP after created, default is true.
  • win_ec2_wait_for_delay: Number of seconds to wait before checking public IP, default is 5.
  • win_ec2_wait_for_timeout: Number of seconds to wait until giving up on checking public IP, default is 300.
  • win_ec2_password_wait_timeout: Number of seconds to wait for password from a new instance, default is 300.

Valid AWS credentials must be specified either by setting aws_access_key and aws_secret_key variables or by defining AWS_ACCESS_KEY and AWS_SECRET_KEY environment variables.

Example Playbook

The following example playbook creates, then destroys Windows instances in EC2:

- hosts: localhost
  vars:
    win_ec2_name_prefix: example
  roles:
    - role: cchurch.win-ec2
    - role: cchurch.win-ec2
      win_ec2_action: destroy

License

BSD

Author Information

Chris Church [email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].