AnsiblePilot — Master Ansible Automation
AnsiblePilot is the leading resource for learning Ansible automation, DevOps, and infrastructure as code. Browse over 1,400 tutorials covering Ansible modules, playbooks, roles, collections, and real-world examples. Whether you are a beginner or an experienced engineer, our step-by-step guides help you automate Linux, Windows, cloud, containers, and network infrastructure.
Popular Topics
About Luca Berton
Luca Berton is an Ansible automation expert, author of 8 Ansible books published by Apress and Leanpub including "Ansible for VMware by Examples" and "Ansible for Kubernetes by Example", and creator of the Ansible Pilot YouTube channel. He shares practical automation knowledge through tutorials, books, and video courses to help IT professionals and DevOps engineers master infrastructure automation.
Backup Dell EMC DNOS 6 Configs with Ansible Playbook — Video Tutorial
Discover how to automate Dell EMC DNOS 6 configuration backups with Ansible. This guide includes a Playbook example and setup instructions for efficient.
What You'll Learn
- How to Backup Config on Dell EMC Networking Operating System DNOS 6 with Ansible?
- Ansible Backup Config on DNOS 6
- Parameters
- Links
- Demo
- code
- requirements setup
- first run
- execution
- before execution
Full Tutorial Content
How to Backup Config on Dell EMC Networking Operating System DNOS 6 with Ansible?
Maintaining a backup copy of your network appliance configuration is a good practice for all IT professionals. You could automate this process for Dell EMC network appliances using Ansible.
I'm going to show you a live Playbook with some simple Ansible code.
I'm Luca Berton and welcome to today's episode of Ansible Pilot.
Ansible Backup Config on DNOS 6
- dellemc.os6.os6_config
- Manage Dell EMC OS6 configuration sections
Let's talk about the Ansible module `os6_config`.
The full name is `dellemc.os6.os6_config`, which means that is part of the collection `dellemc.os6` specialized in the module to interact with Ansible Network Collection for Dell EMC OS6.
This collection requires ansible-core version 2.10+.
It manages Dell EMC OS6 configuration sections.
Parameters
- backup boolean - no/yes
- backup_options dictionary - configurable options related to a backup file path
- dir_path path - If the directory does not exist it will be first created
- filename string - \\_config.\@\
Let me summarize the parameter of `os6_config` module for the backup use-case.
The `backup` boolean enables the backup mode of the configuration.
Once enabled you could specify some `backup_options`.
I suggest you specify the `dir_path`, the directory where to save backups, and the `filename` if you have a specific one.
Otherwise, Ansible is going to create a file with the current timestamp.
Links
- [Dell OS6 Platform Options](https://docs.ansible.com/ansible/latest/network/user_guide/platform_dellos6.html)
- [dellemc.os6.os6_config module](https://docs.ansible.com/ansible/latest/collections/dellemc/os6/os6_config_module.html)
Demo
How to Backup Config on Dell Networking Operating System 6 with Ansible Playbook.
I'm going to show how to back up the current configuration of a Dell Networking Operating System 6 connecting via SSH protocol using username and password credentials with Enable Mode (Privilege Escalation) and save it to a file with the device name and timestamp.
code
- inventory
```ini
[dellos6]
192.168.88.3
[dellos6:vars]
ansible_user=luca
ansible_password=mysecretpassword123
ansible_become=yes
ansible_become_method=enable
ansible_connection=ansible.netcommon.network_cli
ansible_network_os=dellemc.os6.os6
ansible_command_timeout=120
```
- backup_dellos6.yml
```yaml
---
- name: Backup DNOS6
hosts: dellos6
gather_facts: false
vars:
backup_dir: "/home/luca/network/backup"
tasks:
- name: Backup
dellemc.os6.os6_config:
backup: true
backup_options:
dir_path: "{{ backup_dir }}"
```
- requirements.yml
```yaml
---
collections:
- name: dellemc.os6
```
requirements setup
```bash
$ ansible-galaxy install -r requirements.yml
Starting galaxy collection install process
Process install dependency map
Starting collection install process
Downloading https://galaxy.ansible.com/download/dell
About This Tutorial
- Author: Luca Berton
- Difficulty: Beginner
- Read time: 4 min
- Category: installation
Read the full written article: Backup Dell EMC DNOS 6 Configs with Ansible Playbook
Related Video Tutorials
- Automate Dell EMC DNOS 10 Backups with Ansible Playbook — Learn to automate the backup of Dell EMC DNOS 10 configurations with Ansible. This guide includes a practical Playbook example and setup instructions.
- Automate Mikrotik RouterOS Config Backups with Ansible — Learn how to automate configuration backups for Mikrotik RouterOS with Ansible. This guide includes a step-by-step Playbook example for seamless backups using.
- Ansible synchronize Module: Rsync Files & Directories Between Hosts — Discover how to use Ansible synchronize module for efficient file backups with rsync. Learn practical steps and see real-world examples for Linux systems.
- UFW Allow Port with Ansible: Complete Firewall Management Guide (Ubuntu/Debian) — Manage UFW firewall rules with Ansible on Ubuntu and Debian. Allow ports, deny traffic, rate-limit SSH, configure web server and database firewalls, IPv6.
- Ansible firewalld Module: Open Firewall Ports on RHEL/CentOS (Examples) — How to manage firewall ports on RHEL, CentOS, and Fedora using Ansible firewalld module. Open ports, add services, manage zones, and make rules permanent.
- AI DevOps Ansible Community on Skool — Join Luca Berton's AI DevOps Ansible Community for top-tier training in Ansible, Kubernetes, and Terraform. Access 50+ hours of courses and career support!