Defining host as variable in Ansible hosts file
<p>I have a rather simple <code>hosts</code> file </p>

<pre><code>[clients]
qas0062
[dbs_server]
qas0063
</code></pre>

<p>For the users of the project we don't want them to modify <code>hosts</code> file but rather we have a separate <code>user.config.yml</code> file that contain various user-configurable parameters. There we have entry such as</p>

<pre><code>dbs_server: qas0065
</code></pre>

<p>So the question is: is it possible to use a variable in the <code>hosts</code> file that would use a value defined in <code>user.config.yml</code>? And what would be the format?</p>