Hi,my current usecase is to walk around multiple MySQL DB hosts and remove user from them. Sounds like a nice usecase for mysql_user module. Bit of complication: all hosts have different root credentials. I do not want to either hardcode credentials into the playbook/CLI invocation nor do I feel comfortable sticking it on every box under ${HOME}/.my.cnf . What are current recommendations for this kind of scenario. I've seen vars_prompt, however since I'll need it per-host: how do I do that? Another thing - since we're talking "action" vs "configuration" I felt it's a task for "ansible CLI" vs "ansible-playbook", am I understanding things correctly? What shall I do with multiple hosts and their login credentials?
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
The typical way to keep secret data is to load them via "vars_files" from a directory outside of your main playbooks repository.
It is perfectly fine to set up playbooks for doing common tasks if you want to, I actually don't use /usr/bin/ansible hardly ever, except maybe to reboot some nodes, or to check something simple like uptime.Though if you want to use the ansible program instead, that is fine too.But playbooks are for all kinds of processes, not just configuration.Rolling updates of applications are a particulary common non-OS-config task.
ok, good to know. I just got a feeling that ansible is "more natural" in setting things up, as running tasks becomes a bit more cumbersome with all the output suppressed etc. "ansible" in those cases is pleasantly verbose :)
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
That's why there is the "-v" option to ansible-playbook :)
Hi,my current usecase is to walk around multiple MySQL DB hosts and remove user from them. Sounds like a nice usecase for mysql_user module. Bit of complication: all hosts have different root credentials. I do not want to either hardcode credentials into the playbook/CLI invocation nor do I feel comfortable sticking it on every box under ${HOME}/.my.cnf . What are current recommendations for this kind of scenario. I've seen vars_prompt, however since I'll need it per-host: how do I do that?
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
"host_vars" and "group_vars" perhaps?
--