Ansible syntax highlighting extension for VScode editor
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
images
syntaxes
tests
.gitignore
LICENSE.md
README.md
ansible.configuration.json
package.json
vsc-extension-quickstart.md

README.md

Ansible Syntax Highlighting Extension

  • Ansible: It's based on the original Ansible Sublime-text package with my own fixes.
  • Ansible (advanced) : It's based on YAML language of 2015 FichteFoll fichtefoll2@googlemail.com with modifications to support :
    • Jinja language
    • Jinja expressions for ansible conditions (when, changed_when, failed_when, check_mode)
    • Some YAML block scalar

Setup File associations

Settings for VScode to automatically assign Ansible syntax to files.

    "files.associations": {
        "**/defaults/**/*": "ansible",
        "**/tasks/**/*.yml" : "ansible",
        "**/handler/*.yml" : "ansible",
        "**/*_vars/**/*.yml" : "ansible",
        "**/roles/**/*.yml" : "ansible",
        "**/playbooks/**/*.yml" : "ansible",
        "**/*ansible*/**/*.yml" : "ansible",
        "**/vars/**/*.yml": "ansible",
        "**/inventory/*/*": "ansible"
    }