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.

936 views
Skip to first unread message

sowmithri d

unread,
Feb 6, 2023, 1:18:19 PM2/6/23
to Ansible Project
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.

Matt Martz

unread,
Feb 6, 2023, 1:24:45 PM2/6/23
to ansible...@googlegroups.com
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` 

--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/85e82971-16e3-4e22-a943-f691b2b870dan%40googlegroups.com.


--
Matt Martz
@sivel
sivel.net

sowmithri d

unread,
Feb 6, 2023, 1:48:08 PM2/6/23
to Ansible Project
Hi Martz,

Running  `chmod -x /space/build/ansible-vault-password.txt`   command facing the same error 

--Sowmithri  
Reply all
Reply to author
Forward
0 new messages