-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathglobal.yml
44 lines (37 loc) · 1.04 KB
/
global.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
- hosts: fortigates
connection: httpapi
# when using the colltion
#collections:
#- fortinet.fortios
gather_facts: false
vars_files:
- vars.yml
tasks:
- name: Configure general log settings.
fortios_log_setting:
vdom: "{{ vdom }}"
log_setting:
local_in_allow: "enable"
local_in_deny_broadcast: "enable"
local_in_deny_unicast: "enable"
local_out: "enable"
tags: [never, global]
- name: Configure global attributes - hostname
fortios_system_global:
vdom: "{{ vdom }}"
system_global:
hostname: "{{ inventory_hostname }}"
tags: [never, hostname]
- name: Configure global attributes - banner settings
fortios_system_global:
vdom: "{{ vdom }}"
system_global:
post_login_banner: disable
pre_login_banner: disable
tags: [never, global]
- name: Configure admin https port to 8443
fortios_system_global:
vdom: "{{ vdom }}"
system_global:
admin_sport: 8443
tags: [never, adminports, global]