Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (26 sloc) 685 Bytes
---
- name: include access-lists variables
include_vars:
file: "group_vars/access-lists.yml"
- name: clear configure access-lists
asa_config:
lines:
- clear configure access-list {{ item.name }}
ignore_errors: 'yes'
when: override_acl == true
with_items:
- "{{ access_lists }}"
- name: write access-lists
asa_acl:
lines:
- access-list {{ item.0.name }} extended {{ item.1 }}
when: override_acl == true
with_subelements:
- "{{ access_lists }}"
- lines
- name: assign access-lists to interface
asa_config:
lines:
- access-group {{ item.name }} in interface {{ item.interface }}
with_items:
- "{{ access_lists }}"