Create a gist now

Instantly share code, notes, and snippets.

- hosts: all
sudo: yes
tasks:
- name: deregister smtp server from loadbalancer
local_action: loadbalancer name=lbsmtp instance=smtp001 load_balancer_port=465 instance_port=10025 state=absent region=jp-east-1 aws_secret_access_key=xxxxxx aws_access_key_id=xxxxxx
register: result
- debug: var=result
- name: register smtp server to loadbalancer
local_action: loadbalancer name=lbsmtp instance=smtp001 load_balancer_port=465 instance_port=10025 state=present region=jp-east-1 aws_secret_access_key=xxxxxx aws_access_key_id=xxxxxx
register: result
- debug: var=result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment