Tagged in

Tips And Tricks

OpsOps
OpsOps
Tech blog on Linux, Ansible, Ceph, Openstack and operator-related programming
More information
Followers
595
Elsewhere
More, on Medium

How to remove a host from a group in Ansible

You can’t. But it’s possible to work around.

There is an unsolved issue of remove_host module for Ansible. There is add_host module, which allows you to add host into a group dynamically (or even…