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.
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update
How Has This Been Tested?
Manually executed on local PC
Test Configuration
Platform: Ubuntu 20.04
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
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
Screenshots