need to pull value from mysql (or elsewhere) as a variable

17 views
Skip to first unread message

Gabriel Forster

unread,
Jul 20, 2016, 10:53:18 AM7/20/16
to Ansible Project
The servers here have nfs-mounted volumes. I need to get that volume name (stored in mysql) and make a symlink to it. Any idea how to accomplish this without manual intervention?

Thanks!

Mark Phillips

unread,
Jul 20, 2016, 4:47:28 PM7/20/16
to Ansible Project
Hello,

You could use a lookup or command to run a mysql query.

Although not specifically what you're looking for, this example does go to somewhere remote to get a value...


Cheers,

--Mark
Reply all
Reply to author
Forward
0 new messages