arriven / db1000n

MIT License
1.17k stars 201 forks source link

Ansible role for AWS instance creation and account creation instruction #483

Closed ralfeus closed 2 years ago

ralfeus commented 2 years ago

Description

An Ansible playbook that creates Linux instance on AWS account and instruction on AWS account creation and playbook execution

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Manually executed on local PC

Test Configuration

Logs

[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

PLAY [Prepare AWS account and create instances] *****************************************************************************************************************************

TASK [Add SSH key] **********************************************************************************************************************************************************
changed: [localhost]

TASK [Create SG with allowed management traffic] ****************************************************************************************************************************
changed: [localhost]

TASK [Create Linux instance] ************************************************************************************************************************************************
changed: [localhost]

TASK [Add all Linux instance public IPs to host group] **********************************************************************************************************************
changed: [localhost]

TASK [Wait SSH to start] ****************************************************************************************************************************************************
ok: [localhost]

PLAY [Configure Linux instance] *********************************************************************************************************************************************

TASK [Gathering Facts] ******************************************************************************************************************************************************
[WARNING]: Platform linux on host XXX.XXX.XXX.XXX is using the discovered Python interpreter at /usr/bin/python, but future installation of another Python interpreter could
change this. See https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information.
ok: [XXX.XXX.XXX.XXX]

TASK [Install packages] *****************************************************************************************************************************************************
changed: [XXX.XXX.XXX.XXX]

TASK [Start docker] *********************************************************************************************************************************************************
changed: [XXX.XXX.XXX.XXX]

TASK [Start db1000n container] **********************************************************************************************************************************************
changed: [XXX.XXX.XXX.XXX]

PLAY RECAP ******************************************************************************************************************************************************************
XXX.XXX.XXX.XXX              : ok=4    changed=3    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
localhost                  : ok=5    changed=4    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   

Screenshots