This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
augroup ansible_yaml | |
autocmd! | |
au BufRead playbook.yml,roles/*yml,ansible*yml call SetAnsibleOpts() | |
augroup END | |
function SetAnsibleOpts() | |
syntax match yamlInterpolate '$\w\+\|{{[^}]\+}}' | |
syntax match yamlInterpolate '$\w\+\|{{[^}]\+}}' contained containedin=yamlString | |
syntax match yamlConstant '\(with_items\|when\|name\|notify\|ignore_errors\|changed_when\|register\|with_password\):' | |
endfunction |