Deploy a Website With Ansible and Docker

preview_player
Показать описание
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:

Support this channel to get access to perks:

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
Рекомендации по теме
Комментарии
Автор

Hey Jim, Thanks for this great video, Looking forward for more Ansible videos combining Kubernetes tasks in the near future👌👌
👌

nahum
Автор

I could not get this working, but found the answer on the Discord channel.
I had to use version instead of
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.

rayjames
Автор

Great explaining of the steps. Thank you.

SB-qmwg
Автор

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

javisartdesign
Автор

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. :)

michaelschalck
Автор

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

shootinputin
Автор

Nice video 👌 been trying to make my home lab as code and this helped a lot.

roelofmol
Автор

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!

ESEFUSAR
Автор

How long have you been using ansible? Is this something you use in your day job?

jdratlif
Автор

little nitpicking: 4:15: you forgot to explain the "enabled" ;)

ducki
Автор

all lower case... super low key copying

aliencord
welcome to shbcf.ru