On Thu, 18 May 2023 at 08:44, Sac Isilia <udaypratap.sing...@gmail.com> wrote: > > Hi Team, > > I have changed to standard jinja2 template , even then the error is same. It > fails to find xvdb but it finds xvda2 . The syntax to extract UUID is same > and both values are present in the ansible localhost -m setup command output > . This playbook is running on localhost only.
There is nothing wrong with the template. The problem is that the playbook is not run against the host that you think it is run. And because they have a similar partitioning setup, a few common devices exist, but some other do not. So, it's not really an ansible problem, but rather a problem with how you invoke ansible, in your environment. That consists of "existing test RHEL 7 machine", a "jenkins" system, and various incarnations of "localhost". Try to get that clear a bit. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAF8BbLbZGnr8OYcXKiRsk82xJ%2BFsOrUH4HFVghGGBdeBHbw%3DFw%40mail.gmail.com.