Automate EVERYTHING with Ansible! (Ansible for Beginners)

Automate EVERYTHING with Ansible! (Ansible for Beginners)

Techno Tim

4 года назад

249,418 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@TechnoTim
@TechnoTim - 26.12.2020 07:17

What will you automate with Ansible? Updates? Reboots? Software installs? Something else?

Ответить
@gp2254
@gp2254 - 24.10.2024 18:06

Great stuff, ques for you - I currently have a bunch of server with diff user names/ password, I currently prefer to use the PW Auth and not SSH at this time. How can I set this up to work with servers that have diff acct login info? TY

Ответить
@VerenaZyla
@VerenaZyla - 02.10.2024 12:18

Very well explained. Thank you!

Ответить
@alexeyromanov
@alexeyromanov - 31.08.2024 09:43

Hi Tim, great video. I am wondering if it is possible to automate proxmox servers upgrades, not just VMs. Can't find a proper playbook for that. Thanks

Ответить
@HeneryH
@HeneryH - 31.08.2024 00:03

The python versioning and requiring an environment activation now makes this a whole separate layer of learning a new prerequisite before even starting the original task.

Ответить
@Sub0x-x40
@Sub0x-x40 - 24.08.2024 14:34

haha man i went to learn ansible and it just lead me down the virtual machine rabbithole in the first five minutes and i havent even gotten around to actually doing anything with ansible

Ответить
@codewithmarwan
@codewithmarwan - 18.08.2024 18:43

great video man

Ответить
@Roachness99
@Roachness99 - 17.07.2024 04:25

Great video. You're a great teacher.

Ответить
@YannMetalhead
@YannMetalhead - 01.07.2024 00:17

Good guide.

Ответить
@Rico-Suave_
@Rico-Suave_ - 14.06.2024 16:51

Great video, thank you very much, note to self (nts) watched all of it ,

Ответить
@Jomster777
@Jomster777 - 03.05.2024 18:45

I'm trying to learn Ansible since it's part of the Network Automation learning path for Cisco. Their documentation was a bit complex to understand and I would just get bored trying to understand it and eventually the knowledge would slip out of my head. With the way you discussed it, I'm starting to grasp it better now and am actually interested seeing as now I have a better understanding. Thanks.

Ответить
@ToGoMania19
@ToGoMania19 - 13.04.2024 19:28

Thanks! Reminded me about VS Code!

Ответить
@starterdev
@starterdev - 09.04.2024 04:13

Very good introduction!

Ответить
@djmarkmax
@djmarkmax - 23.01.2024 02:57

I use Ansible in conjunction with Terraform to create a fictitious customer network of VMs. We use the range for Red Teaming and Cyber exercise practice. The last administrator retired, so now I have inherited this project and still have a lot to learn but it is fascinating and fun! I wish I had watched your video before I started looking at the ansible code but I feel it helped me understand your content better. Thanks for the video!

Ответить
@JohnWeland
@JohnWeland - 06.12.2023 17:56

I know this is an older video, but it would be real neat to see how you setup servers for key login; for a thing like Ansible it seems like you'd need a TON of keys or sharing the same key across servers. Maybe a dedicated Ansible user on your systems?

Ответить
@tilltheend6634
@tilltheend6634 - 25.11.2023 12:46

Just amazingly simple and instructive

Ответить
@dominick253
@dominick253 - 22.10.2023 16:05

Love ansible. Makes a ton of sense to me. Some things don't make sense to me, like react. I even made a copy-ssh-key.yml playbook. Just run it whenever you add a new server and keys are good to go.

Ответить
@kihunkim9122
@kihunkim9122 - 27.09.2023 21:46

I have a question. How VScode file is recognized by Linuc machine? Is it because you are using WSL so you can see the files on the desktop?

Ответить
@zenken3919
@zenken3919 - 10.09.2023 19:58

I have watched to many of your videos not to sub now lol

Ответить
@franciscobneto
@franciscobneto - 01.09.2023 23:51

How the HELL i didn't heard about this an year ago?!?!?!

Ответить
@zuowang5185
@zuowang5185 - 19.08.2023 09:19

Why would I do that Ansible thing instead of cloning a repo with a shell script plus some dot config files?

Ответить
@LorenzoBettini
@LorenzoBettini - 10.07.2023 14:14

