The collection is the FortiADC Ansible Automation project. It includes the modules that are able to configure FortiADC OS features.
The collection provides the following modules:
fadcos_admin
Configure FortiADC adminfadcos_backup_config
Download FortiADC config filefadcos_interfadce
Manage FortiADC network interfacefadcos_nat_pool
Configure NAT poolfadcos_nat_pool_member
Configure NAT pool memberfadcos_real_server
Configure real serverfadcos_real_server_pool
Configure real server poolfadcos_real_server_pool_member
Configure real server pool memberfadcos_route_static
Configure static routefadcos_system_control
Perform reboot/shutdown on FortiADC devicesfadcos_system_setting
Configure system settingfadc_vdom
Manage FortiADC VDOMfadcos_virtual_server_basic
Add a basic virtual serverfadcos_virtual_server
Configure virtual serverfadcos_application_profile
Configure an application profilefadcos_cert_verify
Configure a certificate verification objectfadcos_client_ssl_profile
Configure a client SSL profilefadcos_health_check
Configure an health check objectfadcos_local_cert_group
Configure a local certificate groupfadcos_real_server_ssl_profile
Configure a real server SSL profile
This collection includes some playbooks for configuring ADC OS. Here is a quick example:
Create the hosts
inventory file
[fortiadc]
adc01 ansible_host=192.168.1.99 ansible_user="admin" ansible_password="password"
[fortiadc:vars]
ansible_network_os=fortinet.fortiadc.fadcos
ansible_httpapi_use_ssl=yes
ansible_httpapi_validate_certs=no
ansible_httpapi_port=443
Run the playbook:
ansible-playbook -i hosts fadcos_system_setting.yml
This operation will adjust system idle timeout.
For other playbooks, please make sure required settings are already done in ADC OS before running them.