e.g:
- blockinfile:
insertafter: "^submission inet n - n - - smtpd$"
block: |2
-o syslog_name=postfix/submission
-o ...
The number specifies how many spaces there are that are meaningful, so there's a total of 8 leading spaces, 6 of which are yaml indentation and 2 for the block itself.
From this excellent answer:
http://stackoverflow.com/a/21699210