Disable specific roles for a node in 7.X+

Hello, I noticed that the manner for enabling specific roles for nodes changed between Elasticsearch versions 6.X and 7.X, and am wondering what is the new way to disable specific roles for nodes?

In particular, the documentation here provides examples on how to enable specific roles for a node, but not how to disable specific roles.

As an example, how do I disable ALL roles except the master role? Do I need to specify every other role in the node.roles setting, i.e.:
node.roles: [ data, data_content, data_hot, data_warm, data_cold, ingest, ml, remote_cluster_client ],
or is there a simpler way that involves just specifying which roles to disable which works in ES versions 7.X+?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.