A role that creates backups of Cisco ASA configurations. The role works with ASAs both with and without security contexts.
This role requires the asa command module, which can be installed by ansible-galaxy collection install cisco.asa
.
This variable provides the directory name in which the backup configuration file(s) will be stored. If the directory does not exist, it will be created.
If the variable is not given, a backup directory named backup
will be created in the current working directory and backups will be copied to that directory.
- hosts: all
gather_facts: no
roles:
- cisco_asa_backup_config
vars:
cabc_backup_destination: /tmp/asa_backups/
[ciscoasa]
ciscoasa01 ansible_host=192.168.0.1
[ciscoasa:vars]
ansible_connection=ansible.netcommon.network_cli
ansible_network_os=cisco.asa.asa
ansible_user=cisco
ansible_password=cisco
ansible_become_password=cisco
BSD Zero Clause License
Written by Farid Joubbi - Conoa AB - https://conoa.se