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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to