Actually, the changes you always see is due to stop/start the service: the template file is not copied over if the destination file is exactly the same (that's implied by the Ansible module that performs that check for you). In fact, in your run, when performing the copy task, only a server results as changed because of the file copy (the other ones are not changed, because you had already copied the same file).

Ответить
@nikhiltitus
@nikhiltitus - 07.07.2023 17:05

This is a great tutorial. Thanks for the same.

Ответить
@confused6526
@confused6526 - 06.07.2023 19:39

All is good... but why you want to wear your hat backward? 🙂

Ответить
@LorenzoBettini
@LorenzoBettini - 06.07.2023 14:53

Which font is the one around minute 1? Thanks in advance

Ответить
@jontanneguy4960
@jontanneguy4960 - 25.06.2023 06:56

The cost structure for ansible is crazy.

Ответить
@tjoleary8738
@tjoleary8738 - 04.06.2023 01:12

Not much experience with Ansible but starting to LOVE it...great video Tim

Ответить
@richardgarnett5779
@richardgarnett5779 - 30.05.2023 04:43

I swear everytime he says the commands will be in the description....they never are?

Ответить
@hosnearabegum335
@hosnearabegum335 - 17.05.2023 23:12

honestly, i don't like your hat style!!

Ответить
@solsats
@solsats - 05.05.2023 18:11

Assuming all your passwords are the same 🤔

Ответить
@niravraychura
@niravraychura - 30.04.2023 20:13

Nice explanation ... Thank you for the video ✌️

Ответить
@capthowdy6987
@capthowdy6987 - 18.04.2023 17:19

outstanding job as always Tim! Your videos truly help with so many scenarios.

Ответить
@CasperWest
@CasperWest - 31.03.2023 00:12

Can I book you for a training session on ansible via zoom? I’ll compensate you for your time. Thanks!

Ответить
@jhmc93
@jhmc93 - 24.03.2023 19:28

Can you use this to schedule your apt updates and upgrades?

Ответить
@danielkornuta4965
@danielkornuta4965 - 23.03.2023 17:47

Great! Thanks a lot. Now i can start this adventure ;))

Ответить
@chfmrf9605
@chfmrf9605 - 03.03.2023 02:09

Great Video! Thanks!

Ответить
@jochinq3116
@jochinq3116 - 23.02.2023 15:30

❤❤❤

Ответить
@repairstudio4940
@repairstudio4940 - 13.02.2023 05:35

Liked and Subbed....tell me more about server automation please.

Ответить
@mbchudno
@mbchudno - 05.02.2023 07:00

great content. thank you very much. very helpful. by the way, here is a playbook for ssh keybased authentication :)

- name: Add ssh key for root@adm
hosts: "*"
become: yes
tasks:

- name: lets create ssh directory
shell: ssh-keygen -y -f /root/.ssh/id_rsa -N ""

- name: add authorized key for root
authorized_key:
user: root
state: present
key: "{{ lookup('file', '/root/.ssh/id_rsa.pub') }}"

Ответить
@bidemibello9983
@bidemibello9983 - 03.02.2023 00:57

How can i do all of this on a windows machine. How can i access my yaml file and run my playbooks in vscode on a windows 10?

Ответить
@IcyTone1
@IcyTone1 - 01.02.2023 21:31

TRY Ansible Semaphore

Ответить
@nouchkabertoncelli9233
@nouchkabertoncelli9233 - 27.01.2023 00:15

Great Stuff! I do wonder if you would explain how to customize Ubuntu Server Network interface like updating from DHCP to STATIC IP? Thank you!

Ответить
@jmmirl
@jmmirl - 26.01.2023 12:39

Hi Tim, I have a nice example for a playbook that only restarts if the uploaded config file has changed.

name: Restart service when config file is copied
become: true
become_user: root
notify:
- "restart service"
handlers:
- name: "restart service"
service:
- name: "{{ service_name }}"
state: restarted
tasks:
- name: Check if config file has changed
stat:
- path: "{{ config_file }}"
register: config_stat
- name: Restart service if config file has changed
service:
- name: "{{ service_name }}"
state: restarted
when: config_stat.stat.mtime != ansible_date_time.iso8601

Ответить
@michaelcooper5490
@michaelcooper5490 - 27.12.2022 15:01

Awesome video Tim, Thank you sir. I hope you and your family had a great Christmas.

Ответить
@picasosdog
@picasosdog - 14.12.2022 18:50

Hi Tim, thanks for the content. please I need help with configuring a mail server and testing if it works. I have successfully provisioned the server using Terraform and I can configure it manually but I'm struggling to do it with Ansible for a large scale deployment. please any tips or pointers would be greatly appreciated. thanks

Ответить
@thecloudterminal
@thecloudterminal - 06.12.2022 13:39

Great content Thank you for making this

Ответить
@norseironworks
@norseironworks - 23.11.2022 18:54

where can I find that app you´re using?

Ответить
@johnterpack3940
@johnterpack3940 - 08.11.2022 01:53

I don't understand what ansible does that an ordinary shell script doesn't do.

Ответить
@jamesh4129
@jamesh4129 - 23.10.2022 00:41

🔥

Ответить