Juniper rule-sets

For those who are using the juniper playbooks, is it me or the
only way to create/edit rule-sets in ansible is to, for instance, have
a template of the relevant session (or the entire config) and replace
it as needed?