title: how to filter/trim a particular variable value in ansible
body: <p>I have a requirement where I have to extract/filter particular length of a string in ansible. For example:-</p>
  <p>My node machine has following hostname:- jpujenkins, jpunessus.</p>
  <p>So in fact variable we will have.</p>
  <p>{{ ansible_hostname }} --&gt; jpujenkins.</p>
  <p>{{ ansible_hostname }} --&gt; jpunessus</p>
  <p>But I want to remove first three letter say 'jpu' from the all node hostname.</p>
  <p>Desired output :- jenkins, nessus</p>
  <p>Also can be capitalize the letter say JENKINS, NESSUS?</p>