Complete Ansible Semaphore Tutorial: From Installation to Automation

  Рет қаралды 69,108

Learn Linux TV

Learn Linux TV

Күн бұрын

Do you want to make server deployment easier? Consider Ansible Semaphore: An awesome project that provides a full GUI experience around Ansible, enabling you to take your automation game to the next level. In this video, Jay will show you how to install Ansible Semaphore, set it up, and more!
Buy Linux Stuff!
The official shop has just been updated with new Linux-related products ➜ merch.learnlinux.tv
Support the Channel
Show your support for Learn Linux TV and get access to exclusive perks!
• Become a Channel Member ➜ learnlinux.link/member
• Become a Patron ➜ learnlinux.link/patron
Official Stores and Merchandise
• Linux Merch ➜ merch.learnlinux.tv
• Latest book: Mastering Ubuntu Server ➜ ubuntuserverbook.com
• Linux stuff from Amazon ➜ learnlinux.link/amazon
• Awesome Pi-powered KVM ➜ learnlinux.link/tinypilot
• 5% discount on LPI exam vouchers ➜ learnlinux.link/lpi-voucher
Note: Royalties and/or commission is earned from each of the above links
Time Codes
00:00 - Intro
00:45 - Updated Shop (commission earned)
01:44 - Some basic information about our project
04:31 - Installing MariaDB
06:22 - Using mysql_secure_installation to secure mariadb
08:57 - Setting up a MySQL database for Ansible Semaphore
09:47 - Creating a database user for Semaphore
12:02 - Installing Ansible Semaphore
14:11 - Creating a config file for Semaphore
18:54 - Installing Ansible on Debian 12
19:20 - Running Semaphore from the shell
21:21 - Creating a Systemd unit for Semaphore
24:47 - Setting up a project in Semaphore
27:13 - Support message
27:46 - Creating a Production environment in Semaphore
28:37 - Creating an SSH key
31:10 - Setting up an Inventory, and a Task Template
32:29 - Configuring "sudoers" on the Ansible target
35:00 - Testing SSH connectivity between the server and target
36:52 - Adding a Playbook to our Git repository
38:50 - Installing NGINX
40:50 - Setting up NGINX as a proxy for Semaphore
44:51 - Setting up a TLS certificate for Semaphore with Let's Encrypt
Relevant Links
• Check out Ansible Semaphore ➜ www.semui.co
• Semaphore Releases Page ➜ github.com/ansible-semaphore/...
• Official blog post for this video ➜ learnlinux.link/semaphore
Full Courses from Learn Linux TV
• Linux Crash Course series ➜ linux.video/cc
• Learn how to use tmux ➜ linux.video/tmux
• Learn how to use vim ➜ linux.video/vim
• Bash Scripting Series ➜ linux.video/bash
• Proxmox VE Cluster Full Course ➜ linux.video/pve
• Learn Ansible ➜ linux.video/ansible
Boost your Linux skills with these stand-alone tutorials
• Essential tweaks for ALL Linux Servers ➜ linux.video/all-servers
• Install Arch Linux ➜ linux.video/arch-guide
• Use Ventoy to create a multi-distro flash drive ➜ linux.video/ventoy
• Browse the web from within your Linux terminal ➜ linux.video/term-web
• From Zero to Proxmox ➜ linux.video/zero-to-pve
• Check out Neovim ➜ linux.video/neovim
• Systemd Deep Dive ➜ linux.video/systemd
• Systemd Timers ➜ • Automate Your Tasks wi...
• Installing an operating system for Raspberry Pi ➜ linux.video/pi-imager
• Connecting to a Linux server via ssh ➜ linux.video/ssh
• Linux permissions ➜ linux.video/perms
• OpenSSH Guide ➜ linux.video/ssh-guide
• 10 Linux Terminal Tips and Tricks ➜ linux.video/cli-tricks-1
• Over 15 Terminal Tricks ➜ linux.video/cli-tricks-2
Learn Linux TV on the Web
• Main site ➜ www.learnlinux.tv
• Community ➜ community.learnlinux.tv
• Enterprise Linux Security Podcast ➜ enterpriselinuxsecurity.show
• The Homelab Show Podcast ➜ thehomelab.show
• Content Ethics ➜ www.learnlinux.tv/content-ethics
• Request Assistance ➜ www.learnlinux.tv/request-ass...
Disclaimer
Learn Linux TV provides technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). Learn Linux TV is not responsible for any damages that may arise from any use of this content. The person viewing Learn Linux TV's content is expected to follow their best judgement and to make their best decisions while working with any related technology. Always make sure you have written permission before working with any infrastructure. Also, be sure that you're compliant with all company rules, change control procedures, and local laws.
#CloudComputing #DevOps #Ansible

