ansible/ansible — pull request #6862 by sivel (2014-04-04 17:42:12+00:00)
Title: Moudle rax_clb_nodes: Allow respecification of a node without requiring node_id. Fixes #5401

This pull request addresses #5401

Previously not specifying `node_id` would cause an error of "Duplicate nodes detected. One or more nodes already configured on load balancer."

This pull request allows node matching by any of node_id, address and port.

Test play:

```
- hosts: localhost
gather_facts: False
tasks:
- name: Server build requests
local_action:
module: rax
credentials: ~/.raxpub
name: test
flavor: performance1-1
image: ubuntu-1204-lts-precise-pangolin
region: ORD
state: present
wait: yes
register: rax

- name: Provision Load Balancer
local_action:
module: rax_clb
credentials: ~/.raxpub
name: my-lb
port: 8080
protocol: HTTP
type: PUBLIC
timeout: 30
region: ORD
wait: yes
state: present
meta:
foo: baz
register: clb

- name: Add servers to Load balancer
local_action:
module: rax_clb_nodes
credentials: ~/.raxpub
load_balancer_id: "{{ clb.balancer.id }}"
address: "{{ item.rax_networks.private|first }}"
port: 80
condition: enabled
type: primary
wait: yes
region: ORD
with_items: rax.instances
```