Ansible - A Beginner's Tutorial, Part 2

preview_player
Показать описание
### Ansible, A Beginner's Tutorial, Part2
Learn how to use ansible to setup a web platform.

### Links to other parts
Part 2: ... this video ...

### Ansible Module Index:

### Table of Contents
# What are roles and playbooks?

# Creating the first role

# Defining the first task

# Creating the playbook

# Running ansible-playbook

# Result of playbook-run explained

# Adding additional packages

# Adding packages using the 'with_items' method.

# Copying files

# Removing default bashrc-files

# Information about the next video
Рекомендации по теме
Комментарии
Автор

Please be aware: This video is from 2017 - most things should still work as shown, but there might be syntax changes here and there.

BensITLessons
Автор

Genuinely the most clear introduction to ansible I've seen

sergewroclawski
Автор

At least three times, I found myself saying to myself "but what about...", just to see Ben answer my question next. Well done!

JohannesBrodwall
Автор

Great introduction, thank you!

If, like me, you're running RHEL based Linux, you can just switch out apt: for yum: and I think bind-utils is equivalent to dnsutils

richardgriffiths
Автор

As of Dec 2018, state=installed is being deprecated in favor of state=present

I like how your tutorial is laid out so far, thank you for making this!

pokemanic
Автор

Extremely helpful. I found this tutorial yesterday and today I am able to perform all the basic operations i wanted to . Thanks Ben

alisajjadraza
Автор

I'm really enjoying these Ansible videos. Thanks!

ted
Автор

I agree with other comments here - clear and easy to follow instructions. I have followed your examples using 4 CentOS vm's and slowly worked my way through. Maybe when introducing new concepts, its worth declaring the syntax - like the preceeding hypens in the first playbook? Thank you!

fugazi
Автор

0:42 PROTIP: ' mkdir -pv roles/basic/tasks ' will let you make the whole directory tree at once without repeating mkdir

kingneutron
Автор

Yes, I am watching this video in 2021 and I will be too setting up my infrastructure as code with my logitec steering wheel instead of using vs code. Good tutorials, although syntax is deprecated. Kudos to Ben's

cyberfuzzy
Автор

Great Job ... a very well constructed tutorial for someone who is new to Ansible.

music___nation
Автор

Thank you so much. Your videos are so helpful!!

a.p.
Автор

Excellent tutorial. Great, simple examples, and well explained. Thanks!

cruepprich
Автор

Excellent explanation and some very good example, I think you drive little fast for beginners, paused it few times.

twincam
Автор

Ansible v. 2.9.7 suggests, that using "with_items" is depricated. So the way to go is : "apt: pkg=git, vim, ntp state=present"

mironovsan
Автор

So, so .. It could be better if you explain where did you get those modules(ansible-doc, online, etc..), and how to see all parameters available.. Cheers

GeorgeKirko
Автор

The font is so small the yml "-" dash looked like a dot "."

dgzwtps
Автор

Hey. As i said im totally new to ansible. Could you tell me what can cause a "raw module does not support environment keyword" error??

davidnagy
Автор

Correct me, if I am wrong but, for me the "creates" equals (here) to "if [ ! -f /root/.bashrc_backup ]; then; mv /root/.bashrc{, _backup}; fi".
Great as usual, but here you may confuse some a bit because you don't remove any file but just rename the existing .bashrc (in order to render it useless).
Hint for SUSE-Users: Never do it like this on a network interface file like - SUSE reads from the beginning of a file name!

wagnerstefan
Автор

hey. hope you gonna answer soon. did the systax for yml files changed? i copy exactly what you do but when i try the playbook command at like 2:30 i get a systax error saying that something is wrong with the hosts: all

davidnagy