Recently in ceph-ansible [https://github.com/ceph/ceph-ansible] I've been playing around with adding an entry to an existing line, in a configuration file that isn't managed by Ansible. In general you would want to use the template module to
ceph-ansible
Restarting services in serial in Ansible
We've been running into issues in the ceph-ansible project around restarting services in serial [https://github.com/ceph/ceph-ansible/pull/2287/], in a way that is consistent and doesn't do unnecessary restarts. This goes back further than the above linked
How to restart ceph-radosgw
I've been playing around with Ceph and Ceph RADOS Gateway recently. Mostly using the excellent ceph-ansible [http://github.com/ceph/ceph-ansible] project. I was trying to swap the ip address that was being used for the RadosGW service by setting