Skip to content

Instantly share code, notes, and snippets.

@yteraoka
Created September 9, 2013 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yteraoka/6496608 to your computer and use it in GitHub Desktop.
Save yteraoka/6496608 to your computer and use it in GitHub Desktop.
Ansible の YAML で「:」を使う方法 ref: http://qiita.com/yteraoka/items/2afaa39d0635c7af1de4
colon: ':'
ERROR: Syntax Error while loading YAML script, ...
Note: The error may actually appear before this position: line 1, column 63
- lineinfile: >
regexp='^%wheel'
line='%wheel ALL=(ALL) NOPASSWD: ALL'
dest=/etc/sudoers
- lineinfile: >
regexp='^%wheel'
line='%wheel ALL=(ALL) NOPASSWD{{colon}} ALL'
dest=/etc/sudoers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment