Created
October 17, 2020 13:59
-
-
Save senorsmile/1bf4b68820460f612a2da8c345237f3b to your computer and use it in GitHub Desktop.
vim - convert ansible one line tasks to multiline yaml
This file contains hidden or 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
| :%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