Skip to content

Instantly share code, notes, and snippets.

@maishsk
Created July 5, 2018 07:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maishsk/a303ef5f604aab641fbc6e24395a4161 to your computer and use it in GitHub Desktop.
Save maishsk/a303ef5f604aab641fbc6e24395a4161 to your computer and use it in GitHub Desktop.
Ansible-intermediate results
root@maishsk-lin:/opt/git/automation-standoff/intermediate/ansible# for i in {1..3}; do echo "starting run $i"; echo "create"; time ansible-playbook create-vpc.yml ; echo "destroy"; time ansible-playbook remove-vpc.yml ; done
starting run 1
create
[WARNING]: Unable to parse /etc/ansible/hosts as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
PLAY [VPC creation playbook] ****************************************************************************************************************************************************************************************
TASK [Create a VPC] *************************************************************************************************************************************************************************************************
changed: [localhost]
TASK [Create subnets for Public network (AZ1)] **********************************************************************************************************************************************************************
changed: [localhost]
TASK [Create subnets for Public network (AZ2)] **********************************************************************************************************************************************************************
changed: [localhost]
TASK [Create subnets for Private network (AZ1)] *********************************************************************************************************************************************************************
changed: [localhost]
TASK [Create subnets for Private network (AZ2)] *********************************************************************************************************************************************************************
changed: [localhost]
TASK [Create a new Internet Gateway] ********************************************************************************************************************************************************************************
changed: [localhost]
TASK [Create NAT Gateway AZ1] ***************************************************************************************************************************************************************************************
changed: [localhost]
TASK [Create NAT Gateway AZ2] ***************************************************************************************************************************************************************************************
changed: [localhost]
TASK [Create the public routing table and associate to Public subnets] **********************************************************************************************************************************************
changed: [localhost]
TASK [Create the routing table for each of the Private Subnet (AZ1)] ************************************************************************************************************************************************
changed: [localhost]
TASK [Create the routing table for each of the Private Subnet (AZ2)] ************************************************************************************************************************************************
changed: [localhost]
PLAY RECAP **********************************************************************************************************************************************************************************************************
localhost : ok=11 changed=11 unreachable=0 failed=0
3m34.781s
destroy
[WARNING]: Unable to parse /etc/ansible/hosts as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
PLAY [VPC destroy playbook] *****************************************************************************************************************************************************************************************
TASK [Get VPC Facts] ************************************************************************************************************************************************************************************************
ok: [localhost]
TASK [Get NATGW facts] **********************************************************************************************************************************************************************************************
ok: [localhost]
TASK [Remove NATGW's] ***********************************************************************************************************************************************************************************************
changed: [localhost] => (item=nat-0289175c7e49c94d4)
changed: [localhost] => (item=nat-008c68338c0f68248)
TASK [Get route table facts] ****************************************************************************************************************************************************************************************
ok: [localhost]
TASK [Remove route tables] ******************************************************************************************************************************************************************************************
changed: [localhost] => (item=rtb-f8856993)
changed: [localhost] => (item=rtb-798b6712)
changed: [localhost] => (item=rtb-7a8b6711)
TASK [Gather IGW facts] *********************************************************************************************************************************************************************************************
ok: [localhost]
TASK [Remove IGW] ***************************************************************************************************************************************************************************************************
changed: [localhost]
TASK [Get subnet facts] *********************************************************************************************************************************************************************************************
ok: [localhost]
TASK [Remove subnets] ***********************************************************************************************************************************************************************************************
changed: [localhost] => (item=192.168.90.0/26)
changed: [localhost] => (item=192.168.90.64/26)
changed: [localhost] => (item=192.168.90.192/26)
changed: [localhost] => (item=192.168.90.128/26)
TASK [Remove VPC] ***************************************************************************************************************************************************************************************************
changed: [localhost]
PLAY RECAP **********************************************************************************************************************************************************************************************************
localhost : ok=10 changed=5 unreachable=0 failed=0
2m0.325s
starting run 2
create
[WARNING]: Unable to parse /etc/ansible/hosts as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
PLAY [VPC creation playbook] ****************************************************************************************************************************************************************************************
TASK [Create a VPC] *************************************************************************************************************************************************************************************************
changed: [localhost]
TASK [Create subnets for Public network (AZ1)] **********************************************************************************************************************************************************************
changed: [localhost]
TASK [Create subnets for Public network (AZ2)] **********************************************************************************************************************************************************************
changed: [localhost]
TASK [Create subnets for Private network (AZ1)] *********************************************************************************************************************************************************************
changed: [localhost]
TASK [Create subnets for Private network (AZ2)] *********************************************************************************************************************************************************************
changed: [localhost]
TASK [Create a new Internet Gateway] ********************************************************************************************************************************************************************************
changed: [localhost]
TASK [Create NAT Gateway AZ1] ***************************************************************************************************************************************************************************************
changed: [localhost]
TASK [Create NAT Gateway AZ2] ***************************************************************************************************************************************************************************************
changed: [localhost]
TASK [Create the public routing table and associate to Public subnets] **********************************************************************************************************************************************
changed: [localhost]
TASK [Create the routing table for each of the Private Subnet (AZ1)] ************************************************************************************************************************************************
changed: [localhost]
TASK [Create the routing table for each of the Private Subnet (AZ2)] ************************************************************************************************************************************************
changed: [localhost]
PLAY RECAP **********************************************************************************************************************************************************************************************************
localhost : ok=11 changed=11 unreachable=0 failed=0
4m3.463s
destroy
[WARNING]: Unable to parse /etc/ansible/hosts as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
PLAY [VPC destroy playbook] *****************************************************************************************************************************************************************************************
TASK [Get VPC Facts] ************************************************************************************************************************************************************************************************
ok: [localhost]
TASK [Get NATGW facts] **********************************************************************************************************************************************************************************************
ok: [localhost]
TASK [Remove NATGW's] ***********************************************************************************************************************************************************************************************
changed: [localhost] => (item=nat-090bab18630ec2c63)
changed: [localhost] => (item=nat-03f8e58360c18f7ba)
TASK [Get route table facts] ****************************************************************************************************************************************************************************************
ok: [localhost]
TASK [Remove route tables] ******************************************************************************************************************************************************************************************
changed: [localhost] => (item=rtb-fa846891)
changed: [localhost] => (item=rtb-828468e9)
changed: [localhost] => (item=rtb-02886469)
TASK [Gather IGW facts] *********************************************************************************************************************************************************************************************
ok: [localhost]
TASK [Remove IGW] ***************************************************************************************************************************************************************************************************
changed: [localhost]
TASK [Get subnet facts] *********************************************************************************************************************************************************************************************
ok: [localhost]
TASK [Remove subnets] ***********************************************************************************************************************************************************************************************
changed: [localhost] => (item=192.168.90.0/26)
changed: [localhost] => (item=192.168.90.192/26)
changed: [localhost] => (item=192.168.90.128/26)
changed: [localhost] => (item=192.168.90.64/26)
TASK [Remove VPC] ***************************************************************************************************************************************************************************************************
changed: [localhost]
PLAY RECAP **********************************************************************************************************************************************************************************************************
localhost : ok=10 changed=5 unreachable=0 failed=0
2m18.901s
starting run 3
create
[WARNING]: Unable to parse /etc/ansible/hosts as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
PLAY [VPC creation playbook] ****************************************************************************************************************************************************************************************
TASK [Create a VPC] *************************************************************************************************************************************************************************************************
changed: [localhost]
TASK [Create subnets for Public network (AZ1)] **********************************************************************************************************************************************************************
changed: [localhost]
TASK [Create subnets for Public network (AZ2)] **********************************************************************************************************************************************************************
changed: [localhost]
TASK [Create subnets for Private network (AZ1)] *********************************************************************************************************************************************************************
changed: [localhost]
TASK [Create subnets for Private network (AZ2)] *********************************************************************************************************************************************************************
changed: [localhost]
TASK [Create a new Internet Gateway] ********************************************************************************************************************************************************************************
changed: [localhost]
TASK [Create NAT Gateway AZ1] ***************************************************************************************************************************************************************************************
changed: [localhost]
TASK [Create NAT Gateway AZ2] ***************************************************************************************************************************************************************************************
changed: [localhost]
TASK [Create the public routing table and associate to Public subnets] **********************************************************************************************************************************************
changed: [localhost]
TASK [Create the routing table for each of the Private Subnet (AZ1)] ************************************************************************************************************************************************
changed: [localhost]
TASK [Create the routing table for each of the Private Subnet (AZ2)] ************************************************************************************************************************************************
changed: [localhost]
PLAY RECAP **********************************************************************************************************************************************************************************************************
localhost : ok=11 changed=11 unreachable=0 failed=0
4m11.297s
destroy
[WARNING]: Unable to parse /etc/ansible/hosts as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
PLAY [VPC destroy playbook] *****************************************************************************************************************************************************************************************
TASK [Get VPC Facts] ************************************************************************************************************************************************************************************************
ok: [localhost]
TASK [Get NATGW facts] **********************************************************************************************************************************************************************************************
ok: [localhost]
TASK [Remove NATGW's] ***********************************************************************************************************************************************************************************************
changed: [localhost] => (item=nat-05db61b43cf3a4a0f)
changed: [localhost] => (item=nat-089343f10a5a72a80)
TASK [Get route table facts] ****************************************************************************************************************************************************************************************
ok: [localhost]
TASK [Remove route tables] ******************************************************************************************************************************************************************************************
changed: [localhost] => (item=rtb-3b806c50)
changed: [localhost] => (item=rtb-df806cb4)
changed: [localhost] => (item=rtb-cb8468a0)
TASK [Gather IGW facts] *********************************************************************************************************************************************************************************************
ok: [localhost]
TASK [Remove IGW] ***************************************************************************************************************************************************************************************************
changed: [localhost]
TASK [Get subnet facts] *********************************************************************************************************************************************************************************************
ok: [localhost]
TASK [Remove subnets] ***********************************************************************************************************************************************************************************************
changed: [localhost] => (item=192.168.90.64/26)
changed: [localhost] => (item=192.168.90.128/26)
changed: [localhost] => (item=192.168.90.0/26)
changed: [localhost] => (item=192.168.90.192/26)
TASK [Remove VPC] ***************************************************************************************************************************************************************************************************
changed: [localhost]
PLAY RECAP **********************************************************************************************************************************************************************************************************
localhost : ok=10 changed=5 unreachable=0 failed=0
2m18.133s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment