Fortimanager ansible playbooks to be used for zero touch provisioning
The playbooks and roles now support FortiManager 6.4.4 and FortiGate 6.4.4 using Ansible Galaxy Collections.
How to use:
- Install ansible and the FortiManager galaxy collection as described here: https://ansible-galaxy-fortimanager-docs.readthedocs.io/en/latest/index.html
- Clone this repo
- Modify the hosts_template and rename to hosts
- Modify vars/enterprise1_template.yml and rename to vars/enterprise1.yml
- Modify vars/enterprise1_branch1_template.yml and rename to vars/enterprise1_branch1.yml
- run "ansible-playbook -i hosts create_adom.yml create_branch1.yml"
Deleting branches or adoms with these commands: "ansible-playbook -i hosts delete_branch1.yml delete_adom.yml"
enjoy :)
Note: The playbooks now support FortiManager workspace mode. Only change required to support it is to uncomment the commit task in roles/create_adom/tasks/create_system_template.yml.