Ansible Lessons Ep #2 | How To Copy Files With Ansible | The Copy Module, host_vars, and group_vars

preview_player
Показать описание
Don't let me be a teacher. In Ep #2 I go over some basic scenarios of using the copy module in Ansible. We go over the using the source and destination parameters, the user and group parameters, and how to validate a sudoers file before copying. We go over how to use the backup parameter to make a backup before copying over an existing file.

We also go over more ways to define variables using the group_vars and host_vars directory structure.

Follow me!
0:00 - Intro
1:36 - The Copy Module / Copying Files
10:30 - Changing Ownership and Permissions on Files
13:50 - Validating a Sudoers File Before Copying It
16:00 - I make an Oopsie
16:55 - Fixed It
18:45 - Backing up Existing Files Before Copying Over Them
20:25 - Copying Files Using remote_src / Files NOT on the Control Node
22:20 - host_vars
27:20 group_vars
29:50 Ending
Рекомендации по теме
Комментарии
Автор

Me: Let me teach you Ansible!
Ansible: "Syntax error"
Me: Must be a lie, lets run it again.

TheSudo
Автор

great one, keep 'em up including realtime error solving ;-)

DevilDriver
join shbcf.ru