Task is to provision an instance with terraform and install tomcat with ansible using a jenkins job. I’ve been able to this on the server using terraform apply. When i try to do it on Jenkins it fails and on looking at the output when it gives permission denied when trying to access the file path where the key is. I need a solution or someone who has experienced similar because I’ve tried a lot of things. whoami is tomcat, because Jenkins is running on tomcat. Jenkins output
top of terraform main.tf file
ive tried changing file permission, adding tomcat to wheel group, root group, adding tomcat to sudoers NO:PASSWD. Still gives permission denied
peter oliseh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.