Skip to content

Instantly share code, notes, and snippets.

@senorsmile
Created October 17, 2020 13:59
Show Gist options
  • Select an option

  • Save senorsmile/1bf4b68820460f612a2da8c345237f3b to your computer and use it in GitHub Desktop.

Select an option

Save senorsmile/1bf4b68820460f612a2da8c345237f3b to your computer and use it in GitHub Desktop.
vim - convert ansible one line tasks to multiline yaml
:%s/\([a-z0-9_]\+\)=\(\({{ \)\=[a-z0-9._]\+\( }}\)\=\)/\r \1: "\2"/g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment