title: Unable to use custom Ansible configuration file in Packer
body: <p>I am trying to build a Docker image with Packer and use Ansible to provision said image. I would like to use custom Ansible plugins that will be defined in the configuration file but cannot seem to get Packer to properly target the configuration file. I have tried placing the path to the configuration file in <code>ansible_env_vars</code> and have also tried to use the <code>extra_arguments</code> block to also point to the configuration file. I would also like to note that the Packer build will still build the Docker image regardless if it can properly locate the custom configuration file or not.</p>
  <p>Below is an example of what my <code>Ansible Provisioner</code> block looks like, my file structure, as well as the Packer build output logs. Any advice on would be much appreciated.</p>
  <h1>Packer Block</h1>
  <pre><code>    &quot;provisioners&quot;: [
          {
              &quot;type&quot;: &quot;ansible&quot;,
              &quot;playbook_file&quot;: &quot;src/playbook.yml&quot;,
              &quot;ansible_env_vars&quot;: &quot;src/ansible.cfg&quot;,
              &quot;extra_arguments&quot;: [
                  &quot;-vvv&quot;,
                  &quot;--extra-vars&quot;, 
                  &quot;'variable={{ user `variable` }} ..... '&quot; 
              ]
          }
      ],
  </code></pre>
  <h1>Packer Build Output</h1>
  <pre><code>    docker: ansible-playbook 2.9.2
      docker:   config file = None
      docker:   configured module search path = ['/Users/andrewgonzalez/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
      docker:   ansible python module location = /usr/local/lib/python3.7/site-packages/ansible
      docker:   executable location = /usr/local/bin/ansible-playbook
  </code></pre>
  <h1>File Structure</h1>
  <p>Keep in mind, I have a Makefile, that will build the Docker image and that lives in my Packer directory. I also have a Makefile in the root directory that will call the Makefile in the Packer directory to execute the build.</p>
  <pre><code>$ tree -d -L 2
  .
  ├── packer
  │   ├── log
  │   └── src
  ├── packerenv
  │   ├── bin
  │   ├── include
  │   └── lib
  └── test
  </code></pre>