community / community.cassandra / 1.3.3 / module / cassandra_decommission Deactivates a node by streaming its data to another node. Authors: Rhys Campbell (@rhysmeister)community.cassandra.cassandra_decommission (1.3.3) — module
Install with ansible-galaxy collection install community.cassandra:==1.3.3
collections: - name: community.cassandra version: 1.3.3
Deactivates a node by streaming its data to another node.
Uses the nodetool ring command to determine if the node is still in the cluster.
To ensure correct function of this module please use the ip address of the node in the host parameter.
- name: Decommission a node community.cassandra.cassandra_decommission:
host: aliases: - login_host default: 127.0.0.1 description: - The hostname. type: str port: aliases: - login_port default: 7199 description: - The Cassandra TCP port. type: int debug: default: false description: - Add additional debug to module output. type: bool password: aliases: - login_password description: - The password to authenticate with. type: str username: aliases: - login_user description: - The username to authenticate with. type: str nodetool_path: description: - The path to nodetool. type: str password_file: aliases: - login_password_file description: - Path to a file containing the password. type: str nodetool_flags: default: -Dcom.sun.jndi.rmiURLParsing=legacy description: - Flags to pass to nodetool. type: str
msg: description: A message indicating what has happened. returned: on failure type: bool rc: description: Return code of the executed command. returned: always type: int