An Ansible Role to deliver FortiGate Firewall policy changes. THIS ROLE CAN BE DESTRUCTIVE - PLEASE ENSURE YOU HAVE A BACKUP OF YOUR CONFIG BEFORE USING THIS ROLE!
MIT License
2
stars
0
forks
source link
Consider replacing multiple '<string>' in <var> with "{{ var | regex_search('(<string1>|<string2>|<string3>)') }}" != "" #4
See, for example: https://github.com/E-and-CS/fortigate_policy/blob/3106a158e8284c4bbe6a40fffcee2232f46f5601/tasks/B01_Validate_Address_Objects.yml#L390-L395
Code reference: https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#regular-expression-filters
Suggestion by @mohclips