Spécificités automation réseau : https://docs.ansible.com/ansible/2.5/network/getting_started/network_differences.html
Types de connexion Ansible
https://docs.ansible.com/ansible/latest/network/user_guide/platform_index.html
Connexion IOS CLI
Exemple IOS CLI group_vars/ios.yml
ansible_connection: network_cli
ansible_network_os: ios
ansible_user: myuser
ansible_ssh_pass: !vault...
ansible_become: yes
ansible_become_method: enable
ansible_become_pass: !vault...
ansible_ssh_common_args: '-o ProxyCommand="ssh -W %h:%p -q bastion01"'
Exemple NXOS CLI group_vars/nxos.yml
ansible_connection: network_cli
ansible_network_os: nxos
ansible_user: myuser
ansible_ssh_pass: !vault...
ansible_become: yes
ansible_become_method: enable
ansible_become_pass: !vault...
ansible_ssh_common_args: '-o ProxyCommand="ssh -W %h:%p -q bastion01"'
Exemple NX-API group_vars/nxos.yml
ansible_connection: httpapi
ansible_network_os: nxos
ansible_user: myuser
ansible_ssh_pass: !vault...
proxy_env:
http_proxy: http://proxy.example.com:8080
en IOSv, IOS-XE, NX-OS
Roles :
Suggestions
Roles :
Concepts
Langages
Push Model
Structure
Facts
Variables
handlers
ansible.cfg
Dépendances
sudo -i
apt-add-repository ppa:ansible/ansible
apt-get update
apt-get upgrade
apt-get install ansible docker docker.io git python-pip
pip install docker-py
service docker start
mkdir awx-install
cd awx-install
git clone https://github.com/ansible/awx.git
git clone https://github.com/ansible/awx-logos.git
cd awx/installer/
Configuration de l’installation
cat ./inventory
Lancement de l’installation
ansible-playbook -i inventory install.yml
This content is a multi-purpose toolkit for effectively demonstrating Ansible’s capabilities on network equipment (Arista, Cisco, Cumulus, Juniper etc) or providing informal workshop training in various forms – instructor-led, hands-on or self-paced.
Want the Presentation Deck? Its right here: Ansible Networking Linklight Deck
Red Hat® Ansible® Automation consists of three products:
Red Hat® Ansible® Tower: Built for operationalizing and scaling automation, managing complex deployments and speeding up productivity. Extend the power of Ansible Tower with Workflows and Surveys to streamline jobs and simple tools to share solutions with your team.
Red Hat® Ansible® Engine: a fully supported product built on the foundational capabilities of the Ansible project. Also provides support for select modules including Infoblox.
Red Hat® Ansible® Network Automation: provides support for select networking modules from Arista (EOS), Cisco (IOS, IOS XR, NX-OS), Juniper (JunOS), Open vSwitch, and VyOS. Includes Ansible Tower, Ansible Engine, and curated content specifically for network use cases.
Pré-requis : instructions de virtualisation activée ou virtualisation imbriquée.
Livres de jeu pour installer gns3-server :
Role Ansible-Galaxy pour installer gns3-server :
Collections Ansible-Galaxy pour interagir avec l’API REST de serveurs GNS3 grâce à gns3fy
:
Checks :
Procédure :