Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added src/fmgr_firewall_address_add_multiple.yml #9

Open
wants to merge 1 commit into
base: 2.0.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions src/fmgr_firewall_address_add_multiple.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Author: Jean-Pierre Forcioli
# Org: Fortinet
# Date: 2022.06.16
# Label: firewall, address, IPv4
# Desc: Add multiple firewall addresses

- hosts: fortimanager00
collections:
- fortinet.fortimanager
connection: httpapi
vars:
ansible_httpapi_use_ssl: True
ansible_httpapi_validate_certs: False
ansible_httpapi_port: 443
description: Maintained by fortinet.fortimanager galaxy collection
tasks:
- name: Add multiple firewall addresses
fmgr_firewall_address:
bypass_validation: true
adom: ansible
state: present
firewall_address:
- name: test_host_001
subnet: 10.0.0.1/32
type: ipmask
color: 10
comment: "{{ description }}"
- name: test_host_002
subnet: 10.0.0.2/32
type: ipmask
color: 20
comment: "{{ description }}"
- name: test_range_001
color: 30
start-ip: 10.0.0.10
end-ip: 10.0.0.20
type: iprange
comment: "{{ description }}"