Deploy Docker & Portainer In Seconds Using Ansible!

Ғылым және технология

In this video, the seventh of the Ansible mini-series, I show how to use roles and templates to automate the deployment of Docker and Portainer. The process herein can be expanded to include any containers you wish to deploy.
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 (Roles & Templates)
00:30 - Overview of Playbooks
14:53 - Running the Playbook
18:10 - Outro

Пікірлер: 32

  • @philbos6232
    @philbos6232Ай бұрын

    You are literally scaring me - everyime I look something up on youtube, you just uploaded a video about the exact same thing! And it’s flawless

  • @Jims-Garage

    @Jims-Garage

    Ай бұрын

    Boo!

  • @rudypieplenbosch6752
    @rudypieplenbosch6752Ай бұрын

    This is really getting to be very professional, amazing stuff what you are showing us. I'm looking forward to migrate to Kubernetes, I have a test-setup running like you showed,I like your structured approach, I was never good at scripting but you showed us the way, it is the better way 100%. I have a Genoa system with 84 cores, begging for some serious load, with your tutorials we will get there. One thing we have not seen, how to dynamically grow/shrink a cluster depending on the load, that would be a great topic, also reducing the downloads of a cluster,, all these templates require the same updates, having a central intermediate storage where all this is pulled from would substantially reduce the download requirements. Anyway great stuff, not many channels that explain things this clear 🤓🤓😎

  • @Jims-Garage

    @Jims-Garage

    Ай бұрын

    Thanks, really appreciate the feedback! Just to be clear there might be better ways of doing this for production (read: almost certainly are, but this is ok for a lab haha). My next video deploys Kubernetes 😁 good point on the elastic scaling, that's going to be very tricky in a lab, something I will look at.

  • @rudypieplenbosch6752

    @rudypieplenbosch6752

    Ай бұрын

    @@Jims-Garage For home lab this is professional enough, the scripts that deploy Kubernetes is already very fancy, you added additional facyness with Ansible, i have not seen this anywhere else, this is bringing home labs to the next level, great stuff. For instance having rendering on Kubernetes would be a good usecase, claiming idle CPU/GPU power, scaling up the cluster temporarily and scaling back after render completion. kzread.info/dash/bejne/a5ej2LCqda3Kabw.htmlsi=SQ6rlYGfUsr7I7ZG

  • @Jims-Garage

    @Jims-Garage

    Ай бұрын

    @@rudypieplenbosch6752 thanks. I remember seeing something on tdarr that split rendering across a cluster.

  • @100daysofmeh
    @100daysofmehАй бұрын

    Genuinely, you've explained this pretty dam well.

  • @Jims-Garage

    @Jims-Garage

    Ай бұрын

    Thanks, I try my best!

  • @nahum35
    @nahum35Ай бұрын

    Thanks Jim!!! Great video! 😉.....regarding your last thoughts on doing video's on docker swarm or K8S i would suggest K8S!😉

  • @Jims-Garage

    @Jims-Garage

    Ай бұрын

    Thanks! RKE2 playbook almost ready

  • @TransformationApplied
    @TransformationAppliedАй бұрын

    Just found your channel. High quality content and videos with clean explanations. There is a high chance that your channel could become something like "Learn Linux TV" channel. In my opinion step-by-step video series is the way to go. I wish you much success in your journey! Great job Jim.

  • @Jims-Garage

    @Jims-Garage

    Ай бұрын

    Thanks, I really appreciate the feedback.

  • @RobertFabiano
    @RobertFabianoАй бұрын

    A really interesting demonstration would be to have a deployment just like this that had a restore-from-backup component. Like Duplicati. 😅

  • @Jims-Garage

    @Jims-Garage

    Ай бұрын

    Better imo to pull from GitHub and have the data decoupled from the infrastructure.

  • @georgebobolas6363
    @georgebobolas6363Ай бұрын

    Great video explaining all those ansible terms with simple examples 🙂

  • @Jims-Garage

    @Jims-Garage

    Ай бұрын

    Thanks 👍

  • @Anarki9891
    @Anarki9891Ай бұрын

    Great videos. Would you be able to do a video showing how to deploy a self hosted supabase instance and keycloak instance using proxmox? Specifically the oauth setup.

  • @JoeCross13
    @JoeCross13Ай бұрын

    Great as usual Jim! I have been working on trying to get a playbook for a swarm setup with portainer behind traefik for 2 days now. All the guides I can find have out of date commands or don't work for one reason or another. Can't wait for the next video!

  • @Jims-Garage

    @Jims-Garage

    Ай бұрын

    Thanks, I'll sort that for you soon. Just finishing my RKE2 playbook first.

  • @JoeCross13

    @JoeCross13

    Ай бұрын

    @@Jims-Garage Awesome! Can't wait!

  • @SB-qm5wg
    @SB-qm5wgАй бұрын

    Great tutorial. TY

  • @Jims-Garage

    @Jims-Garage

    Ай бұрын

    Thanks for the feedback 🙂

  • @MrBrutalmetalhead
    @MrBrutalmetalheadАй бұрын

    love the video

  • @Jims-Garage

    @Jims-Garage

    Ай бұрын

    Thanks :)

  • @Bealafolle
    @BealafolleАй бұрын

    You've added rocket-fuel to my homelab journey. Thank you

  • @Jims-Garage

    @Jims-Garage

    Ай бұрын

    You're welcome. RKE2 in Ansible coming soon, just trying to resolve a few race conditions...

  • @Bealafolle

    @Bealafolle

    Ай бұрын

    I am adapting your ansible website deployment to deploy nebula (slack) on all of my virtualized infrastructure to run a vpn-mesh as zero-trust infrastructure. I have mixed Headscale-Tailscale (thank you) into the mix as a means to reach my bastion host as redundancy. It is all exploration so I won't try to justify the overlapping meshes, but the segregation 'feels' like the right path for now...this exploration wouldn't be possible without the 'leg-up' that your teaching brings...again, thank you :)

  • @Jims-Garage

    @Jims-Garage

    Ай бұрын

    @@Bealafolle that's an awesome setup, very nice! Look forward to hearing how it turns out

  • @RobertoGumielGarcia
    @RobertoGumielGarciaАй бұрын

    Hello!!. I'm having issues virtualizing an nvidial40s. The system recognizes it, but when I try to install the Nvidia drivers, it doesn't let me. We work with Unreal tools, and we're unable to virtualize an environment to work with Windows 10 and Unreal Engine under Proxmox. Do you know what might be happening?

  • @Jims-Garage

    @Jims-Garage

    Ай бұрын

    Do you have any logs? It's likely a permissions issue but hard to tell.

  • @rayjames7360
    @rayjames7360Ай бұрын

    Jim, I follow all your videos and think you are doing a great job, but I really have to take exception to this one. I realize that you are showing how to use roles, templates etc. but you are using the module apt_key. This has been deprecated for some time, as a security risk. Even the Community Documentation states that it has been included only for backwards compatibility and shows examples of how it should be done without using apt_key. People who are new to Ansible need to learn the currently accepted method, not something deprecated for security reasons. Unfortunately the current method is more involved. Maybe you could do a video on the correct way to use a third-party signed repository.

  • @Jims-Garage

    @Jims-Garage

    Ай бұрын

    Thanks, Ray, you're right. I'll likely update the playbook in the background and drop a pinned comment to outline that it's updated.

Келесі