community.vmware.vca_nat – add remove nat rules in a gateway in a vca¶
Note
This plugin is part of the community.vmware collection (version 1.9.0).
To install it use: ansible-galaxy collection install community.vmware
.
To use it in a playbook, specify: community.vmware.vca_nat
.
DEPRECATED¶
- Removed in
major release after 2022-06-01
- Why
Module depends upon deprecated version of Pyvcloud library.
- Alternative
Use https://github.com/vmware/ansible-module-vcloud-director instead.
Parameters¶
Examples¶
#An example for a source nat
- hosts: localhost
connection: local
tasks:
- community.vmware.vca_nat:
instance_id: 'b15ff1e5-1024-4f55-889f-ea0209726282'
vdc_name: 'benz_ansible'
state: 'present'
nat_rules:
- rule_type: SNAT
original_ip: 192.0.2.42
translated_ip: 203.0.113.23
#example for a DNAT
- hosts: localhost
connection: local
tasks:
- community.vmware.vca_nat:
instance_id: 'b15ff1e5-1024-4f55-889f-ea0209726282'
vdc_name: 'benz_ansible'
state: 'present'
nat_rules:
- rule_type: DNAT
original_ip: 203.0.113.23
original_port: 22
translated_ip: 192.0.2.42
translated_port: 22
Status¶
This module will be removed in a major release after 2022-06-01. [deprecated]
For more information see DEPRECATED.
Authors¶
Peter Sprygada (@privateip)