Ansibleのlineinfileアクションでコロン(:)を書く

YAMLにコロン(:)を書くとシンタックスエラーとなる。

ERROR: Syntax Error while loading YAML script, /root/ansible/roles/common/tasks/zabbix.yml
Note: The error may actually appear before this position: line 5, column 77
- name: sudo config
  lineinfile: dest=/etc/sudoers state=present regexp='^zabbix ALL = NOPASSWD: /sbin/service' line='zabbix ALL = NOPASSWD: /sbin/service'

↓に載ってた。
https://groups.google.com/forum/#!topic/ansible-project/tP6ExzKJN8Q

これを

- name: sudo config
  lineinfile: dest=/etc/sudoers state=present regexp="^zabbix ALL = NOPASSWD: /sbin/service" line="zabbix ALL = NOPASSWD: /sbin/service"

こうする。

- name: sudo config
  action: 'lineinfile dest=/etc/sudoers state=present regexp="^zabbix ALL = NOPASSWD: /sbin/service" line="zabbix ALL = NOPASSWD: /sbin/service"'