Code Monkey home page Code Monkey logo

ansible-youtube's Introduction

Ansible For Network Engineers

This repository contains the code used in the Youtube series "Ansible For Network Engineers'

Youtube Playlist Link

https://www.youtube.com/watch?v=Ieff_GaRbVY&list=PLp19NUZLnl5NzGcUQZgTmu6Xbg1cgwf_B

Installation

To install, simply clone this repository.

Part 1

Commands used in the video.

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

Ansible Installation Commands

sudo apt-get update
sudo apt-get install software-properties-common
sudo apt-get update
sudo -H pip install ansible

Validation Commands

ansible --version
ansible -m ping localhost

Part 2

Build the /etc/hosts
Build the /etc/ansible/ansible.cfg
Build the /etc/ansible/hosts

These files can be found in this repository

Part 3

The following playbook was used in this video.

gather_facts.yml

run the code use the following command

ansible-playbook gather_facts.yml

Part 4

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

run the code use the following command

ansible-playbook backup.yml

Getting Help

If you have questions you can look me up on Twitter @stephenpaynter. Any bug reports, etc., please create an issue against this repository.

ansible-youtube's People

Contributors

stephenpaynter avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.