amazon web services - Re-associate AWS Elastic IP with Ansible -


i use ansible spinning ec2 instances , deploying services them. re-associate elastic ip associated existing ec2 instance new instance little down time possible. right works in 2 steps ansible ec2_eip module?

  • disassociate old instance (state absent)
  • associate new 1 (state present)

there no way in 1 step allow-reassociation option of ec2-associate-address cli command, right?

i made pull request might you.

this pr adding 2 modules : boto3 , boto3_wait. allows call boto 3 client operation.

you use :

- name: re-associate elastic ip   boto3:     name: ec2     region: us-east-1     operation: associate_address     parameters:       allowreassociation: yes       instanceid: i-xxxxxxxxxxxxxxxxx       allocationid: eipalloc-xxxxxxxx 

if you're interrested feature, feel free vote on pr. :)


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -