This web UI for Ansible is so damn useful!
HTML-код
- Опубликовано: 3 июн 2024
- Ansible Semaphore is the perfect tool for automating your servers, applications, and clean up tasks with Ansible Playbooks. In this video, I'll quickly show you how to install it and some of the things you can do with it. If you're new to Ansible, I recommend checking out some of my older videos first to get some foundational knowledge. Let's get started automating your Homelab with Ansible Semaphore! #Ansible #Homelab #Automation
Teleport-*: goteleport.com/thedigitallife
Related Videos
• Simple automation for ... , • Automate your Docker d... , • Automate your virtual ...
________________
💜 Support me and become a Fan!
→ christianlempa.de/patreon
💬 Join our Community!
→ christianlempa.de/discord
________________
Read my Tech Documentation
christianlempa.de/docs
My Gear and Equipment
christianlempa.de/kit
________________
Timestamps:
00:00 - Introduction
00:47 - Advertisement-*
01:33 - Install Ansible-Semaphore
04:09 - How I'm using it in my Homelab
07:51 - How to set up Ansible-Semaphore
13:52 - Set up Task Templates
________________
All links with "*" are affiliate links.
as always, ever so informative and aspiring for us, homelab admins... Thanks, Chris. Keep up the great work 👍
Excellent video.
As you mentioned, it would be nice to have a video about GIT and the differences between github and gitlab, also selfhosted options like gitea.
So far your content is rock solid and already a source of knowledge that i use for reference on my homelab adventures.
Great video as always! And YES. I would LOVE a GIT tutorial. I still have not fully wrapped my head around that!
Awesomeness! Thanks for the very useful presentation Christian. Ansible is so powerful and useful.
Deine Videos und deine Arbeit liefern so viel Mehrwert. DANKE CHRISTIAN !
This is something that’s been on my “to look into” list for about a year now , thanks for the video
Great vid. Thank you. Exactly what I was searching for! A github tutorial vid would be very helpful for homelab networkers, engineers and hobby it-fans!
This is exactly what I have been looking for... Now my week is booked for Ansible.
Thanks for this. I stumbled upon this the other week and was something I wanted to setup, and hoped would be easier to use ansible with. Also a big yes please to a nice git tutorial, that would be fantastic.
I have been putting off Anisble. Until now. Thanks Christian!
Seems almost like an AWX/Ansible Tower light version. Nice video as always. Thanks for all you do for us!
Thank you Christian your work is really appreciated.
Great video Christian, I’m installing this tomorrow!
i used this about 6 years ago in its very early beta-alpha version :D
nice to see it matured so much..
Thanks for the demo/review of Semaphore. Have heard of it, but not used it. Will have to give it a look for home use. It does appear to be something of AWX-lite.
Wonderful, this video is just as I got into Ansible. I would really love a video on Git with specifics for the Ops guys, how does it improve the usual processes
Thank you, this was useful. I don't use too much UIs but this is really cool.
Awesome video as usual.
Thank you Chris🍻
Great video. I have used AWX (Ansible Tower open source) and also Rundeck as Ansible controllers before. All are great and have good features, but this looks very cool! Thanks for sharing Christian, I will try out for my home setup.
Sorry just wondering why you need both of them? AWX is not able to act as a controller?
Sir, I am novice here what is your experience with AWX vs RunDeck vs this tool Semaphore?
I’m using it from the last year. Great tool for sysadmins and devops teams 👍
Thank you for sharing this! For awhile, I was using AWX and then switched to Rundeck when AWX moved to requiring k8s. But while Rundeck is great and I love it, it's a little overkill. This fits the bill perfectly!
I have been running semaphore for over a year and it’s been rock solid in terms of executing scheduled tasks and it’s very light weight. However it has a few annoying bugs that haven’t been fixed that impact me so I’m actually evaluating rundeck. I also like that rundeck can do more than just ansible but hate that it uses Java and takes 2 GB of memory out of the box with no tasks running. That’s like 4x the memory of my next most memory hungry container. It feels bulky to run in docker which is a shame.
thanks for the demo and update, have a great day
I've used Semaphore for almost a year now, it lack some docs and some functions but other than that it is a nice GUI for Ansible playbooks. Note that i use it at work in small scale (for now). The server is easy to install and maintain, friendly GUI, nice to have the Ansible code in a repository (otherwise people just hack in the terminal/manual work).
What a great video, I love it. Not sure if someone covered it already, but the demo at the end referred to UPDATING the apt packages, but it actually UPGRADED them. Big difference in the apt world. One is checking for available updates while the other is applying them. I was surprised when you checked on one of the servers and found that no upgrades were pending.
Hi Chris... YES absolutely... We all would LOVE you do a tutorial on GIT... Please !!!
your channel is gold
Yes pleasee, I would really like a video on gitops explaining basic concepts (maybe with demos). Also Nomad, there aren't many videos about it
Thank U master…. I appreciate your videos 🎉🎉🎉
Appreciate the info as always 🙏
Thank you for this video. I am currently running ubuntu on my servers and managing updates with canonical landscape. This is exactly what i searched for because i am moving my servers from ubuntu to debian and needed an easy tool to automate my updates and some other tasks. As always a verry good and informative video. Vielen Dank
Thank you so much! I'm glad you enjoyed watching it :)
awesome, will check it out soon.
Amazing! As always!
Thanks again!
A GIT tutorial would be very helpful. Had problems to integrate it with Ansible.
Great video Chris, a Git video would also be great. Thanks
Great video, I would also love to see a "Git for Sys Admins" type video!
Very nice. This could be a great way to help a team of sysadmins not having to worry too much about routine tasks.
And yes, I would like to see a video on git. 😅
This was very useful. Thanks so much for sharing!
Glad it was helpful!
As always you post great videos.. excellent app.. I will start to use it
This project has come a long way in the last couple years
That's a good idea the Git Video!
Thanks for this tutorial, I'm gonna use this at my job ahah!
Great video, Christian! I have already automated most of my machines in my homelab with ansible. Mostly using ansible-pull in order to avoid the need of a central server that controls all the ansible playbooks. Because that's what puzzles me the most when thinking of tools like Semaphore: you need a machine to install it on, preferably using Docker, and you also mentioned that it is recommended to have it behind Traefik or Nginx. I fully agree. But that raises the chicken and egg question. I want every machine in my network to be controlled and configured by Ansible playbooks, including my reverse proxy, and even the Semaphore server itself 🤪
Yeah that's a problem :D I think you should have the rev proxy already in place.
Well, you put the files on your laptop and deploy the server ones to install some git server, webserver, docker, ansible, etc.
After that log into this and connect it to the same server and put the files in a repo and delete the old files from laptop.
I like to understand better how git works!! Great video BTW!
Thanks alot Christian 🤞
Hi Chris, This is very helpful for beginners like me. Thanks. I could not find the sample file under the boilerplates/ansible/installation repo. Have they move to a diff folder?
Great vid as always and informative. I have dabbled with ansible a few times and keep navigating back to command line. This is enough to roll one out again and see. Question - are your playbooks available on your GitHub anywhere? I love a good set of playbooks to beg, steal, borrow :)
Thanks Christian!
Hi, Christian
Unfortunately, since Red Hat has been taken over by IBM, it is no longer possible to use Red Hat products. Especially Ansible Tower, but this semaphore looks very good and has good features
You also showed this in the best possible way
Thank you very much🙏👌🙏👌💪
Hi, thank for the video! A video on how to deploy a self-hosted sentry would be great
Great video! TY!
Hi Chris, great video! Quick question, for some of our devices that are on LTE we can't ssh, is there any way around that? maybe using another connection plugin that's not ssh?
Hey Christian, thanks for finding this... very interesting. Given this is sponsored by teleport, how would you use this with teleport providing the access? I'm very interested in how that would work.
Thank you for the great explanation. 😊
Could you advise how to run playbooks through the JUMP server? Is it possible in the Semaphore?
well done. great vid. go forward with automation ;-)
That T-Shirt is awesome
Oh yeah, thanks :D It's indeed amazing
Great video as always !
In a homelab setup, this is really great but in a professional context, the constraint of having the ansible binary on the semaphone server is so unfortunate.
The flexibility to have a remote ansible runner is so much more powerfull and unlocks the ability to use different ansible versions.
This is particularly useful when u have large teams that each maintain a bunch of playbooks and don't have the time or resources to all conform to a specific ansible version.
Remote ansible runners also allows u to manage client infrastructure so much more easily.
Thank you! I think the target group for Ansible Semaphore is really the small lightweight environment, where this might not be a big deal. But sure, that type of feature would be awesome.
as of today you can use runners
Thanks for sharing, great stuff 👍👍. A github vid would be highly appreciated. As you mentioned it's not very intuitive learning all the different tasks and steps, at least for me.
Hi Chris, great video. Would you be able to cover Ansible AWX? I think it would be beneficial for the community since that project is used more in enterprise setups than this. Anything else keep up the great work love the vids.
AWX is also a total pain to host and use :)
@@BenjaminArntzen 2% less pain on rancher .... lol
@@ThePswiegers s/less/more/ 😞
Not sure whether AWX/Tower is worth the trouble in a homelab. It's intended for environments where auditing, enforcement, privilege seperation etc. are a concern. In a homelab you are usually the only one making changes, you know who screwed up, if something is wrong.
You are provisioning the hardware, the VMs and containers, you write the configs etc. Although I sometimes whish for it, but no tool can protect me from my own stupidity. There's no one arround who knows better and AWX doesn't change that.
It does solve one problem though: in a sufficiently hardned environment you don't want to do all the admin work from your workstation. You'll want to do that from a jump host. AWX/Tower can be that jump host, but just SSHing into a small VM, pulling the latest versions of your playbooks and running them by hand is way simpler.
@@BenjaminArntzen if you use the latest version of tower you can run with only one docker run command....AWX in latest version is another story
Legend! Thanks for the video.
Thanks :D
That is really cool. TY
While I like Semaphore I'm much more into AWX, I like it's Operator and its Kubernetes integration. It will spin up a new container for any playbook run. You can create custom runners with custom ansible galaxy roles and stuff, too. It's pretty slick.
Great Video!!! Please do the Git video you mentioned. That would be a huge help!
Hi Chris , do you have any playbook examples on only upgrading security patches for ubuntu servers specifically ?
8:04 "real IT guys should never work without Dark Mode" this is actually true 💯, i enjoy your videos more coz even the background behind you is dark 🌙
Glad you enjoy it!
Was just wondering what you matrix looking background is for your mac?
This is so cool!
It's basically Jenkins/Gitlab Pipeline focused only on Ansible. Change my mind!!!
Yes but with Maintained software and no legacy and vulnerable code…
Nice video, I started use semaphone.
Hey Chris, great video. Can you please shed some light on using CLI arguments in ansible-semahpore? I have a requirement wherin I have to use overriding CLI arguments. It would be very helpfull if you give me more info on this or if you could point me to a video. Thanks in advance.
what kind of storagetechnology do you use for your kubernetes environment in your homelab? local, nfs or ceph/rbd???
Now we need Web UI for Terraform
New subscriber here absolutely love the content. Also I concur I work in IT and Dark mode is everywhere for me 😂
Very informative
Thanks!
Hi Christian, I'm not sure if you did this on purpose, but the playbooks you mentioned are only in the ansiblesemaphore branch, not the main(default) one. Looks like some folks are looking for them, based on the comments below.
Would have been nice to see something about dynamic inventory. Use cases: terraform -> ansible, or maas -> ansible.
Hi Chris, I really enjoy always your videos.
I was just thinking how this is different to AWX or Jenkins ?
It much easier
Your tutorial is great, thank you for your effort. Just a quick question, I also automate the apt-update but within Ubuntu 22.04 server update process, you must click OK to proceed at the prompt screen for some questions about restarting a certain services. How do you preset those option to automatically "OK"? Again, thank you!
Yeah, sometimes, it depends on the machine. On important ones, I just do the updates, but reboot them at maintenance timeframes. On demo servers, I just update and reboot automatically.
Hi Chris, I would find it very useful to have a github tutorial, especially I noticed during this video how you created your apt update script in your git video's repository from your vscode, the linking here would be really helpful to me. Thx Andrew
Hi Christian,
vielen Dank für diese geile Software.
Meinen heutigen Arbeitstag habe ich damit verbracht, alle scripte umzubauen und Semaphore zu pflegen.
Jetzt darf meine Endlosliste in RoyalTSX verschwinden
Vielen Dank für deinen Support! Freut mich sehr dass dir das Video auch auf der Arbeit weitergeholfen hat 😊🙏
Yes, I want this video about git
I worked out "git for sysadmins" the hard way by trial and error and pestering some of our developers when I got stuck but video resource to point new team members to would be amazing. You should do it :)
What dashboard are you using in 4:47 ? Nice video !
I would like to know how you set Ansible to notify you when a server needs a restart after update/upgrade
Christian, I'm stuck passing github action secrets into the fifsky/ssh-action. It always comes out as a blank value when 'docker compose up' runs. I've also tried appleboy/ssh-action which is a little different but I get the same result. I am able to pass non secret vars like env vars defined in the github action workflow. Any advice?
Great videos! Thanks!
+1 for Git video
About checking the disk space ,maybe a node_exporter and then define an alert in Prometheus will be a more better option?
Sure, it was just an example :) Alerting is still a topic on my list to do.
loveeeeddd itttt❤
Was looking for a way to us a jump box with the inventory. I setup an ssh config on the ansible server and am able to connect through the terminal using the jump servers. Unfortunately using the Web UI it is not working.
Hi, Thank you for such an informative video. i notice that at the beginning you are using a web UI that by clicking on any ICON you can connect to a web console, cli, or any interface that your homeland has. so is the teleport UI?
Thanks! :) I believe that was my homelab dashboard
I would like to see a Git tutorial :) , great video.
How are vault passwords handled?
Can i change variables stored in a var.yml for the playbook for each run easily? Or do they have to be pushed to git before i can execute the playbook?
Can i store passwords on a user level so that a playbook can always use the password from a user to authenticate against a service like vSphere? That would be a nice feature.
You are a GOLD !!!
Finally, I got everything up and running. However, it was not an easy task. Like others who experienced problems, i spend many hours to figure things out. The first problem was with the docker-compose file. I experienced a problem using the database that was installed with the docker-compose files. i already explained how i solved it. The second problem was the SSH connections with Github. First, i make my repository public so that i didn't need to use SSH. That seems to work. Second was the SSH connection to the target server. After hours i finally found out that you have to use the private and public generated keys of the container where you installed Semaphore and not of your Windows, MAC, or whatever machine where your browser is installed, because you are running Semaphore in a container. Once i figure that i was able to connect through SSH to Github and also to the target machine. You can copy the public key to the target machine with the SSH-copy command from the command line of your container after you generate a key. Last but not least, in the video Christian use VS code to move his playbooks to Github. He didn't mention that if you don't use VS-code or you don't know how to do it with VScode you can also do it in GitHub self by uploading it. I hope this helps.
This is where I’m having trouble too. I suspected it has to be the keys generated from inside the container it’s running on not the host key. Are you able to explain this further? Need help understanding it more
@@mohammedabdullahi5145 ever get any answers with that? having that problem now
Very neat!
I'm just starting to learn more about Ansible as I don't really deploy new containers/VMs all that often, but it would be nice to be able to automate and synchronise my user accounts, post install, to SSSD.
Thank you.
Would love a Git video
Protip: make ansible-lint a habit. It will improve your playbooks and catch bugs early
AWX while maybe a bit more complex has more features and is backed by Red Hat so development is going to keep expanding and improving it
Finally, something simple to install and use rather than having to resort to Ansible Tower (or AWX).
How is it compared to AWX?
@@kavishgour3267 second the question
If you have a Kubernetes cluster, AWX installation is super easy, barely an inconvenience! ;)
Its featureset is also better and it's also more widely used.
@@LampJustin This is true, yes. But that requires that you know Kubernetes.
excellent video, as usual thank you chris😊
Thanks Noho Hank!
about your advertising... How did you automate adding a newly created server to teleport? Any ansible playbook for this?
I would absolutely love a github tutorial, i'm not a developer but i would love to know how to make use of it for my linux vm's and docker containers etc