<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Roles on C2 Platform</title><link>https://next.c2platform.org/tags/roles/</link><description>Recent content in Roles on C2 Platform</description><generator>Hugo</generator><language>en</language><atom:link href="https://next.c2platform.org/tags/roles/index.xml" rel="self" type="application/rss+xml"/><item><title>Prefixing Public, Internal, and Project Variables in Ansible</title><link>https://next.c2platform.org/docs/guidelines/coding/var-prefix/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://next.c2platform.org/docs/guidelines/coding/var-prefix/</guid><description>&lt;div class="alert alert-primary" role="alert">


 Prefix public 




 
 
 
 
 
 
 
 
 
 
 
 
 
&lt;a class="term-link" href="https://next.c2platform.org/docs/glossary/#role-variable" title="Glossary term: Click for definition">role variables&lt;/a> with the role name, for example
&lt;code>haproxy_frontends&lt;/code>. Prefix internal role variables with &lt;code>__role_name_&lt;/code>, for
example &lt;code>__haproxy_frontends_rendered&lt;/code>. Prefix inventory-only





 
 
 
 
 
 
 
 
 
 
 
 
 
&lt;a class="term-link" href="https://next.c2platform.org/docs/glossary/#project-variable" title="Glossary term: Click for definition">project variables&lt;/a> with a project prefix such as &lt;code>c2_&lt;/code>. Use documented upstream
&lt;code>ansible_*&lt;/code> variables only for Ansible-defined behavior such as
&lt;code>ansible_become_user&lt;/code>.

&lt;/div>

&lt;h2 id="problem">Problem&lt;/h2>
&lt;p>Without a clear prefixing rule it is not always obvious whether a variable is a
role&amp;rsquo;s public interface, an internal helper variable, or an inventory-only
project variable.&lt;/p></description></item></channel></rss>