Configuration Management

LEARN ANSIBLE LAB TO AUTOMATE MY HOMELAB.

config-ansible

 

  • Youtube URL: https://www.youtube.com/watch?v=3RiVKs8GHYQ&list=PLT98CRl2KxKEUHie1m24-wkyHpEsa4Y70
 

Gonna be following awesome series by Mr Jay from Learn Linux TV.

So far, very clear explanation on setting ansible up. Gonna follow through this series and hopefully will be able to intergrate this with my own environment soon! will share more . Spun up 3 ubuntu VMs in my VMware workstation.    

Part 1 (This video)

Part 2 (SSH Overview & Setup): https://linux.video/ansible2 

key parts of part 2:

-> Generate a ssh key, and another for ansible usage.

-> Copy public key to servers we're managing.

-> Also, some ways we can cache passphrase for the ssh and use alias to make life simpler for this passphrases.

Part 3 (Setting up the Git Repository): https://linux.video/ansible3

key parts of part 3:

-> Recaps/basic setup of ansible repo on github.

Part 4 (Running Commands): https://linux.video/ansible4

key parts of part 4:

-> Setup inventory file of servers we're managing

-> Ansible config file

   

-> Running some ad-hoc commands:

        • $  ansible all -m ping    #check the connectivity to all the hosts in your inventory
        • $  ansible all --list-hosts   #List all of the hosts in the inventory
        • $  ansible all -m gather_facts  #Gather facts about your hosts
        • $  ansible all -m gather_facts --limit 172.16.250.132   #Gather facts about your hosts, but limit it to just one host
 

Part 5 (Running Elevated Commands): https://linux.video/ansible5


key parts of part 5:

-> Telling ansible to use sudo (become)

-> Try out apt module to install packages

->  Try out upgrading package updates

Part 6 (Writing our first Playbook): https://linux.video/ansible6

-> FIRST PLAYBOOK!

->install_apache.yml

->remove_apache.yml

Part 7 (The "when" Conditional): https://linux.video/ansible7

Part 8 (Improving your Playbook): https://linux.video/ansible8

Part 9 (Targeting Specific Nodes): https://linux.video/ansible9

Part 10 (Tags): https://linux.video/ansible10

Part 11 (Managing Files): https://linux.video/ansible11

Part 12 (Managing Services): https://linux.video/ansible12

Part 13 (Adding Users & Bootstrapping): https://linux.video/ansible13

Part 14 (Roles): https://linux.video/ansible14

Part 15 (Host Variables): https://linux.video/ansible15

Part 16 (Templates): https://linux.video/ansible16