How to run a simple play that backs up the existing config from an Ubiquiti Edgeswitch:
- Run against all hosts/switches listed in the hosts inventory file
ansible-playbook -i hosts backupedgeswitch.yml
- Run against only targeted group (dc2) of switches listed in the hosts inventory file
ansible-playbook --limit dc2 -i hosts backupedgeswitch.yml
How to run a playbook that backs up the Edgeswitch config and stores it into a repository in /tmp/backups:
- Run against all hosts/switches listed in the hosts inventory file
ansible-playbook -i hosts edgeswitch.yml
- Run against only targeted group (dc2) of switches listed in the hosts inventory file
ansible-playbook --limit dc2 -i hosts edgeswitch.yml