Please create a video tutorial on how the Ansible extension works with WSL and how to use a YAML file in extension
@alexdworjan2 ай бұрын
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
@vaidhi79052 жыл бұрын
Thank you so much 🥰🥰
@watchman198210 ай бұрын
Be nice to see how this is setup in Windows considering WSL must be used to install Ansible.
@alexdworjan10 ай бұрын
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
@watchman198210 ай бұрын
@@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)?
@alexdworjan10 ай бұрын
@@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
@watchman198210 ай бұрын
@@alexdworjan This is awesome! Thank you for sharing and I will check out your other videos regarding the setup of this.
@deemon101 Жыл бұрын
So, why did you need Ansible Navigator for this video?
@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.
@redy0017 ай бұрын
@@alexdworjanso why to bother mind of something usefull ?
@alexdworjan7 ай бұрын
I don't understand your question, could you please ask again
@tazaccking74672 жыл бұрын
sir can you make a video on "configuring ansible for windows host winrm setup in windows"
@alexdworjan2 жыл бұрын
kzbin.info/www/bejne/rqfLgJqJp72eZpI
@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 Жыл бұрын
Definitely appreciate that feedback. I'll keep an ear out for it in the future.
@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 Жыл бұрын
@@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 Жыл бұрын
I came here to say: "today's lesson was brought by the words leverage and leveraging" 😅 It's all fun though, good video.