The vca_fw module

This module enables you to add and remove firewall rules from a vCloud Air gateway. The following example shows you how to add a rule allowing SSH traffic:

- name: example fireware rule  vca_fw:   instance_id: "abcdef123456-1234-abcd-1234-abcdef123456"   vdc_name: "my_vcd"   service_type: "vca"   state: "present"   fw_rules:     - description: "Allow SSH"       source_ip: "10.20.30.40"       source_port: "Any"       dest_port: "22"       dest_ip: "192.0.10.20"       is_enable: "true"       enable_logging: "false"       protocol: "Tcp"       policy: "allow"

Notice how we are passing a service_type; this could be vca, vcd, or vchs.

Get Learn Ansible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.