Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename and rework "Getting Started" walkthrough to "Create an Ansible Environment" #1556

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@
!media/walkthroughs/gettingStarted/ansible-features/smart-completions-crop.gif
!media/walkthroughs/gettingStarted/ansible-features/syntax-highlighting-crop.png
!media/walkthroughs/gettingStarted/ansibleEnvironment.md
!media/walkthroughs/gettingStarted/install-adt-components.md
!media/walkthroughs/gettingStarted/languageFeatures.md
!media/walkthroughs/gettingStarted/selectAnsibleLanguage.md
!media/walkthroughs/gettingStarted/adt-components.png
!media/walkthroughs/gettingStarted/all-adt-tools.png
!media/walkthroughs/gettingStarted/ansible-extension-settings.png
!media/walkthroughs/gettingStarted/language-selector.png
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions media/walkthroughs/gettingStarted/install-adt-components.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<!-- markdownlint-disable MD033 MD041 MD013-->

<figure align="center">
<img src="adt-components.png" alt="image missing" />
<figcaption>Ansible development tools</figcaption>
</figure>
76 changes: 13 additions & 63 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,83 +48,33 @@
"contributes": {
"walkthroughs": [
{
"id": "getting-started-with-ansible-extension",
"title": "Getting started with Ansible Extension",
"description": "You first step for knowing and setting up the extension with all the developer features that the Ansible extension has to offer!",
"id": "create-ansible-environment",
"title": "Create an Ansible environment",
"description": "To access Ansible development tools, create an Ansible environment.",
"steps": [
{
"id": "create-ansible-file",
"title": "Create an Ansible-YAML file",
"description": "[Open](command:toSide:workbench.action.files.openFile) or [create](command:toSide:workbench.action.files.newUntitledFile?%7B%22languageId%22%3A%22ansible%22%7D) a Ansible-YAML file - make sure to save it as \".yml\" or \".yaml\".\n[Create Ansible Playbook](command:toSide:workbench.action.files.newUntitledFile?%7B%22languageId%22%3A%22ansible%22%7D)\n\n💡 It's normal to see some red tags in the status bar. This is because necessary ansible tools are not installed. We will fix this as we more forward.",
"id": "create-ansible-playbook",
"title": "Create an Ansible playbook",
"description": "This will activate Ansible development tools. Make sure the file is saved as \".yml\" or \".yaml\" .\n[Create Ansible Playbook](command:toSide:workbench.action.files.newUntitledFile?%7B%22languageId%22%3A%22ansible%22%7D)",
"media": {
"image": "media/walkthroughs/gettingStarted/open-folder.png",
"altText": "No image found"
}
},
{
"id": "check-ansible-language",
"title": "Ensure \"Ansible\" language",
"description": "All the language support is only available for an Ansible file. Make sure that the language of the file is \"Ansible\". If not,\n[Change Language](command:ansible.walkthrough.gettingStarted.setLanguage)\n🔍 Check out this [section](https://github.com/ansible/vscode-ansible?tab=readme-ov-file#language-association-to-yaml-files) to learn more about ansible language association to yaml files.",
"id": "check-ansible-tag",
"title": "Make sure you see the \"Ansible\" tag in the status bar",
"description": "If your Ansible playbook was successfully created, you should see an Ansible tag in the status bar. If not, you can [change the language](command:ansible.walkthrough.gettingStarted.setLanguage).\nHovering over the Ansible tag can tell you about installed versions or environment issues. If tools are missing or warnings are present, continue to the next step to fix the environment.",
"media": {
"markdown": "media/walkthroughs/gettingStarted/selectAnsibleLanguage.md"
}
},
{
"id": "check-ansible-statusbar-tag",
"title": "Check out the Ansible Version tag",
"description": "Hovering over the \"Ansible version\" written in the status-bar can tell you about your entire workspace environment. The following symbols convey the following message: \n $(bracket-dot) - All the required tools are present in the environment.\n $(warning) - Ansible Lint is missing in the environment. Partial diagnostics will be present in the extension.\n $(error) - Ansible is missing in the environment. None of the features in the extension will work properly.\n**Tools missing?** Move on to the next step to set up your environment properly.",
"id": "install-ansible-environment-package",
"title": "Install the Ansible environment package",
"description": "The Ansible environment package contains all of the dependencies your environment needs to work with Ansible development tools. \n[Install Ansible environment package](command:ansible.install-ansible-dev-tools)\nAlternatively, [switch to another environment](command:ansible.python.set.interpreter) that has those installed.",
"media": {
"markdown": "media/walkthroughs/gettingStarted/ansibleEnvironment.md"
}
},
{
"id": "set-up-ansible-environment",
"title": "Set up an Ansible Environment",
"description": "Select or create a new environment for the extension to pick up the ansible binaries.\n💡 This option also lets you to create a new virtual environment too!.\n[Select Environment](command:ansible.python.set.interpreter)\nIf the ansible tools are missing, install the recommended tools within your environment in just one click for a smooth experience.\n[Install Ansible Tools](command:ansible.install-ansible-dev-tools)",
"media": {
"image": "media/walkthroughs/gettingStarted/all-adt-tools.png",
"altText": "No image found"
}
},
{
"id": "start-writing-ansible-playbook",
"title": "Start writing ansible playbook",
"description": "As you start writing your ansible playbook, the extension will provide all the language support for ansible. \n$(bracket) **Syntax highlighting**\nDistinguishes Ansible keywords, module names and options, jinja expressions and YAML components with distinct highlighting. \n $(gather) **Auto completion**\n Suggests completions based on context, such as vars, plays, blocks, or tasks. \n $(bug) **Diagnostics**\nProvides instant feedback on ansible syntax errors as you type. Additionally, validates ansible content for best practices. \n $(eye) **Hovering**\n Displays documentation when hovering over Ansible elements, sourced from Python module implementations. \n $(go-to-file) **Go to definition**\n Navigates to module implementations, with simple by actions such as clicking while holding ctrl/cmd or using context menus.\nYou can also check the language services logs if required.\n[Open Ansible Services Logs](command:ansible.open-language-server-logs)",
"media": {
"markdown": "media/walkthroughs/gettingStarted/languageFeatures.md"
}
},
{
"id": "run-ansible-playbook",
"title": "Run the playbook",
"description": "Once done writing the playbook, you can run the playbook without having to leave the editor. Simply right-click on the active editor and go to \"Run playbook via...\"\n💡 If you have \"Ansible Navigator\" installed, you can choose to run your playbook using ansible navigator.",
"media": {
"image": "media/walkthroughs/gettingStarted/run-ansible-playbook.png",
"altText": "No image found"
}
},
{
"id": "explore-ansible-extension-settings",
"title": "Know your Ansible Extension Settings",
"description": "The extension provides various settings categorised into sections to give you full control over configurations.\n[Open Extension Settings](command:toSide:ansible.extension-settings.open)\n 🔍 Check out this [section](https://ansible.readthedocs.io/projects/vscode-ansible/#configuration) to learn about each setting and how to use them.",
"completionEvents": [
"onCommand:ansible.extension-settings.open"
],
"media": {
"image": "media/walkthroughs/gettingStarted/ansible-extension-settings.png",
"altText": "No image found for extension settings"
}
},
{
"id": "explore-more-resources",
"title": "Explore more resources",
"description": "📚 Learn what is an Ansible Playbook and how to write one using best practices in this [article](https://www.redhat.com/en/topics/automation/what-is-an-ansible-playbook).\n🔬 Read about the capabilities of various [Ansible Development Tools](https://ansible.readthedocs.io/projects/dev-tools/) to make the best use of them.\n🗒️ Take a look at our [Release Notes](https://github.com/ansible/vscode-ansible/releases) to learn more about the latest features.\n[Learn more](https://www.ansible.com/blog/deep-dive-on-ansible-vscode-extension/)",
"completionEvents": [
"onLink:https://www.ansible.com/blog/deep-dive-on-ansible-vscode-extension/"
],
"media": {
"image": "media/walkthroughs/gettingStarted/learn-more.png",
"altText": "No image found"
"markdown": "media/walkthroughs/gettingStarted/install-adt-components.md"
}
}
]
Expand Down