I created and configured my instance and I woud like to create thousands of the same instances from the original one. I manualy created an image (ami) from my original instance and I would like to use following playbook which should fro testing purposes create only 2 additional instances (requirments met: boto, exported access and secret keys):
I am running this code form the original instance, and as a result I got nothing: no errors, no actions, just this:
===============================================================
PLAY [localhost] **************************************************************
GATHERING FACTS ***************************************************************
<localhost> REMOTE_MODULE setup
<localhost> EXEC ['/bin/sh', '-c', 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1489 585887.35-241432469012233 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-148958588 7.35-241432469012233 && echo $HOME/.ansible/tmp/ansible-tmp-1489585887.35-241432 469012233']
<localhost> PUT /tmp/tmpdsMH2o TO /home/ubuntu/.ansible/tmp/ansible-tmp-14895858 87.35-241432469012233/setup
<localhost> EXEC ['/bin/sh', '-c', '/usr/bin/python /home/ubuntu/.ansible/tmp/an sible-tmp-1489585887.35-241432469012233/setup; rm -rf /home/ubuntu/.ansible/tmp/ ansible-tmp-1489585887.35-241432469012233/ >/dev/null 2>&1']
ok: [localhost]
PLAY RECAP ********************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=0
====================================