|
|
|
@ -391,8 +391,8 @@ class AnsibleCloudStackFirewall(AnsibleCloudStack):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
|
module = AnsibleModule(
|
|
|
|
|
argument_spec = dict(
|
|
|
|
|
argument_spec = cs_argument_spec()
|
|
|
|
|
argument_spec.update(dict(
|
|
|
|
|
ip_address = dict(default=None),
|
|
|
|
|
network = dict(default=None),
|
|
|
|
|
cidr = dict(default='0.0.0.0/0'),
|
|
|
|
@ -407,20 +407,19 @@ def main():
|
|
|
|
|
account = dict(default=None),
|
|
|
|
|
project = dict(default=None),
|
|
|
|
|
poll_async = dict(choices=BOOLEANS, default=True),
|
|
|
|
|
api_key = dict(default=None),
|
|
|
|
|
api_secret = dict(default=None, no_log=True),
|
|
|
|
|
api_url = dict(default=None),
|
|
|
|
|
api_http_method = dict(choices=['get', 'post'], default='get'),
|
|
|
|
|
api_timeout = dict(type='int', default=10),
|
|
|
|
|
api_region = dict(default='cloudstack'),
|
|
|
|
|
),
|
|
|
|
|
))
|
|
|
|
|
|
|
|
|
|
required_together = cs_required_together()
|
|
|
|
|
required_together.extend([
|
|
|
|
|
['icmp_type', 'icmp_code'],
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
module = AnsibleModule(
|
|
|
|
|
argument_spec=argument_spec,
|
|
|
|
|
required_together=required_together,
|
|
|
|
|
required_one_of = (
|
|
|
|
|
['ip_address', 'network'],
|
|
|
|
|
),
|
|
|
|
|
required_together = (
|
|
|
|
|
['icmp_type', 'icmp_code'],
|
|
|
|
|
['api_key', 'api_secret', 'api_url'],
|
|
|
|
|
),
|
|
|
|
|
mutually_exclusive = (
|
|
|
|
|
['icmp_type', 'start_port'],
|
|
|
|
|
['icmp_type', 'end_port'],
|
|
|
|
|