You may use the below playbook to fulfill your requirements. It makes use of lineinfile module with regular expression to capture the line to be modified.
This will work, but it's not idempotent.
So if you run it again it will add the two CIDRs again.
For it to work idempotently, the regex will need to match both what
you have before and what you get after.
Something like this should work:
not idempotent when the list ordering change, plus some others
for each item in the list you have to add it if not already there (requires a look-ahead expression in regex)
that is what make it quite complex at the end, but doable as long as
per the spec the only need is to append to an existing list.
hence the idea to leverage the template module
that also can deal with removal of item from the list