Automate your Docker deployments with Ansible

preview_player
Показать описание
Ansible Docker Deployments for your Servers made easily! In this video, I'll show you how I've used Ansible to automate my web server deployments. We're deploying Portainer, Watchtower, and a WordPress Blog. #Ansible #Docker #Watchtower

Follow me:

Timestamps:

00:00 - Introduction
01:05 - What we do in this tutorial
01:56 - Pre-Requisites
04:47 - Set up our Ansible Environment
08:23 - Install Docker on our remote Server
11:44 - Deploy Portainer
15:19 - Install Watchtower
16:35 - Deploy WordPress

----
All links with "*" are affiliate links.
Рекомендации по теме
Комментарии
Автор

Note, if you haven't installed ansible before via pip and you're doing a fresh installation via pip, make sure you add this line to your .bashrc or .zshrc file!
export PATH=$PATH:$HOME/.local/bin

christianlempa
Автор

Excellent Tutorial for Ansible and Docker. Thanks Again Christian.

unitpsyclone
Автор

Благодарю, очень полезное видео!!
I grateful to you for this a very useful video!

devkgmb
Автор

So much interesting topics on your channel. Subscribed!

annahri
Автор

Great video! Docker stack definition in an Ansible playbook?! Wow! So much potential to automate deployments and update a running stack.

Phillisteum
Автор

So I'm just diving into what I need to setup a home lab. Honestly the technical stuff is a treat. Drilling holes for and mapping the cables and drywall is the unwanted brain challenge. I am just getting my feet wet into deploying virtual machines using, home assistant, Linux cli, docker and... well basically everything your channel is about. But my skills are currently just trying to swim through Linux and docker and docker networking. I was looking through some ansible content online and as we tech guys are... we understand why automation is powerful. We understand the power of macro commands and scripted deployment. But as selfish creatures with undefined capacity I still didn't understand why ansible? As these questions are always user defined we just need someone to show how they use it and why. I don't know what it is exactly in your video that made me connect the dots and shout ah hah! But I want you to know it happened and I want to thank you for your time and effort.

Ultimaus
Автор

Enjoyed your video, was not able to find your docker-install.yaml it your boiler plate folders but did find enough to get docker installed then was able to read your video to get the python package manager and python sdk installed. Overall this video was well done and had a lot of information in it. Thank you.

rob
Автор

Cool things shared by Christian as always.

TuxTechLabs
Автор

Thanks a lot. Excellent explanation:) :)

Mohan-nfcu
Автор

Question: If you are not using vagrant, which many don't, what do you enter in the config file instead of the vagrant private key file path?

jeremyr
Автор

Sehr gutes Video... hast die ein Abo verdient

andyruiz
Автор

great tutorial as always! I ran into an error similar of what you talk about at 14:30, but mine occurred because I was adding my ansible user to the docker group just before using the docker_container module (I'm trying a zero-to-homelab playbook here)... all I had to do to solve this was to add a reset_connection task to ensure the ansible user had the right permissions.

andreaghensi
Автор

Nice video, got some ideas from it! thank you. One question, which theme are you using in you're WSL ZSH it looks nice!

SMAW
Автор

Thank you for this video. I'm following this video and I got a quick question: in ansible.cfg file you specidied remote_user = vagrant. I'm not using vagrant, so I wonder if remote_user should be a regular user which you create when installing Linux or if it should be a root user? Thanks!

yolo-cars
Автор

Thanks for this tutorial.
Could you please create a tutorial to install collabora on nextcloud (installed on docker)?

chrissaji
Автор

I'm surprised even after a year later after this video that the "installing" documentation don't give an option to get Ansible as a container image, so people don't really have to care what python version is installed or whether it's even installed.

haralc
Автор

Hi Christian, when using this playbook it fails at "No package matching 'docker-ce' is available". How would I circumvent this issue? Thanks in advance!

khurrumbaloch
Автор

What are you using for yaml in vscode to lool like that

deanxaka
Автор

Can u give us tutorial how to connect another server to main portainer and how best practice use watchtower if we want to manage docker in few different server?

fauzifirdaus
Автор

What shell prompt do you use for nice upper blue part?

Angelas