Hi Philipp,
I don't have a very long and intense experience with Ansible.
It doesn't seem complex to me, you have to use the same logic as if you were doing it manually.
The biggest problem I have encountered is modifying a configuration file whose different cases are complex. Even with another method, it would be.