f5devcentral.backup_config
Ansible Role: Backup Config
This role collects the current device settings and saves them on the Ansible controller with a user-defined backup filename and location.
Requirements
None.
Role Variables
Here are the variables you can use. To see their default values, check defaults/main.yml
:
- provider_server: localhost
- provider_server_port: 443
- provider_user: admin
- provider_password: secret
- provider_validate_certs: no
- provider_transport: rest
- provider_timeout: 120
These values help connect to your BIG-IQ and are used in the provider
module.
filename: This is the name of the file where settings will be saved. Since multiple files are backed up, they will use this name, but the file extensions will be different. For example, if you set
filename
to "backup", it will createbackup.qkview
andbackup.ucs
.path: This is the location (absolute or relative) where the configuration files will be saved.
backup: This is a true/false option to decide if we should backup the settings before replacing them with new ones.
Dependencies
None.
Example Playbook
- name: Backup config
hosts: bigip
vars:
backup_config:
filename: "config_{{ ansible_host }}"
path: "~/network_configs_1/"
backup: yes
roles:
- { role: f5devcentral.backup_config }
License
Apache
Author Information
This role was created in 2018 by Tim Rupp, with assistance from Forrest Crenshaw.
Collect the current device configurations and store it on the Ansible controller with a user specific backup filename and path.
ansible-galaxy install f5devcentral.backup_config