f5-ansible
f5-ansible copied to clipboard
SelfIP address block does not indicate we support both IPv4/v6
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I’m writing to see if we can get an update to this page on F5 Ansible Modules Self-IP https://clouddocs.f5.com/products/orchestration/ansible/devel/modules/bigip_selfip_module.html#bigip-selfip-module-3
The “address” block is vague in that it does not specify IPv4 or IPv6, nor does the example show any IPv6. Can that be added for customer clarification?
Path to repo: ansible_collections/f5networks/f5_modules/plugins/modules/bigip_selfip.py
Describe the solution you'd like
A clear and concise description of what you want to happen.
Specify we support both IPv4/v6
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Adding an example that includes IPv6
Additional context
Add any other context or screenshots about the feature request here.
Hi @cwise24,
Thank you for your feedback. We will update the documentation. Here an example of ansible playbook to create an IPv6 self-IP.
- hosts: all
collections:
- f5networks.f5_modules
connection: local
vars:
provider:
server: "X.X.X.X"
user: "admin"
password: "mysecretpassword"
server_port: 443
validate_certs: no
tasks:
- name: Create Self IP
bigip_selfip:
provider: "{{ provider }}"
address: fe80::10
name: self1
netmask: "ffff:ffff:ffff:ffff::"
vlan: vlan1
delegate_to: localhost
Submitted a pull request to fix this issue: Description: address: description: - The IP addresses for the new self IP. This value is ignored upon update as addresses themselves cannot be changed after they are created. - This value is required when creating new self IPs. - IPv4 and IPv6 are supported.
EXAMPLE
- name: Create Self IPv6 bigip_selfip: address: fe80::10 name: self2 netmask: "ffff:ffff:ffff:ffff::" vlan: vlan1 provider: password: secret server: lb.mydomain.com user: admin delegate_to: localhost