[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