This repository contains the code used in the Youtube series "Ansible For Network Engineers'
https://www.youtube.com/watch?v=Ieff_GaRbVY&list=PLp19NUZLnl5NzGcUQZgTmu6Xbg1cgwf_B
To install, simply clone this repository.
sudo apt-get update
sudo apt-get -y upgrade
python3 -V
cd /usr/bin
sudo ln -sf ./python3 ./python
sudo apt-get install -y python3-pip
sudo pip3 install --upgrade pip
sudo apt-get install build-essential libssl-dev libffi-dev python-dev -y
sudo apt-get install selinux-utils
sudo apt-get install -y policycoreutils
sudo apt-get install selinux-basics
sudo setenforce 0
sudo apt-get update
sudo apt-get install software-properties-common
sudo apt-get update
sudo -H pip install ansible
ansible --version
ansible -m ping localhost
Build the /etc/hosts
Build the /etc/ansible/ansible.cfg
Build the /etc/ansible/hosts
These files can be found in this repository
The following playbook was used in this video.
gather_facts.yml
ansible-playbook gather_facts.yml
ssh-keygen
sudo apt install git
git config —global user.email testusertest.com
git config —global user.name Network-Bright
The following playbook was used in this video.
backup.yml
ansible-playbook backup.yml
If you have questions you can look me up on Twitter @stephenpaynter. Any bug reports, etc., please create an issue against this repository.