<p dir="auto">If in my playbook I do:</p>
<ul dir="auto">
<li>name: Install Ruby {{ ruby_version }}<br>
It would be cool if when that message displays on stdout, it replaced {{ ruby_version }} with the value for that variable.</li>
</ul>
<p dir="auto">Hi,</p>
<p dir="auto">It would be great if vars_prompt could be taggable ;<br>
permitting :<br>
ansible-playbook my_playbook.yml --tags "config"<br>
To ask for password.</p>
<p dir="auto">But :<br>
ansible-playbook my_playbook.yml --tags "import"<br>
To not ask it.</p>
<p dir="auto">Sample :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="vars_prompt:
    - name: &quot;root_password&quot;
       prompt: &quot;the future root password&quot;
       encryption: &quot;md5_crypt&quot;
       confirm: True
       private: True
       salt_size: 7
       salt: &quot;blv&quot;
       tags: config

vars_prompt:
    - name: &quot;root_password&quot;
       prompt: &quot;the future root password&quot;
       confirm: True
       private: True
       tags:
         - config
         - check"><pre class="notranslate"><code class="notranslate">vars_prompt:
    - name: "root_password"
       prompt: "the future root password"
       encryption: "md5_crypt"
       confirm: True
       private: True
       salt_size: 7
       salt: "blv"
       tags: config

vars_prompt:
    - name: "root_password"
       prompt: "the future root password"
       confirm: True
       private: True
       tags:
         - config
         - check
</code></pre></div>
<p dir="auto">Thanks.</p>