Hi, I’m trying to write ansible to install/configure the opendistro security plugin on top of elasticsearch. I’m using the opendistro_security/tools/securityadmin.sh to initialize the plugin, but I understand that the shell script is not idempotent: I can’t run it without clobbering any user-defined roles and role-mappings. So, I need a way to determine whether the opendistro security plugin has been initialized.
Should I just call the shell script with the --show-info argument? When opendistro_security hasn’t yet been initialized, it fails with a stack trace and return code 255. I assume it will do otherwise when it’s been initialized. Is there a better way to do this?
Thanks!