|
|
|
@ -99,49 +99,42 @@ options:
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
EXAMPLES = '''
|
|
|
|
|
- name: Create Model Device
|
|
|
|
|
hosts: FortiManager
|
|
|
|
|
connection: local
|
|
|
|
|
gather_facts: False
|
|
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
|
|
- name: Create FGT1 Model Device
|
|
|
|
|
fmgr_provision:
|
|
|
|
|
host: "{{ inventory_hostname }}"
|
|
|
|
|
username: "{{ username }}"
|
|
|
|
|
password: "{{ password }}"
|
|
|
|
|
adom: "root"
|
|
|
|
|
vdom: "root"
|
|
|
|
|
policy_package: "default"
|
|
|
|
|
name: "FGT1"
|
|
|
|
|
group: "Ansible"
|
|
|
|
|
serial: "FGVM000000117994"
|
|
|
|
|
platform: "FortiGate-VM64"
|
|
|
|
|
description: "Provisioned by Ansible"
|
|
|
|
|
os_version: '6.0'
|
|
|
|
|
minor_release: 0
|
|
|
|
|
patch_release: 0
|
|
|
|
|
os_type: 'fos'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Create FGT2 Model Device
|
|
|
|
|
fmgr_provision:
|
|
|
|
|
host: "{{ inventory_hostname }}"
|
|
|
|
|
username: "{{ username }}"
|
|
|
|
|
password: "{{ password }}"
|
|
|
|
|
adom: "root"
|
|
|
|
|
vdom: "root"
|
|
|
|
|
policy_package: "test_pp"
|
|
|
|
|
name: "FGT2"
|
|
|
|
|
group: "Ansible"
|
|
|
|
|
serial: "FGVM000000117992"
|
|
|
|
|
platform: "FortiGate-VM64"
|
|
|
|
|
description: "Provisioned by Ansible"
|
|
|
|
|
os_version: '5.0'
|
|
|
|
|
minor_release: 6
|
|
|
|
|
patch_release: 0
|
|
|
|
|
os_type: 'fos'
|
|
|
|
|
- name: Create FGT1 Model Device
|
|
|
|
|
fmgr_provisioning:
|
|
|
|
|
host: "{{ inventory_hostname }}"
|
|
|
|
|
username: "{{ username }}"
|
|
|
|
|
password: "{{ password }}"
|
|
|
|
|
adom: "root"
|
|
|
|
|
vdom: "root"
|
|
|
|
|
policy_package: "default"
|
|
|
|
|
name: "FGT1"
|
|
|
|
|
group: "Ansible"
|
|
|
|
|
serial: "FGVM000000117994"
|
|
|
|
|
platform: "FortiGate-VM64"
|
|
|
|
|
description: "Provisioned by Ansible"
|
|
|
|
|
os_version: '6.0'
|
|
|
|
|
minor_release: 0
|
|
|
|
|
patch_release: 0
|
|
|
|
|
os_type: 'fos'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Create FGT2 Model Device
|
|
|
|
|
fmgr_provisioning:
|
|
|
|
|
host: "{{ inventory_hostname }}"
|
|
|
|
|
username: "{{ username }}"
|
|
|
|
|
password: "{{ password }}"
|
|
|
|
|
adom: "root"
|
|
|
|
|
vdom: "root"
|
|
|
|
|
policy_package: "test_pp"
|
|
|
|
|
name: "FGT2"
|
|
|
|
|
group: "Ansible"
|
|
|
|
|
serial: "FGVM000000117992"
|
|
|
|
|
platform: "FortiGate-VM64"
|
|
|
|
|
description: "Provisioned by Ansible"
|
|
|
|
|
os_version: '5.0'
|
|
|
|
|
minor_release: 6
|
|
|
|
|
patch_release: 0
|
|
|
|
|
os_type: 'fos'
|
|
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|