Complete Ansible Semaphore Tutorial: From Installation to Automation

Поделиться
HTML-код
  • Опубликовано: 4 июн 2024
  • 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!
    Brand LPI Linux Essentials Course Available
    Check out the new course on Udemy, and learn Linux while studying for your Linux Essentials certification! ➜ learnlinux.link/lpi-course
    Check out the Linux Shop
    Shirts, hats, stickers, bags and more ➜ 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 Essentials Certification Workshop ➜ learnlinux.link/lpi-course
    • 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
    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
  • НаукаНаука

Комментарии • 45

  • @jdratlif
    @jdratlif 2 месяца назад +6

    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, RUclips 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.

  • @Dettol68
    @Dettol68 2 месяца назад +1

    The absolute best tip of all timed at 13:13 - thank you!

  • @RonnieRedd
    @RonnieRedd 2 месяца назад +1

    Very well done Jay!

  • @kelownatechkid
    @kelownatechkid 2 месяца назад

    This is awesome, didn't realize that foss ansible gui had progressed this far. thanks !

  • @user-gd3ud7bp8f
    @user-gd3ud7bp8f 11 дней назад

    Thank you for this valuable tutorial. I really appreciate your explanation manner: very clear steps with many tips & tricks. Good Job 👋

  • @devendrajoshi9020
    @devendrajoshi9020 7 дней назад

    Thank you for this valuable tutorial..

  • @XytrasLLane
    @XytrasLLane Месяц назад

    Great learning video. Thank you!

  • @0r_1x
    @0r_1x 2 месяца назад

    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 RUclips toda..... SON OF A...."
    As always, Thank you Jay!

  • @peterwassmuth4014
    @peterwassmuth4014 2 месяца назад +1

    Awesome Thank you for Sharing! 💯✴

  • @GehtGut
    @GehtGut 17 дней назад

    I like semaphore , is a fantastic ansible opensource programm for many things like "apt update / upgrade" on 20 virtual maschines 🙂

  • @mrbb1731
    @mrbb1731 Месяц назад

    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.

  • @lamar9525
    @lamar9525 2 месяца назад

    Great YT! You have so many, I didn't find Debian Server & SSH Install.

  • @kamilek675
    @kamilek675 7 часов назад

    Many many thanks for this very detailed video! I really appreciate it. With your tutorial i installed semaphore without any issue. Once again thanks and question from my side. Is possible to install SSL certificate on semaphore server?

  • @SirHackaL0t.
    @SirHackaL0t. 2 месяца назад +1

    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?

  • @drbyte2009
    @drbyte2009 2 месяца назад +2

    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"

  • @devops1044
    @devops1044 21 день назад

    This process would be an excellent example to do with ansible. I.e. install ansible first then minimum to get semaphore moving, then the rest in ansible using semaphore.

  • @magicmanj32
    @magicmanj32 2 месяца назад +1

    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 2 месяца назад +2

      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 2 месяца назад +1

      @@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.

  • @thehyperduck90
    @thehyperduck90 2 месяца назад

    Thanks!

  • @stratochief99
    @stratochief99 3 дня назад

    @20:01 I am getting output that says "WARN[0000] Error 1045 (280000): Access denied for user 'semaphore_user'@'localhost' (using password: YES)"
    I followed this video to the letter but cant get past this point. Any suggestions?

  • @mikro2k6
    @mikro2k6 2 месяца назад

    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!

  • @fakename8670
    @fakename8670 9 дней назад

    Where's the alternative version of the config file you mentioned for someone who doesn't have a domain?

  • @mayday_excelgroup
    @mayday_excelgroup 2 месяца назад

    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!

  • @oneito947
    @oneito947 2 месяца назад

    could you make a video of using ansible semaphore to deploy matrix and its bridges based on the ansible playbook for matrix

  • @RonnieRedd
    @RonnieRedd 2 месяца назад

    Nala is a nice alternative to plain apt. It is just a different front end to apt, but still...😊

  • @ernstmayer3868
    @ernstmayer3868 2 месяца назад

    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 Месяц назад

      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.

    • @SCDeerAddict
      @SCDeerAddict 12 дней назад

      The use case is a self serve portal for end users , mainly engineers, devops guys write ansible playbooks and deliver those to operations teams who then can easily run the playbook from a nice web ui.
      The playbooks can reside in a git repo and semaphore will pull the latest playbook automatically on each run.

  • @GCTWorks
    @GCTWorks 2 месяца назад

    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?

  • @StephenPreston
    @StephenPreston 2 месяца назад

    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.

  • @aybekabdullaev8901
    @aybekabdullaev8901 Месяц назад

    im having fatal bad boolean config value '0 error here

  • @rahneshin752
    @rahneshin752 2 месяца назад

    ❤❤❤

  • @damianpodgorski6977
    @damianpodgorski6977 2 месяца назад

    Could not help it, sudo coffee install convinced me to place an order

  • @MyouKyuubi
    @MyouKyuubi 2 месяца назад

    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!

  • @rihananshari-vn3wq
    @rihananshari-vn3wq Месяц назад

    Joo

  • @AxelWerner
    @AxelWerner 2 месяца назад +17

    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 2 месяца назад +5

      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 2 месяца назад +3

      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 2 месяца назад +2

      @@ozmosyd for me I just want something that I can start tinkering around with before spending a weekend on installation 😢

    • @txreal2
      @txreal2 2 месяца назад

      Thanks

    • @SCDeerAddict
      @SCDeerAddict 12 дней назад

      It doesn't work well in Docker, the setup is a nightmare. It's best to install it on a dedicated Linux build and use a venv

  • @alan_marx
    @alan_marx 2 месяца назад

    Que penteado mais estranho! 😂

  • @RajeshKumarcomedy-uj4ld
    @RajeshKumarcomedy-uj4ld 2 месяца назад

    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