Skip to content

Instantly share code, notes, and snippets.

@sgargan
Created April 17, 2015 18:50
Show Gist options
  • Save sgargan/ab237071111aaecabc38 to your computer and use it in GitHub Desktop.
Save sgargan/ab237071111aaecabc38 to your computer and use it in GitHub Desktop.
config_balancer.yml
- debug: msg='adding {{instance_id}} to {{ balancer_name}}'
- local_action:
module: ec2_elb
ec2_elbs: "{{ balancer_name }}"
aws_access_key: '{{ ec2_access_key }}'
aws_secret_key: '{{ ec2_secret_key }}'
state: '{{state}}'
region: '{{ region }}'
instance_id: "{{ instance_id }}"
wait: no
sudo: no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment