Use these sample Ansible playbooks to better understand how to use Dell EMC Networking Ansible modules.
- Install Ansible (see [Ansible documentation] (http://docs.ansible.com/ansible/intro_installation.html))
- Clone this repository in the control machine. Notes
- Update the
inventory.yaml
file to configure the device IP. - Update the corresponding host variables (for example:
hosts_var/dellos10_sw1.yaml
) for device credentials.
Example for dellos10_facts module. This collects the facts from the OS10 device.
ansible-playbook -i inventory.yaml getfacts_os10.yaml
Example for dellos10_command module. This executes the show version command.
ansible-playbook -i inventory.yaml showver_os10.yaml
Example for dellos10_config module. This configures th ehostname for the OS10 device.
ansible-playbook -vvv -i inventory.yaml hostname_os10.yaml
- For Ansible 2.5 and devel, use master branch