Use hosts: all More detailed discussion in:
https://stackoverflow.com/questions/21966246/packer-ansible-how-to-specify-the-inventory-file -R.Rao On Tue, 2 Apr 2019 at 23:40, <[email protected]> wrote: > Hello, > > I’m trying to call a playbook from Packer for the first time. I’m using > the Packer Ansible provisioner. The documentation says that Packer will > “dynamically create an inventory file to use with the playbook” If this is > the case, How should I edit my playbook? As it is now it has a “hosts” > entry - should I just remove that? It looks like: > > - hosts: ec2lin > > remote_user: ec2-user > > become: yes > > become_user: root > > tasks: > > - name: run yum update -y using yum module > > yum: > > name: "*" > > state: latest > > Thank You much for any help > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/d64c9bd8-ed4f-4066-bac9-1e0a19e1b367%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/d64c9bd8-ed4f-4066-bac9-1e0a19e1b367%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAKbF63iBXNM2Rkrr1evN1Ou9u03wCAsbyz_axteWthLu2_%3DcZg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
