Deploy a Website With Ansible and Docker

  Рет қаралды 4,473

Jim's Garage

Jim's Garage

Күн бұрын

In this video, the fifth of the Ansible mini-series, I show how to copy files to a remote host and deploy a web container with Docker, all using Ansible.
GitHub Playbook:
github.com/JamesTurland/JimsG...
Recommended Hardware: github.com/JamesTurland/JimsG...
Support this channel to get access to perks:
/ @jims-garage
Discord: / discord
Twitter: / jimsgarage_
Reddit: / jims-garage
GitHub: github.com/JamesTurland/JimsG...
00:00 - Introduction to Video
00:40 - Playbook Overview - Copy
09:43 - Running the Copy Playbook
12:27 - Running the Delete Playbook
15:07 - Outro

Пікірлер: 35
@SB-qm5wg
@SB-qm5wg Ай бұрын
Great explaining of the steps. Thank you.
@Jims-Garage
@Jims-Garage Ай бұрын
Thanks, glad it helped.
@nahum35
@nahum35 2 ай бұрын
Hey Jim, Thanks for this great video, Looking forward for more Ansible videos combining Kubernetes tasks in the near future👌👌 👌
@Jims-Garage
@Jims-Garage 2 ай бұрын
Thanks, a few more videos covering the basics before we get onto the exciting stuff
@nahum35
@nahum35 2 ай бұрын
@@Jims-Garage That's the way, cheers!! 😉😉😉
@roelofmol8548
@roelofmol8548 2 ай бұрын
Nice video 👌 been trying to make my home lab as code and this helped a lot.
@Jims-Garage
@Jims-Garage 2 ай бұрын
Thanks, hope it helps
@PCMagikHomeLab
@PCMagikHomeLab 2 ай бұрын
MAN, like always, thumbs up!
@Jims-Garage
@Jims-Garage 2 ай бұрын
Thanks, appreciate the feedback
@PCMagikHomeLab
@PCMagikHomeLab 2 ай бұрын
@@Jims-Garage Jim, can I be honest? I like Your style, You try to predict all of difficulties in homelabing. And Your tutorials are amazing. Never stop, flow is in You. Let yourself be carried away by this story. Thanks a lot of another pice of Your expirience!
@Jims-Garage
@Jims-Garage 2 ай бұрын
@@PCMagikHomeLab really appreciate that feedback, good to hear that I'm striking the right balance. I'm eager to start the next series on building out the new lab. Another opportunity to start from scratch with a more advanced set-up and bring you guys along.
@PCMagikHomeLab
@PCMagikHomeLab 2 ай бұрын
@@Jims-Garage I think it's really good idea, something simple for everyone. Sometimes I think to much, and simple solutions are the best🤔
@javisartdesign
@javisartdesign 2 ай бұрын
thanks and great video. Just to improve your Ansible script, you should consider using variables, for example for the folder owner and group it might be better to use {{ ansible_user }} instead hardcoding the user
@Jims-Garage
@Jims-Garage 2 ай бұрын
Thanks, I agree. I am going to cover variables, roles etc soon
@rayjames7360
@rayjames7360 Ай бұрын
I could not get this working, but found the answer on the Discord channel. I had to use version "community.docker.docker_compose_v2" instead of "community.docker.docker_compose". Still not sure of all the reasons, but I think because on my Linux Mint server I have a manually installed version of Docker and Docker-compose. I am not using docker-compose installed with pip3. Thanks to the help I got on Discord, it is now working.
@Jims-Garage
@Jims-Garage Ай бұрын
Ok great. I think it's because docker-compose is deprecated and instead it's docker compose. I'll need to fix that.
@rayjames7360
@rayjames7360 Ай бұрын
@@Jims-Garage I have "Docker Compose version v2.27.0" which is the one I am actually accessing. I was confused because I had also used pip3 which had installed "docker-compose-1.29.2" but apparently this is not what is being used.
@michaelschalck
@michaelschalck Ай бұрын
Thanks for a great video Jim :) Was struggling a bit until it cam to my mind "maybe i should have traefik installed on my docker host first, before the nginx container would spin up" After that everything worked like a charm. Looking forward to start the kubernetes cluster part. :)
@Jims-Garage
@Jims-Garage Ай бұрын
Thanks 👍
@E5SEFUSAR
@E5SEFUSAR 2 ай бұрын
Thanks for your hard work on this stuff mate! I would have been really nice to also have Ansible manage that DNS record for that demo website too!
@Jims-Garage
@Jims-Garage 2 ай бұрын
Thanks for the idea! It should simply be a case of copying my Traefik video files over and deploying that instead. Edit: ooh just realised you mean adding the record to local DNS. Sure, that should be doable by performing a docker exec and modifying the record. I'll have to experiment.
@RobertFabiano
@RobertFabiano 2 ай бұрын
Was going to say, but someone already did...😂
@shootinputin6332
@shootinputin6332 14 күн бұрын
Hi, Jim, I might have missed it, but have you done a tutorial on pulling down compose, playbook (and other) files from a public/private github repository using ansible-pull? Say, for example, where you did the builtin.copy for the nxginx compose to the remote, it would be cool if we could grab it from our github repos instead
@Jims-Garage
@Jims-Garage 14 күн бұрын
I haven't, I am considering doing it in future. It's thankfully pretty simple.
@jdratlif
@jdratlif Ай бұрын
How long have you been using ansible? Is this something you use in your day job?
@Jims-Garage
@Jims-Garage Ай бұрын
On and off for a few years, only in a homelab capacity. I don't work in IT Ops.
@jdratlif
@jdratlif Ай бұрын
@@Jims-Garage I'm really surprised to find out you don't work in IT. You are clearly very dedicated to your home lab. There's a lot of things I don't think I would ever have learned if I weren't using them at work.
@Jims-Garage
@Jims-Garage Ай бұрын
@@jdratlif I do work in InfoSec but don't really use any of this stuff in day to day. I do it to understand IT Ops.
@ducki8845
@ducki8845 2 ай бұрын
little nitpicking: 4:15: you forgot to explain the "enabled" ;)
@PW-72648
@PW-72648 2 ай бұрын
😏ansible copy?
@Jims-Garage
@Jims-Garage 2 ай бұрын
Fixed 😁
@aliencord8259
@aliencord8259 2 ай бұрын
all lower case... super low key copying
@Jims-Garage
@Jims-Garage 2 ай бұрын
Oops I forgot to change the title 😂
@RazoBeckett.
@RazoBeckett. 2 ай бұрын
Too Late uploads
@Jims-Garage
@Jims-Garage 2 ай бұрын
Let me know your schedule and I'll try to satisfy it 😉
Update All Your Computers With Ansible - It's Easy!
13:12
Jim's Garage
Рет қаралды 8 М.
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 47 МЛН
Alat Seru Penolong untuk Mimpi Indah Bayi!
00:31
Let's GLOW! Indonesian
Рет қаралды 7 МЛН
OMG😳 #tiktok #shorts #potapova_blog
00:58
Potapova_blog
Рет қаралды 3,6 МЛН
Универ. 13 лет спустя - ВСЕ СЕРИИ ПОДРЯД
9:07:11
Комедии 2023
Рет қаралды 6 МЛН
Internet Upgrade Time, It's CRAZY Fast! (Nearly!)
12:32
Jim's Garage
Рет қаралды 6 М.
Self Host Tailscale with Headscale - How To Setup
21:51
Jim's Garage
Рет қаралды 57 М.
Zed Editor Overview | Linux Quick Start
10:34
Brian Cooper
Рет қаралды 21 М.
Dockge: The New Docker Manager You Need To See!
22:23
DB Tech
Рет қаралды 84 М.
Deploy Docker & Portainer In Seconds Using Ansible!
19:26
Jim's Garage
Рет қаралды 5 М.
Getting started with Ansible 03 - Setting up the Git Repository
15:53
Learn Linux TV
Рет қаралды 130 М.
Home Automation - A Beginner's Guide
25:17
Jim's Garage
Рет қаралды 7 М.
Телефон в воде 🤯
0:28
FATA MORGANA
Рет қаралды 1,2 МЛН
Cadiz smart lock official account unlocks the aesthetics of returning home
0:30
SSD с кулером и скоростью 1 ГБ/с
0:47
Rozetked
Рет қаралды 219 М.