Cannot us when root login disabled.
gdeploy cannot be used when root login in disabled. Disabling root login is a common security measure that many sites enforce. When however password less login for a non root user is available, and this user can do sudo then gdeploy ought to be able to work, as ansible can work in such an environment.
All that is probalby needed is replace: "remote_user: root" with "become: true" in all the playbooks.
I tried this myself, and like this I cold use gdeploy with a non root user.
Thanks for this input. We had chosen to use root as gluster wanted to user to be root to work. We had not explored the sudo options. I will work on this for future releases.
+1 on this - this is a hard requirement and was promised to customers from the Console folks (which will rely on you to implement this)
The become: true method should work seamless.
Ack! Will do this, should be available for next release.
@zeichenanonym a workaround is to use -u userB -b on the command line..this normally works even with playbooks written for root use. but I do agree the playbooks would ideally handle this either way. it is a deficiency in how ansible works imo
@japplewhite How is this ansible's fault if you specify explicitly that it should use the root user? Will the Console use the -u and -b switch to enable non-root usage?
+1, it would help me a lot if gdeploy could leverage sudo