Increase your workflow on Ansible lab
Did you know? You can edit your playbooks in Ansible Lab with VS Code.
Your persistent data in the container is located in specific path on the running host.
For this, you need to open that specific path on the running host via VS Code.
For example: The folder called "ansible-project-main_ansible-data" contains files, folders that you created on container. All changes in this folder will also affect the folder in the container. The path to this folder depends on the type of OS you are using. But usually:
For Mac, it's different from other OS. Personally I have not tested these steps on mac. But I hope it will work :)
After accessing the path. Just follow the steps in the pictures attached below.
领英推荐
The folder's name under the "volumes" folder may differ from this example, but usually the folder name starts with the name of the folder containing the "docker-compose.yaml" file. However, the "_data" folder containing your persistent data is located under the volume folder. You can open this folder via VS Code for editing. i.e. -
After all, You can increase workflow with this feature.
I hope you will enjoy it!