<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hey Moti,
<div class=""><br class="">
</div>
<div class="">I overlooked the general pattern of “ansible_*”. Was successful in what I was trying to do with it. Thanks for the help :)</div>
<div class=""><br class="">
<div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">
Regards, </div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">
Tasdik Rahman</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">
<a href="http://tasdikrahman.me/" class="">http://tasdikrahman.me/</a></div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">
<br class="">
</div>
<br class="Apple-interchange-newline">
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 24-May-2017, at 3:23 PM, Moti Asayag <<a href="mailto:masayag@redhat.com" class="">masayag@redhat.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
Hi Tsadik,<br class="">
<div class="">
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Tue, May 23, 2017 at 12:17 PM, Tasdik Rahman<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:prodicus@outlook.com" target="_blank" class="">prodicus@outlook.com</a>></span><span class="Apple-converted-space"> </span>wrote:<br class="">
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;">
<div style="overflow-wrap: break-word;" class="">
<div class=""><span style="font-family: Consolas, 'Lucida Console', monospace; font-size: 12.8px; font-variant-ligatures: normal; background-color: rgb(240, 247, 255);" class="">Hello,</span></div>
<span style="font-family: Consolas, 'Lucida Console', monospace; font-size: 12.8px; font-variant-ligatures: normal; background-color: rgb(240, 247, 255);" class="">
<div class=""><span style="font-family: Consolas, 'Lucida Console', monospace; font-size: 12.8px; font-variant-ligatures: normal; background-color: rgb(240, 247, 255);" class=""><br class="">
</span></div>
I was having a look at the ansible playbooks to autmate the installation of ovirt-engine on a remote host here at </span><a href="https://github.com/rhevm-qe-automation/ovirt-ansible/" target="_blank" style="font-family: Consolas, 'Lucida Console', monospace; font-size: 12.8px; font-variant-ligatures: normal; background-color: rgb(240, 247, 255);" class="">https://github.com/rhevm-<wbr class="">qe-automation/ovirt-ansible/</a><span style="font-family: Consolas, 'Lucida Console', monospace; font-size: 12.8px; font-variant-ligatures: normal; background-color: rgb(240, 247, 255);" class=""> <wbr class="">specifically
the role engine-setup. I was curious where this jinja variable {{ansible_fqdn}} gets set.</span><span style="font-family: Consolas, 'Lucida Console', monospace; font-size: 12.8px; font-variant-ligatures: normal; background-color: rgb(240, 247, 255);" class=""> </span><span style="font-family: Consolas, 'Lucida Console', monospace; font-size: 12.8px; font-variant-ligatures: normal; background-color: rgb(240, 247, 255);" class="">I
could not see it being assigned in the playbooks. Or do we set it during the playbook execution as a command line arg?</span>
<div class="">
<div class=""><font face="Consolas, Lucida Console, monospace" class=""><span style="font-size: 12.8px; background-color: rgb(240, 247, 255);" class=""><br class="">
</span></font></div>
</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class=""><span style="font-family: monospace, monospace;" class="">The ansible_fqdn is taken from ansible facts. You can evaluate it on the target host by running (replace<span class="Apple-converted-space"> </span></span><span style="font-family: monospace, monospace;" class=""><span style="font-family: monospace, monospace;" class=""></span><span style="font-family: monospace, monospace;" class=""><span style="font-family: monospace, monospace;" class="">target_host_name</span></span><span class="Apple-converted-space"> </span>with
the proper host name or localhost for testing only):<br class="">
ansible<span class="Apple-converted-space"> </span></span><span style="font-family: monospace, monospace;" class=""><span style="font-family: monospace, monospace;" class="">target_host_name</span><span class="Apple-converted-space"> </span>-m setup -a 'filter=ansible_fqdn'<br class="">
<br class="">
</span></div>
<div class=""><span style="font-family: monospace, monospace;" class="">You can read more about jinga filters by facts here:<br class="">
<a href="http://docs.ansible.com/ansible/playbooks_variables.html#jinja2-filters" class="">http://docs.ansible.com/ansible/playbooks_variables.html#jinja2-filters</a><br class="">
</span></div>
<div class=""><span style="font-family: monospace, monospace;" class=""><br class="">
</span></div>
<div class=""><span style="font-family: monospace, monospace;" class="">Also, you can read more about fact/variables precedence here:<br class="">
<a href="http://docs.ansible.com/ansible/playbooks_variables.html#variable-precedence-where-should-i-put-a-variable" class="">http://docs.ansible.com/ansible/playbooks_variables.html#variable-precedence-where-should-i-put-a-variable</a><br class="">
</span></div>
<div class=""> </div>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;">
<div style="overflow-wrap: break-word;" class="">
<div class="">
<div class=""><font face="Consolas, Lucida Console, monospace" class=""><span style="font-size: 12.8px; background-color: rgb(240, 247, 255);" class=""></span></font></div>
<div class=""><font face="Consolas, Lucida Console, monospace" class=""><span style="font-size: 12.8px; background-color: rgb(240, 247, 255);" class="">Relevant search </span></font><a href="https://github.com/rhevm-qe-automation/ovirt-ansible/search?utf8=%E2%9C%93&q=ansible_fqdn&type=" target="_blank" class="">https://github.com/<wbr class="">rhevm-qe-automation/ovirt-<wbr class="">ansible/search?utf8=%E2%9C%93&<wbr class="">q=ansible_fqdn&type=</a></div>
<div class="">
<div class=""><font face="Consolas, Lucida Console, monospace" class=""><span style="font-size: 12.8px; background-color: rgb(240, 247, 255);" class=""><br class="">
</span></font></div>
<div class=""><font face="Consolas, Lucida Console, monospace" class=""><span style="font-size: 12.8px; background-color: rgb(240, 247, 255);" class=""><br class="">
</span></font></div>
<div class="">
<div class=""><font face="Consolas, Lucida Console, monospace" class=""><span style="font-size: 12.8px; background-color: rgb(240, 247, 255);" class=""><br class="">
</span></font></div>
<div class="">
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">
Regards, </div>
<span class="gmail-HOEnZb"><font color="#888888" class="">
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">
Tasdik Rahman</div>
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">
<a href="http://tasdikrahman.me/" target="_blank" class="">http://tasdikrahman.me/</a></div>
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">
<br class="">
</div>
<br class="gmail-m_3592807859517583868Apple-interchange-newline">
</font></span></div>
<br class="">
</div>
</div>
</div>
</div>
<br class="">
______________________________<wbr class="">_________________<br class="">
Devel mailing list<br class="">
<a href="mailto:Devel@ovirt.org" class="">Devel@ovirt.org</a><br class="">
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank" class="">http://lists.ovirt.org/<wbr class="">mailman/listinfo/devel</a><br class="">
</blockquote>
</div>
<br class="">
<br clear="all" class="">
<br class="">
--<span class="Apple-converted-space"> </span><br class="">
<div class="gmail_signature">
<div dir="ltr" class="">
<div class="">Regards,<br class="">
</div>
Moti</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>