Пікірлер: 36
@jdratlif
@jdratlif Ай бұрын
I absolutely love your video style. No obnoxious loud intro music. Video transitions are nice, bespoke, and clear. The terminal and browser windows are framed appropriately so you can actually see what you're doing. You don't place your face in a square covering up 15% of the screen (sometimes important information). Your speech is clear, quick, concise, but also thorough; you don't skip over any details or make any assumptions about what your viewer knows. Please tell me which puts the most money in your pocket: Pateron, KZbin membership, or merch. I definitely want to support this kind of content creation. P.S. I would LOVE to see a video on how you capture / edit your videos. Your style is one I aspire to, but am not close to matching. I usually just zoom in on my terminals so the text is more visible, but I like your giant terminal in the middle better. If I can figure it out, I'm totally going to use that in my videos.
@prashantsingh281
@prashantsingh281 Ай бұрын
, 😂pandra ex j
@Dettol68
@Dettol68 Ай бұрын
The absolute best tip of all timed at 13:13 - thank you!
@kelownatechkid
@kelownatechkid Ай бұрын
This is awesome, didn't realize that foss ansible gui had progressed this far. thanks !
@RonnieRedd
@RonnieRedd Ай бұрын
Very well done Jay!
@peterwassmuth4014
@peterwassmuth4014 Ай бұрын
Awesome Thank you for Sharing! 💯✴
@lamar9525
@lamar9525 Ай бұрын
Great YT! You have so many, I didn't find Debian Server & SSH Install.
@0r_1x
@0r_1x Ай бұрын
Jay: "Hmmmm, what's that you're doing this weekend? Ooooh, I got you!" Me: "Alright, I told myself I'd figure out the Ansible front end this weekend. The guys are still struggling with the CLI and I need to turn this project over. I'll try Semaphore again, but first, what's going on with KZbin toda..... SON OF A...." As always, Thank you Jay!
@mikro2k6
@mikro2k6 Ай бұрын
Hi Jay: The tutorial is amazing, I think also would be as convenient if not more using Caddy as automatically configure the SSL Certificate without need certbot. Great Job Jay!
@XytrasLLane
@XytrasLLane 15 күн бұрын
Great learning video. Thank you!
@mrbb1731
@mrbb1731 25 күн бұрын
Great video as always Jay. Thank you. Question: Is there a way to take an existing server that is already built and configured and create a playbook automatically? I'm still learning Ansible so maybe a newb question but just curious.
@magicmanj32
@magicmanj32 Ай бұрын
have struggle with setting this up in the past, with permission errors, will try your method on my next day off, thanks Jay, you explain so well
@menruletheworld
@menruletheworld Ай бұрын
One of the first lessons I learned when I started in the Unix/Linux world about 27 years ago is that about 99% of all problems are related to permissions in some form, be it file, acl, or SeLinux/AppArmor permissions, it usualy allways boils down to that.
@lucass8119
@lucass8119 Ай бұрын
@@menruletheworld Yes, permissions are hard/complex. I think this catches Windows users off guard, as they may be used to just pressing the magic "run as admin" button. But, the truth is that security and permissions, as a domain, is complex. I'd be wary if it wasn't complex - that, to me, signals something is misconfigured to be far too lenient.
@mayday_excelgroup
@mayday_excelgroup Ай бұрын
Dear Jay, all your series are just awesome! I am so exited to find out such informative content. I would like to ask you for a tiny favor. I have watched almost all your linux series and began with ansible - this is because I want to be a DevOps engineer. Hence, could you please guide me to some of reliable course based on very real practical samples so I can master and become at least junior DevOps engineer by next few months. Thank's in advance and Best Regards!
@drbyte2009
@drbyte2009 Ай бұрын
GREAT video!. I can't find the alternative config file for nginx on the blog post ????? Do i need new glasses 🙂🙂 The last item on the page is see is "Other config files"
@SirHackaL0t.
@SirHackaL0t. Ай бұрын
Interesting thought… You tell semaphore where the config file is… presumably that goes into the config file? Or is the config file location stored in another config file?
@GCTWorks
@GCTWorks Ай бұрын
I would love to see a video where you set up Semaphore to use LDAP. Even better if it was Light LDAP. Full disclosure, I was not able to get it to work myself, but I do not understand LDAP all that well. In fact, a video on Light LDAP would be awesome. Super easy way to have unified authentication in the homelab. A video on OpenLDAP might be useful too. Something else, could you do an addendum to this video for deploying Semaphore with docker, also using local playbooks instead of GitHub repos?
@thehyperduck90
@thehyperduck90 Ай бұрын
Thanks!
@StephenPreston
@StephenPreston Ай бұрын
I love the videos like this but I also think it would be helpful to follow up these videos securing and hardening the solution. as an example is parts of the DB that should be encrypted and so on.
@RonnieRedd
@RonnieRedd Ай бұрын
Nala is a nice alternative to plain apt. It is just a different front end to apt, but still...😊
@oneito947
@oneito947 Ай бұрын
could you make a video of using ansible semaphore to deploy matrix and its bridges based on the ansible playbook for matrix
@rahneshin752
@rahneshin752 Ай бұрын
❤❤❤
@damianpodgorski6977
@damianpodgorski6977 Ай бұрын
Could not help it, sudo coffee install convinced me to place an order
@aybekabdullaev8901
@aybekabdullaev8901 9 күн бұрын
im having fatal bad boolean config value '0 error here
@ernstmayer3868
@ernstmayer3868 Ай бұрын
I am struggling to understand the use case of Ansible Semaphore. It is just extracting some configuration bits into UI, right? All the details still have to be provided in these text fields. Why should I do this? There is no sytax highlighting, no linting and there are no "templates" to quickly build upon. What is the reason to not engage with the configuration directly?
@Washout001
@Washout001 9 күн бұрын
Suspect the main use-case is more for the non-ansible IT users who can just fire this up, make sure the server is in the inventory and run whatever task are setup. Bootstrapping/software installs/updates etc. Also, I think the ability to cron tasks could be used for hardening and ensure config drift can't happen. Like an agentless DSC. Can then setup fancy dashboards to keep your infosec team happy. Or jump on your head the second something goes red.
@MyouKyuubi
@MyouKyuubi Ай бұрын
I have a huge problem with linux, i can't seem to find any way to adjust the bit depth and sample rate of audio output!!! Is there a software i need to install for this? And if not, how do i go about figuring this out on LMDE 6 and Linux Mint Edge? Have you made videos on this before? If so, i would love a link to those videos! I need my audio output to be 32bit 96kHz! I'm trying to get into Linux, so i'm completely green here! I'm flabbergasted at the fact that Linux seems to have neglected proper audio options! These things are very easy to change in Windows, but with Linux, you apparently have to alter files of which do not exist on LMDE 6! Or maybe i'm just doing something wrong... In any case, a video on this would be greatly appreciated!
@AxelWerner
@AxelWerner Ай бұрын
You can do all that or just fire up an Ansible-Semaphore some Docker Containers using a single docker-compose file within 15mins to get started.
@jdratlif
@jdratlif Ай бұрын
This is how I would do it, too, but it can be nice knowing exactly how everything works and not hide any of the complexity.
@ozmosyd
@ozmosyd Ай бұрын
Not wanting to sound rude but why are you here? If you have a compose file to take care of it all no need to view or really comment on this here. Most of us here want to know how the bits come together to complete the desired results. I suppose your not interested in the mechanics?
@txreal2
@txreal2 Ай бұрын
@@ozmosyd for me I just want something that I can start tinkering around with before spending a weekend on installation 😢
@txreal2
@txreal2 Ай бұрын
Thanks
@rihananshari-vn3wq
@rihananshari-vn3wq 25 күн бұрын
Joo
@alan_marx
@alan_marx Ай бұрын
Que penteado mais estranho! 😂
@RajeshKumarcomedy-uj4ld
@RajeshKumarcomedy-uj4ld Ай бұрын
Hay sar my name ise Rajesh dhobi I am from Nepal Linux basic course completely step by step watching the video please please sir help me Linux basic course one video please sar
How to Dual Boot Windows 11 & Linux Mint: Step by Step Guide
14:12
Learn Linux TV
Рет қаралды 31 М.
Systemd Deep-Dive: A Complete, Easy to Understand Guide for Everyone
47:41
请善待你的娃娃第二集 #naruto  #cosplay  #shorts
00:52
佐助与鸣人
Рет қаралды 24 МЛН
Who enjoyed seeing the solar eclipse
00:13
Zach King
Рет қаралды 96 МЛН
The World's Fastest Cleaners
00:35
MrBeast
Рет қаралды 102 МЛН
Apache CloudStack Installation and Configuration Guide
12:59
ShapeBlue
Рет қаралды 1,4 М.
Simple automation for all your Linux servers with Ansible
26:00
Christian Lempa
Рет қаралды 64 М.
This web UI for Ansible is so damn useful!
20:07
Christian Lempa
Рет қаралды 437 М.
Simplify Ansible Playbook Management with Semaphore
1:26:40
Tech Tutorials - David McKone
Рет қаралды 5 М.
New to DistroBox? Start Here: Full Beginner's Tutorial!
18:07
Learn Linux TV
Рет қаралды 82 М.
New Linux User: 10 Things I Wish I Knew When I First Started
23:31
Learn Linux TV
Рет қаралды 356 М.
Meet netboot.xyz - Network Boot Any Operating System
25:00
Techno Tim
Рет қаралды 693 М.
The Free and Open Source Software I Use in 2024 - Part 1
28:31
Awesome Open Source
Рет қаралды 65 М.
СЛОМАЛСЯ ПК ЗА 2000$🤬
0:59
Корнеич
Рет қаралды 1,7 МЛН
Result of the portable iPhone electrical machine #hacks
1:01
KevKevKiwi
Рет қаралды 7 МЛН
Секретная функция ютуба 😱🐍 #shorts
0:14
Владислав Шудейко
Рет қаралды 2,1 МЛН
iPhone 15 в реальной жизни
20:03
HUDAKOV
Рет қаралды 697 М.