Greetings,
I have been trying out packer to automatically create images with the required software installed. I'm trying out the ansible provisioner and wrote it down as such :
{
"provisioners": [
{
"type": "shell",
"inline": [
"yum install epel-release",
"yum install ansible"
]
},
{
"type": "ansible-local",
"playbook_file": "/usr/local/imagecreation/images/centos7-wordpress.yml",
"playbook_dir": "/usr/local/imagecreation/images",
"inventory_groups" : "images"
}
]
So I install the epel repository first, then I install ansible. After I run the ansible playbook. However, I am getting the following error :
Error uploading script: Process exited with: 1. Reason was: ()
It's not clear what script it's talking about. Is it the ansible files? But then again, is there a way I could know why this failed?