We highly recommend making yourself familiar with VSCode and the Ansible extension. Even if you’re not planning to use it as your daily driver, it is good to know how it works to explain and show the benefit to customers.
ansible
, ansible-lint
and podman
on your Linux workstationansible-navigator
for using execution environments~/.config/Code/User/settings.json
:"files.associations": {
"*.yml": "ansible",
"*.yaml": "ansible"
},
Ctrl+Click
on a modul FQCN to open documentationCtrl+Space
for module parameters, e.g. add a task calling ansible.builtin.yum
and use Ctrl+Space
to see all module attributes and attribute parametersCtrl+Shift+m
): you might have to make sure ansible-lint
is enabled and notice it is only checking when you save a fileStart VSCode and get familiar with its features.
Although VSCode of course runs on Linux, Mac and Windows, there are some extra tasks to be done to get Ansible working on Windows. It’s beyond the scope of this manual to provide detailed instructions on how to setup Podman and Ansible on Windows.
Try to configure VSCode to use Ansible inside an execution environment.