Skip to content
This repository has been archived by the owner on Nov 7, 2021. It is now read-only.
/ vs-language-ansible Public archive

Ansible syntax highlighting extension for VScode editor

License

Notifications You must be signed in to change notification settings

haad/vs-language-ansible

Repository files navigation

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 [email protected] 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"
    }

About

Ansible syntax highlighting extension for VScode editor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published