The error pretty much explains it. That file seems to be a regular text file, but has the execute bit set. If the execute bit (permission) is applied to the file, it is treated as a script, and not a flat file to read the password from.
In your case, it seems you need to run `chmod -x /space/build/ansible-vault-password.txt` On Mon, Feb 6, 2023 at 12:18 PM sowmithri d <[email protected]> wrote: > Hello, > Can any help me to fix this issue. > I am facing an below error while executing ansible script > > ERROR! Problem running vault password script > /space/build/ansible-vault-password.txt ([Errno 8] Exec format error: > '/space/build/ansible-vault-password.txt'). If this is not a script, remove > the executable bit from the file. > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/85e82971-16e3-4e22-a943-f691b2b870dan%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/85e82971-16e3-4e22-a943-f691b2b870dan%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Matt Martz @sivel sivel.net -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAD8N0v8sj2Q%2BMaThUJ1WcN-9tooK4Km5yr%2BzR3RCoZ9fx3nynQ%40mail.gmail.com.
