amazon web services - ansible ec2 ami module not working time out -


i'm trying implement playbook dealing amazon ec2 . came part want create new image( used role ), here did:

--- - debug: msg="{{ id_image }}" - ec2_ami:     instance_id: "{{ id_image }}"     name: azzouz     wait: no     region: "{{ aws_region }}"     tags:       project: "{{ project }}"   register: image 

i tried specifiy timeout 900 , it's still not working. changed wait: no , i'm still dealing same problem, here last part of error:

 ... return self._sslobj.read(len)\nssl.sslerror: read operation timed out\n", "module_stdout": "", "msg": "module failure", "parsed": false} 

could please me.

you don't have set wait: no. use syntax , work.

- ec2_ami:     aws_access_key: xxxxxxxxxxxxxxxxxxxxxxx     aws_secret_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx     instance_id: i-xxxxxx     wait: yes     name: newtest     tags:       name: newtest       service: testservice   register: instance 

Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -