Simplify Ansible Playbook Management with Semaphore

  Рет қаралды 10,705

Tech Tutorials - David McKone

Tech Tutorials - David McKone

Күн бұрын

Пікірлер: 44
@BrianGloberman
@BrianGloberman 8 күн бұрын
Thank you David, this has been very helpful. I appreciate your making such a detailed tutorial.
@TechTutorialsDavidMcKone
@TechTutorialsDavidMcKone 8 күн бұрын
Thanks for the feedback, much appreciated I do find Semaphore very useful, even if it's just for automating and logging the tasks
@jeffborges101
@jeffborges101 6 күн бұрын
excellent video . Very informative. Thank you very much !
@TechTutorialsDavidMcKone
@TechTutorialsDavidMcKone 6 күн бұрын
Thanks for the feedback Good to know the video was useful
@bakerstreetdoctor978
@bakerstreetdoctor978 8 ай бұрын
Thank you so much for this thorough tutorial! It's really going to help me with my final project for my IT apprenticeship :)
@TechTutorialsDavidMcKone
@TechTutorialsDavidMcKone 8 ай бұрын
Good to know the video was useful That sounds like an interesting project if it involves Ansible
@ramswaruppattanaik9732
@ramswaruppattanaik9732 5 ай бұрын
Great video, really helped in setting up semaphore when nothing could.
@TechTutorialsDavidMcKone
@TechTutorialsDavidMcKone 5 ай бұрын
Good to know I do like Semaphore as I think it makes it easier to automate the maintenance jobs
@Glatze603
@Glatze603 10 ай бұрын
Hi 🙂 Thanks for this great tutorial! Works fantastic and is very usefull. I didn´t get semaphore up and running with other videos, so thanks for this great work.
@TechTutorialsDavidMcKone
@TechTutorialsDavidMcKone 10 ай бұрын
Good to know the video was helpful and thanks for the feedback
@rongiefaustino8867
@rongiefaustino8867 21 күн бұрын
Very helpful. Thank you!
@TechTutorialsDavidMcKone
@TechTutorialsDavidMcKone 21 күн бұрын
Thanks for the feedback, it really helps get videos out to others who might find it useful
@Sanji445
@Sanji445 10 ай бұрын
Great video displaying the full process of pre-requisites, installation & configuration of semaphore. It has been quite some time now that i was considering an ansible UI solution, still a bit hesitant between AWX (tower) and semaphore. If you did benchmark these before i would gladly appreciate some feedback. (Or if you know another alternative that may be interesting..)
@TechTutorialsDavidMcKone
@TechTutorialsDavidMcKone 10 ай бұрын
Thanks for the feedback I'll keep an eye out for other options
@nahum35
@nahum35 9 ай бұрын
Amazing tutorial, Thank you David for this step-by-step explanation. Are you planning on doing more Ansible tutorials? Anyway i'll share this video on my Linkedin account, definetly worth it. 😉
@TechTutorialsDavidMcKone
@TechTutorialsDavidMcKone 9 ай бұрын
I do have others in the pipeline, but these things take time Thanks for promoting the video
@nahum35
@nahum35 9 ай бұрын
My pleasure.@@TechTutorialsDavidMcKone
@easternpa2
@easternpa2 9 ай бұрын
Great video and paced well. I thought it was interesting that you don't use - with sudo su to initialize the new user's environment.
@TechTutorialsDavidMcKone
@TechTutorialsDavidMcKone 9 ай бұрын
Can you be more specific? I know sudo and su are kind of in conflict these days So while sudo su - can switch you over to the root account, but using your own password when you have sudo rights, since sudo -i came out, the steer is to use that instead Normally I'm not fussed about the environment settings though, so long as the path and the prompt seem fine
@easternpa2
@easternpa2 9 ай бұрын
@@TechTutorialsDavidMcKone 'sudo -i' is the same as using '-' with su, except sudo is only for executing a one-off command. Using '-' with su completes the login when dropping you off at the command prompt for the new user. When you use su without '-,' you're sitting at a command prompt in a partially initialized environment. For instance, you may have some .bashrc commands that you want to execute when logging in as that user. Using '-' with su does that, while not using '-' does not. Since you don't normally know your root password on systems like Ubuntu, you would use 'sudo su -' as a one-off command to use your root privileges to become the root user and complete the login to fully initialize the environment for that command prompt session. It's something I picked up 30 years ago and always do it. I never use su without '-'. su and sudo aren't really in conflict. sudo is for using your root privileges to execute a one-off command, and su (often paired up with sudo) is for switching to another user until you run 'exit' to back out to your original user.
@jg1000c
@jg1000c 2 ай бұрын
The documentation doesnt match the app version. The task argument section is totally different now. You don't put variables in json anymore. Im still not clear what the extra args should look like, is force_reboot=yes valid format?
@TechTutorialsDavidMcKone
@TechTutorialsDavidMcKone 2 ай бұрын
Thanks for the feedback It sounds like a newer video is needed
@jg1000c
@jg1000c 2 ай бұрын
@@TechTutorialsDavidMcKone I was complaining about the documentation. Your video was great.
@ChristianLopez28c
@ChristianLopez28c 7 ай бұрын
Thanks that was very informative. Is there a way to run sequential tasks or templates like for example one to update (dnf update) and one for reboot maybe after reboot one to check all is good like with CLI ansible you can use a site.yml and run playbook1 then playbook2 etc ? Thanks
@TechTutorialsDavidMcKone
@TechTutorialsDavidMcKone 7 ай бұрын
A handler might make sense A task can notify a handler to do something if there's been a change I've split things up into roles and each role has its own handler So when a task runs that uploads a service config for instance and it results in a change, that task will notify the handler which in turn restarts the service
@njifacnkemakecollins1679
@njifacnkemakecollins1679 8 ай бұрын
Great Video David. your videos are very good. I appreciate the time you dedicate to share this knowledge. I did set my mailrise as my smtp relay server and for some reasons i cant get semaphore to send alerts emails to slack. Could you please help us with a video on how to set a working alert for system for semaphore.
@TechTutorialsDavidMcKone
@TechTutorialsDavidMcKone 8 ай бұрын
Unfortunately Semaphore, doesn't send emails if a task is successful and although this has been raised on forums, the dev(s) don't see this as an issue So although the video covers how to setup email alerts, you'll only receive one if a task fails You can hook it up directly to Slack for instance for task alerting, but I'd prefer to keep everything centralised to reduce the maintenance and admin So I'm opting to run a task which always fails, that way I get a regular alert through mailrise to let me know the alerting works
@realnessuntold
@realnessuntold 8 ай бұрын
This is good . Thanks for the great work. But what if you want to run just one of the IP address in your inventory, how do you go about it?
@TechTutorialsDavidMcKone
@TechTutorialsDavidMcKone 8 ай бұрын
You can create multiple inventories for Semaphore, so you could always create one with a single IP and then run a task against that
@kiddsupreme
@kiddsupreme 5 ай бұрын
35:55 You make mention of a user 'ansible' when you are setting up the SSH key. However, you never mention creating that user in your tutorial. The only users I am aware of is the semaphore user and the user account I normally used. I am trying to determine which SSH private key goes here. Is it your user account? Is it the semaphore account? Something else I may of missed? Please advise.
@TechTutorialsDavidMcKone
@TechTutorialsDavidMcKone 5 ай бұрын
There are at least two user accounts involved here 1) You need to be able to login to Semaphore so that you can configure it and ultimately run Ansible playbooks, etc as scheduled tasks. You create at least one account for it during its setup. But that account is specific to Semaphore 2) Ansible needs access to others IT devices to make changes to them etc. and all those devices have to have a user account for that user so that Ansible can login to them I'm using SSH key authentication, so at this point in the video I'm pointing Semaphore to the private key for my Ansible user In other words, the Sempahore user account is used to manage Semaphore, but you have a separate Ansible account that is used to manage devices
@neilvass6805
@neilvass6805 9 ай бұрын
The Installation of Ansible and Semaphore seemed to go without a hitch. However, now I can't get into Semaphore. I can access ansible and I can add users to sepmaphore and list them using putty with my root login and am 100% sure the password added is the same as I am trying to use but it won't let me in via the web interface. Can't see anything online to help. Any ideas! Thanks.
@TechTutorialsDavidMcKone
@TechTutorialsDavidMcKone 9 ай бұрын
Can you login into and access the database that Semaphore uses? If not you can edit that in the config file You can also update the database to change the user/password if necessary Now if you can access the database directly but not login via the web interface then I'd have to assume the Semaphore login credentials are wrong These are stored in the database but I don't know an easy way to change them as they'll be encrypted You could ask on the Github site for how to overwrite the password Personally, whenever I've just installed software and I can't login, I chalk it up to a typing mistake and re-install it I think in this case you could delete the database, create a new one, assign the user access and then run the setup process again
@liamlam9995
@liamlam9995 9 ай бұрын
Hi, in anisible Semaphore, is there anyway to custom user permission so that user can only view or run additional task?
@TechTutorialsDavidMcKone
@TechTutorialsDavidMcKone 9 ай бұрын
The newer version has roles to assign users to but I haven't seen a custom option for that So you could assign a user with a role of Task Runner for instance that will allow them to run a task But you can't create your own role
@darshilsoni1607
@darshilsoni1607 8 ай бұрын
Hi David, thank you so much for the video, this is very helpful and helped with my work as well. I do need your help with few things though. Can you kindly reply back? Thank you!
@TechTutorialsDavidMcKone
@TechTutorialsDavidMcKone 8 ай бұрын
I don't really provide support as such I only cover issues such as something no longer working in a video or if things don't work as expected
@ah-ys8gs
@ah-ys8gs 8 ай бұрын
Hi. I have an error when running a task: fatal: [192.168.1.1]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Warning: Permanently added '192.168.1.1' (ED25519) to the list of known hosts. ubuntu@192.168.1.1: Permission denied (publickey).", "unreachable": true} Im using the free cloud server of oracle & installed ubuntu. Was going great until i tried to run a task. I can ssh to the server & pub/priv keys are present too. Being a beginner in all these is so hard😅 pls help. Thank you.
@TechTutorialsDavidMcKone
@TechTutorialsDavidMcKone 8 ай бұрын
The computer is denying access as it requires SSH key authentication You have to point Ansible/Semaphore to the relevant private key that goes with the public key the server has for the user account you're logging in as
@ah-ys8gs
@ah-ys8gs 8 ай бұрын
​@@TechTutorialsDavidMcKone Thank you for the reply. I managed to work that initial error but I have a new error now as I am trying to use my local repository. I cloned the online git repo to my local machine then followed how you setup your repository in the semapahore web UI (I didn't do the chown & chmod part though as I have no idea if I have a group in the first place). When I run the task, it says: Failed in finding static repository at /mydir/mydir: stat /mydir/mydir: no such file or directory The directory exists but semaphore can't find it for some reason. Not sure if I missed any crucial steps or permissions.
@TechTutorialsDavidMcKone
@TechTutorialsDavidMcKone 8 ай бұрын
@@ah-ys8gs If you're going to use git it might be better to just link directly to it from Semaphore, but that's a slightly different method Part of the Semaphore setup process involves setting up a folder where Semaphore will pull local copies of files to, so you don't need to do downloads yourself Any changes you want to make to your Ansible files should be done on the github repository
Simplify Your Proxmox VE Tasks: Ansible Automation Made Easy
19:42
Tech Tutorials - David McKone
Рет қаралды 12 М.
It's now a UI for Ansible, Terraform and more! // Semaphore
23:27
Christian Lempa
Рет қаралды 34 М.
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 6 МЛН
Can You Find Hulk's True Love? Real vs Fake Girlfriend Challenge | Roblox 3D
00:24
SIZE DOESN’T MATTER @benjaminjiujitsu
00:46
Natan por Aí
Рет қаралды 3,1 МЛН
This web UI for Ansible is so damn useful!
20:07
Christian Lempa
Рет қаралды 499 М.
I Was DEFINITELY Using The Wrong Terminal Shell
9:59
DevOps Toolbox
Рет қаралды 58 М.
NixOS Setup Guide - Configuration / Home-Manager / Flakes
3:01:39
Matthias Benaets
Рет қаралды 231 М.
Say Goodbye To Root Accounts With Podman!
29:40
Tech Tutorials - David McKone
Рет қаралды 3,3 М.
Automate EVERYTHING with Ansible! (Ansible for Beginners)
18:31
Techno Tim
Рет қаралды 244 М.
Automate Local TLS Certificates With Step-CA
36:57
Tech Tutorials - David McKone
Рет қаралды 4,2 М.
Ansible Vault 101: Safely Storing Information in Playbooks
19:24
Tech Tutorials - David McKone
Рет қаралды 1,7 М.
Ansible For Network Engineers: Getting Started In Less Than 30 Minutes!
26:32
Svxlink Builder
1:00:20
Christopher Jackson
Рет қаралды 91
A nice Ansible GUI with Rundeck and vscode server
22:00
OneMarcFifty
Рет қаралды 18 М.
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 6 МЛН