Hi Michael,
That makes sense. The pull request can be found at:
https://github.com/ansible/ansible/pull/7587
The examples are indeed in the code already. But here theu are:
### Examples for a10_server
# Create a new server
ansible host -m a10_server -a "host=
a10adc.example.com username=axapiuser password=axapipass server_name=realserver1 server_ip=192.168.1.23"
# Add a port
ansible host -m a10_server -a "host=
a10adc.example.com username=axapiuser password=axapipass server_name=realserver1 server_port=80 server_protocol=tcp"
# Disable a server
ansible host -m a10_server -a "host=
a10adc.example.com username=axapiuser password=axapipass server_name=realserver1 server_status=disable"
### Examples for a10_service_group
# Create a new service-group
ansible host -m a10_service_group -a "host=
a10adc.example.com username=axapiuser password=axapipass service_group=sg-80-tcp"
# Add a server
ansible host -m a10_service_group -a "host=
a10adc.example.com username=axapiuser password=axapipass service_group=sg-80-tcp server_name=realserver1 server_port=80"
# Disable a server
ansible host -m a10_service_group -a "host=
a10adc.example.com username=axapiuser password=axapipass service_group=sg-80-tcp server_name=realserver1 server_port=80 status=disable"
### Examples for a10_virtual
# Create a new virtual server
ansible host -m a10_virtual -a "host=
a10adc.example.com username=axapiuser password=axapipass virtual_server=vip1 virtual_server_ip=192.168.1.20"
# Add a virtual port
ansible host -m a10_virtual -a "host=
a10adc.example.com username=axapiuser password=axapipass virtual_server=vip1 virtual_server_ip=192.168.1.20 virtual_server_port=80 virtual_server_port_type=http service_group=sg-80-tcp"
# Disable a virtual server
ansible host -m a10_virtual -a "host=
a10adc.example.com username=axapiuser password=axapipass virtual_server=vip1 status=disable"
# Disable a virtual server port
ansible host -m a10_virtual -a "host=
a10adc.example.com username=axapiuser password=axapipass virtual_server=vip1 virtual_server_port=80 virtual_server_port_type=http virtual_server_port_status=disable"
Mischa
> To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgz50V%3Dp7Q55sFkaG9oGOq4cfSHZBH%2BMP-J2rBH_1Y1apw%40mail.gmail.com.