My playbook runs from this way:

 [ronny@ronny-HP-ProDesk-600-G1-SFF prueba]$ ansible-playbook -e 
@variables.yml ansible_newtemplate.yml 
 [WARNING]: provided hosts list is empty, only localhost is available. Note
that the implicit localhost does not match 'all'


PLAY [localhost] 
***************************************************************

TASK [Gathering Facts] 
*********************************************************
ok: [localhost]

TASK [Buscar credenciales de AWS] 
**********************************************
ok: [localhost]

TASK [Abortar si faltan definir algunas variables] 
*****************************
skipping: [localhost]

TASK [Incluir variable de AMIs] 
************************************************
ok: [localhost]

TASK [Definir Region AWS] 
******************************************************
ok: [localhost]

TASK [Filtrar AMI deseada] 
*****************************************************
ok: [localhost]

TASK [Buscar el AMI mas reciente] 
**********************************************
ok: [localhost]

TASK [Definir variable para la AMI mas reciente] 
*******************************
ok: [localhost]

TASK [Definir variables acorde a la AMI seleccionada] 
**************************
ok: [localhost]

TASK [Formatear fecha y hora en variable] 
**************************************
ok: [localhost]

TASK [Generar string aleatorio] 
************************************************
changed: [localhost]

TASK [Definir nombre de job aleatorio] 
*****************************************
ok: [localhost]

TASK [Crear directorio de trabajo] 
*********************************************
ok: [localhost]

TASK [Crear inventario] 
********************************************************
changed: [localhost]

TASK [Crear archivo JSON para packer] 
******************************************
changed: [localhost]

TASK [Crear archivo de variables] 
**********************************************
changed: [localhost]

TASK [Crear AMI de Windows Server 2016 con Packer] 
*****************************
changed: [localhost]

TASK [Mostrar resultado de creacion de AMI] 
************************************
ok: [localhost] => {
    "msg": [
        [
            "packer build -var aws_region=us-east-1 -var 
vm_ami=ami-0b91c01eb7fffd30b -var vm_size=t3a.small -var 
os_adminuser=ec2-user -var vm_name=windows-server-2016 -machine-readable 
update_template-aeTcbdogsoab.json"
        ]
    ]
}

PLAY RECAP 
*********************************************************************
localhost                  : ok=17   changed=5    unreachable=0    
failed=0    skipped=1    rescued=0    ignored=0   


Thanks 

Thanks for your answer Megan Marsh, after this you suggest me.

Here I leave you a link of my more specific problem
https://groups.google.com/forum/#!topic/ansible-project/3x2XbPeceC8

>
>
>
>  
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

-- 
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/99fb826b-1d3e-4258-a3ec-83157cdfa414%40googlegroups.com.

Reply via email to