can i have my ansible machine remotely on a different machine and then use packer to point to the playbook file which is present in the remote ansible machine.
On Fri, 27 Mar 2020 at 22:42, Megan Marsh <[email protected]> wrote: > Either you must have ansible installed on the machine running Packer, or > you must have it installed on the machine being provisioned and use the > "ansible-remote" provisioner. The playbook file needs to be on the machine > where ansible is installed. > > On Fri, Mar 27, 2020 at 5:58 AM Sunil Kathait <[email protected]> > wrote: > >> i am using packer for the automated image creation on openstack. i am >> using ansible for provisioning. >> >> >> my packer machine is different from my ansible machine and in this case >> how can i use the provisioner: >> >> >> "provisioners": [ >> >> >> { >> >> "type": "ansible", >> >> "playbook_file": "./playbook.yml", "extra_arguments": "-vvvv" } ], >> >> >> >> playbook.yml is in the different machine. how can i redirect packer to my >> ansible machine ip address and the location of the yaml file. >> >> >> Do you think that it is mandatory to have packer and ansible installed on >> the same system to use the ansible provisioning for packer. >> >> -- >> This mailing list is governed under the HashiCorp Community Guidelines - >> https://www.hashicorp.com/community-guidelines.html. Behavior in >> violation of those guidelines may result in your removal from this mailing >> list. >> >> GitHub Issues: https://github.com/mitchellh/packer/issues >> IRC: #packer-tool on Freenode >> --- >> You received this message because you are subscribed to the Google Groups >> "Packer" 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/packer-tool/6ae92de8-34e7-4b17-a225-7a8c7a7a9f0e%40googlegroups.com >> <https://groups.google.com/d/msgid/packer-tool/6ae92de8-34e7-4b17-a225-7a8c7a7a9f0e%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/packer/issues > IRC: #packer-tool on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Packer" 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/packer-tool/CAGPV1uqYc4hh9JnAO5EmJqVuACuS5mo5AixuSz%3D0g1jmkb9gyA%40mail.gmail.com > <https://groups.google.com/d/msgid/packer-tool/CAGPV1uqYc4hh9JnAO5EmJqVuACuS5mo5AixuSz%3D0g1jmkb9gyA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Thanks and regards, Sunil Kathait 7259278418 -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" 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/packer-tool/CALB5gVgmy9PZwMpL%2BfWNXsrGR3eD1Nuhi37%3DBkCavn9YJxha5w%40mail.gmail.com.
