A nice Ansible GUI with Rundeck and vscode server

Sdílet
Vložit
  • čas přidán 2. 06. 2024
  • How to build a NICE Ansible environment? Let's use Ansible with a dynamic inventory, with Rundeck as a GUI (graphical User Interface) and vscode server for file editing directly on the server! I am providing installation scripts for Rundeck with Ansible with vscode server on my Github repository: github.com/onemarcfifty/ansib...
    Nana's video about Ansible is here: • What is Ansible | Ansi...
    0:00 Intro
    0:34 How I use Ansible with Rundeck at home
    1:39 @TechWorldwithNana
    2:11 Installation
    3:06 How I Install Ansible and why
    4:22 Workstation/Client setup
    5:26 vscode Server
    6:42 (Non-Root-User advantages)
    8:28 (Config Files and Inventory)
    11:45 (Adding the inventory to rundeck)
    13:02 (deploying ansible - prepare hosts)
    16:28 (Deploy Ansible with Ansible - rundeck key store)
    CZcams: / onemarcfifty
    Twitter: / onemarcfifty
    Discord: / discord
    Github: github.com/onemarcfifty
    Patreon: / onemarcfifty
    Blog: www.onemarcfifty.com
  • Věda a technologie

Komentáře • 49

  • @richarddinel4762
    @richarddinel4762 Před 6 měsíci +1

    We miss you and your great work. I hope you're well

  • @danienell5248
    @danienell5248 Před rokem +4

    this was exactly what I needed - so excited to rebuild my homelab to follow this. Great Job Marc!!

  • @cslb38
    @cslb38 Před rokem +7

    Awesome work 👌 ....very informative and laid out for easy following! Keep up the great work Marc, we really love your content!

  • @VitaliySunny
    @VitaliySunny Před 5 měsíci

    Cool video production!

  • @MrNoBSgiven
    @MrNoBSgiven Před rokem +2

    Marc, THANK YOU so much for this one. As usual another winner for the folks who need some help. I have only ONE note - I spent almost one day in trying to get the proxmox dynamic inventory. yml to work. I COULD NOT with the most frustrating error of invalid SSL certificate, which the "validate_cers: false" should fix... and it did NOT. The REAL problem was the URL value, which must be included in DOUBLE quotes. I don't know if this is a problem with Proxmox 7.2 (which I run), but I was getting very annoyed at EVERYBODY. 😉😉😉😉
    You asked for suggestions. Having a follow up on rundeck would be a good one IMHO.
    Again, THANK YOU so much.

    • @OneMarcFifty
      @OneMarcFifty  Před rokem

      Hi, that's curious - I have my URL in the config without any quotes - do you have any special characters ($%&...) that need quoting in the URL?

    • @MrNoBSgiven
      @MrNoBSgiven Před rokem

      @@OneMarcFifty no special characters, but I do update to the newest versions of proxmox every time I get the chance.

  • @0ChAnTi
    @0ChAnTi Před rokem +2

    YES, a new video with the content I want.

  • @jetskisnowboardski
    @jetskisnowboardski Před rokem +2

    This goes into my bookmarks! Awesome video. Ty!

    • @OneMarcFifty
      @OneMarcFifty  Před rokem

      Hi Henrik, great to hear - thank you very much ;-)

  • @demanuDJ
    @demanuDJ Před 7 měsíci

    Marc, your solutions are priceless, thank you!

  • @AMian-yf2hn
    @AMian-yf2hn Před rokem +3

    Another great video !
    So now you should make a video on the other missing Ansible story- important for home labs: ansible-pull, for targets behind NAT. Thus a client install is needed for reverse ssh access to Ansible server.

    • @OneMarcFifty
      @OneMarcFifty  Před rokem +2

      Hi, many thanks for the hint - Jay from @Learn Linux TV has already made a video about this: czcams.com/video/sn1HQq_GFNE/video.html

    • @AMian-yf2hn
      @AMian-yf2hn Před rokem +1

      @@OneMarcFifty Cool ! This github install on managed nodes is an alternative (and better) method than what I was thinking.🤣

  • @alfarahat
    @alfarahat Před rokem +1

    I have been waiting for you grate videos

  • @RP-rs6ky
    @RP-rs6ky Před rokem +2

    Good job 👏 keep it up. Thanks!

  • @reneb5222
    @reneb5222 Před rokem +2

    Great one! Was just about to install AWX. But this one is much easier :).

    • @OneMarcFifty
      @OneMarcFifty  Před rokem +1

      Many thanks Rene. Let me know if you like Rundeck.

    • @reneb5222
      @reneb5222 Před rokem

      Hi Marc. Found a few things in the docker files that are problematic. I changed them. Would you like me to put it on Git repo? The problems are around a few volumes that are missing. So when you bouncy the CTs you loose your changes.

  • @rasheed.a873
    @rasheed.a873 Před rokem +1

    Amazing video !! I like this as opposed to Ansible Tower / AWX

    • @OneMarcFifty
      @OneMarcFifty  Před rokem

      Thank you very much- I love my Rundeck ;-)

  • @gsilva877
    @gsilva877 Před 3 měsíci

    I've been losing my head for a few days trying to make ansible semaphore or awx work in Kubernetes. They both can't run jobs and have problems with websockets and others. Well, let's try a traditional VM with Rundeck. Your approach looks very robust as well. I will automate some tasks in a cloud environment.

  • @anthonypierre6604
    @anthonypierre6604 Před 4 měsíci

    This is awesome. How about Rundeck vs Ansible Tower?

  • @nujufas
    @nujufas Před 6 měsíci

    Thanks for the video.
    On debian 12 LXC, use 'pip install ansible --break-system-packages', otherwise you get "error: externally-managed-environment". I hope there is a better solution for this.

  • @jus4027
    @jus4027 Před rokem +1

    mind blown

  • @sunnylin8718
    @sunnylin8718 Před rokem +1

    Thanks for the great video. But I have problem to run rundeck publicDNS:4440 ,cannot log in(admin,admin). So i change url in the /home/rundeck/etc/framework.properties to my publicDNS, add publicDNS in etc/host . Still cannot log in.I can open vscode on publicDNS:8080. I use aws. Which part did i miss? Could you give me some hints? Thanks

    • @OneMarcFifty
      @OneMarcFifty  Před rokem

      Might be firewall as well - I wouldn’t expose it to a public IP anyhow

  • @stefanschlegel9129
    @stefanschlegel9129 Před rokem +1

    Hallo Marc, vielen Dank für das tolle Video. Ich habe ein Problem beim einlesen der Nodes in Rundeck. Ich habe Rundeck in einem LXC Container am laufen. VS Code funktioniert auch. Ich habe die Ordner wie beschrieben angelegt. Wenn ich die Nodes in der Shell suchen lasse (ansible-invertroy --graph) dann funktioniert das auch. Allerdings muss ich hier ein Passwort (sudo) angeben damit er es ausführt. Wenn ich nun in Rundeck deinen Schritten folge, dann sucht er nur den localhost und nicht im Inventory. Eine Idee?
    Mit freundlichen Grüßen

    • @OneMarcFifty
      @OneMarcFifty  Před rokem

      Bitte lege (als root) eine Datei /etc/sudoers.d/rundeck an und kopiere den folgenden Inhalt (ohne Quotes) hinein : "rundeck ALL=(ALL) NOPASSWD: ALL" - das erlaubt dem rundeck user sudo ohne Passwort. Ich überlege mir solange eine bessere Lösung

    • @stefanschlegel9129
      @stefanschlegel9129 Před rokem +1

      @@OneMarcFifty Jetzt funktioniert auch das suchen der Host in Rundeck

    • @stefanschlegel9129
      @stefanschlegel9129 Před rokem +1

      @@OneMarcFifty Hallo, ich bekomme es außerdem nicht hin ein Playbook zu starten. Egal ob ich /home/rundeck/ansible/playbooks/deploy-ansible.yaml oder ~/ansible/playbooks/deploy-ansible.yaml eintrage, es wird mir immer die Fehlermeldung angezeigt, dass das Playbook nicht gefunden werden kann. Hast du auch hierfür eine Idee?

    • @OneMarcFifty
      @OneMarcFifty  Před rokem

      Hast Du das Verzeichnis angelegt? In einer shell mal cat und dann den pfad zum file reinkopieren (cat /var/lib/rundeck/…). Groß/Kleinschreibung ? /var/lib/rundeck/ansible ist der richtige Pfad in der script version

    • @stefanschlegel9129
      @stefanschlegel9129 Před rokem +1

      @@OneMarcFifty geht, hatte mich wohl verschrieben

  • @CristianTorras
    @CristianTorras Před rokem +1

    wouldn't it be better to have vscode in its own container and edit the files by sharing a folder in the host?

    • @OneMarcFifty
      @OneMarcFifty  Před rokem +1

      Could do that as well - yes. I don't know if it's better or worse in any way though.

  • @random_name-
    @random_name- Před rokem

    Good Video. What is name of packets talk at the .. thank you.. kind regards

    • @OneMarcFifty
      @OneMarcFifty  Před rokem

      Hi, I am not sure if I understand what you mean?

  • @petercalum9767
    @petercalum9767 Před rokem +1

    Awesome Video - Thanks