Ansible VSCode Extension

  Рет қаралды 13,140

Alex Dworjan

Alex Dworjan

Күн бұрын

Пікірлер: 19
@dhirajjadhav218
@dhirajjadhav218 2 ай бұрын
Please create a video tutorial on how the Ansible extension works with WSL and how to use a YAML file in extension
@alexdworjan
@alexdworjan 2 ай бұрын
Unfortunately, I don't have access to a Windows workstation with WSL. If you look at some of my other development videos, I generally use either code-server (which just runs in a web browser on a Linux VM, kzbin.info/www/bejne/eWmcYWuBiM-hbZo, kzbin.info/www/bejne/fmmskoVurLJ1orM) or the VS Code SSH extension (kzbin.info/www/bejne/aILanIWfi62Urrc) to connect to a Linux VM so I never need to install Ansible or WSL on my workstation. I do this so I can not only develop my playbooks using the Ansible plugins, but then I can also test them via CLI in a sandbox environment. While I don't have a Windows workstation, you could set up WSL, install Ansible, and then use the WSL extension for VSCode code.visualstudio.com/docs/remote/wsl. That WSL extension will work similar to the Remote SSH extension in that VSCode runs locally on your operating system, but Ansible, your playbooks, and the Ansible extension would all be installed within WSL itself
@vaidhi7905
@vaidhi7905 2 жыл бұрын
Thank you so much 🥰🥰
@watchman1982
@watchman1982 10 ай бұрын
Be nice to see how this is setup in Windows considering WSL must be used to install Ansible.
@alexdworjan
@alexdworjan 10 ай бұрын
If you look at some of my other development videos, I actually use either code-server (which just runs in a web browser, kzbin.info/www/bejne/eWmcYWuBiM-hbZo, kzbin.info/www/bejne/fmmskoVurLJ1orM) or the VS Code SSH extension (kzbin.info/www/bejne/aILanIWfi62Urrc) so I never need to install Ansible or WSL on my workstation. I do this so I can not only develop my playbooks using the Ansible plugins, but then I can also test them via CLI in a sandbox environment. While I don't have a Windows workstation, you could set up WSL, install Ansible, and then use the WSL extension for VSCode code.visualstudio.com/docs/remote/wsl
@watchman1982
@watchman1982 10 ай бұрын
@@alexdworjan Thank you Alex! I just found out that installing WSL is prohibited by my employer's security dept. However, we have Ansible installed on Linux boxes that I can SSH to. Are you saying the VS Code SSH extension will allow the VS Code Ansible extension to use a remote Ansible installation (including ansible-lint)?
@alexdworjan
@alexdworjan 10 ай бұрын
@@watchman1982 That's correct. When using the SSH extension, the Ansible extension installs on the Linux box so it uses Ansible + Ansible-lint that are present there (rather than what's on your laptop) which is perfect for when you can't use WSL
@watchman1982
@watchman1982 10 ай бұрын
@@alexdworjan This is awesome! Thank you for sharing and I will check out your other videos regarding the setup of this.
@deemon101
@deemon101 Жыл бұрын
So, why did you need Ansible Navigator for this video?
@alexdworjan
@alexdworjan Жыл бұрын
You don't technically need to have ansible or ansible-navigator installed in order for all of this to work. But it does give you the option within VSCode to directly run your playbook. If you right click while editing a playbook you can select Run Ansible Playbook via: and then pick ansible-navigator run or ansible-playbook. This is to help set up the full capability of the extension.
@redy001
@redy001 7 ай бұрын
@@alexdworjanso why to bother mind of something usefull ?
@alexdworjan
@alexdworjan 7 ай бұрын
I don't understand your question, could you please ask again
@tazaccking7467
@tazaccking7467 2 жыл бұрын
sir can you make a video on "configuring ansible for windows host winrm setup in windows"
@alexdworjan
@alexdworjan 2 жыл бұрын
kzbin.info/www/bejne/rqfLgJqJp72eZpI
@Operator873
@Operator873 Жыл бұрын
You just about wore out that "leverage" word. It honestly became distracting from the actual useful content. I felt like I should go get a rum and cola and play a drinking game.
@alexdworjan
@alexdworjan Жыл бұрын
Definitely appreciate that feedback. I'll keep an ear out for it in the future.
@Operator873
@Operator873 Жыл бұрын
@@alexdworjan Looking back, I think my comment might sound a bit abrasive and on the angry side. I didn't want to sound that way. I found it amusing and hoped I could help with feedback disguised as a little brotherly ribbing. Apologies if I offended.
@alexdworjan
@alexdworjan Жыл бұрын
@@Operator873 I definitely chuckled! I admit, I started listening for the word "leverage" after your comment and got about halfway through and realized it was rough! Reminded my of a How I Met Your Mother episode
@jamesoneill2606
@jamesoneill2606 Жыл бұрын
I came here to say: "today's lesson was brought by the words leverage and leveraging" 😅 It's all fun though, good video.
Ansible Dev Server Using VS Code Remote SSH
13:05
Alex Dworjan
Рет қаралды 1,2 М.
Ansible Execution Environments
21:49
Alex Dworjan
Рет қаралды 11 М.
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 2,3 МЛН
Svelte 5's Secret Weapon: Classes + Context
18:14
Huntabyte
Рет қаралды 24 М.
Make your Ansible playbooks flexible, maintainable, and scalable
47:26
VSCode Extensions I use as a DevOps Engineer
10:28
Rishab in Cloud
Рет қаралды 7 М.
Automating my Homelab with Ansible
13:18
Jeff Geerling
Рет қаралды 343 М.
07. Setup Ansible on Visual Studio Code
8:02
Vikas Jha
Рет қаралды 10 М.
Ansible Network Automation
1:02:52
David Bombal
Рет қаралды 75 М.
Ansible Windows Automation
12:45
Alex Dworjan
Рет қаралды 13 М.
Managing 15,000 network devices with Ansible
35:55
Red Hat Summit
Рет қаралды 46 М.