While building the range, ansible fails inconsistently. Not exactly sure what the issue is or what's the cause. Adding the complete data dump below
`(venv) ⚙ bpatel@bpatel-mbp-6bfc0 ~/github/attack_range macros ● python attack_range.py -m terraform -a build
starting program loaded for B1 battle droid
||/__'. |//()'-.: |-.|| |o(o) |||\\ .==._ |||(o)==::'
|T ""
()
|
||
()()
||//
|//
.'=`=.
attack_range is using config at path attack_range.conf
2019-12-05 16:21:52,437 - INFO - attack_range - INIT - attack_range v1
2019-12-05 16:21:52,440 - INFO - attack_range - [mode] > terraform
2019-12-05 16:21:52,441 - INFO - attack_range - [action] > build
aws_ebs_volume.win2016_volume: Creating...
aws_vpc.default: Creating...
aws_vpc.default: Creation complete after 2s [id=vpc-0ab6627a2b46a01fc]
aws_internet_gateway.default: Creating...
aws_security_group.default: Creating...
aws_internet_gateway.default: Creation complete after 1s [id=igw-051a2e0a928c7d495]
aws_subnet.default[0]: Creating...
aws_subnet.default[2]: Creating...
aws_subnet.default[1]: Creating...
aws_route.internet_access: Creating...
aws_route.internet_access: Creation complete after 1s [id=r-rtb-06b7e4cc36626c57c1080289494]
aws_security_group.default: Creation complete after 3s [id=sg-0bc8653816feca171]
aws_subnet.default[0]: Creation complete after 2s [id=subnet-03aba466e0c03aea1]
aws_subnet.default[2]: Creation complete after 2s [id=subnet-0bef5ee10496ac457]
aws_subnet.default[1]: Creation complete after 2s [id=subnet-0af62bd89f178e45f]
aws_instance.splunk-server: Creating...
aws_ebs_volume.win2016_volume: Still creating... [10s elapsed]
aws_ebs_volume.win2016_volume: Creation complete after 10s [id=vol-0b24de07b684ebcc9]
aws_instance.splunk-server: Still creating... [10s elapsed]
aws_instance.splunk-server: Provisioning with 'remote-exec'...
aws_instance.splunk-server (remote-exec): Connecting to remote host via SSH...
aws_instance.splunk-server (remote-exec): Host: 52.37.75.71
aws_instance.splunk-server (remote-exec): User: ubuntu
aws_instance.splunk-server (remote-exec): Password: false
aws_instance.splunk-server (remote-exec): Private key: true
aws_instance.splunk-server (remote-exec): Certificate: false
aws_instance.splunk-server (remote-exec): SSH Agent: true
aws_instance.splunk-server (remote-exec): Checking Host Key: false
aws_instance.splunk-server: Still creating... [20s elapsed]
aws_instance.splunk-server (remote-exec): Connecting to remote host via SSH...
aws_instance.splunk-server (remote-exec): Host: 52.37.75.71
aws_instance.splunk-server (remote-exec): User: ubuntu
aws_instance.splunk-server (remote-exec): Password: false
aws_instance.splunk-server (remote-exec): Private key: true
aws_instance.splunk-server (remote-exec): Certificate: false
aws_instance.splunk-server (remote-exec): SSH Agent: true
aws_instance.splunk-server (remote-exec): Checking Host Key: false
aws_instance.splunk-server: Still creating... [30s elapsed]
aws_instance.splunk-server (remote-exec): Connecting to remote host via SSH...
aws_instance.splunk-server (remote-exec): Host: 52.37.75.71
aws_instance.splunk-server (remote-exec): User: ubuntu
aws_instance.splunk-server (remote-exec): Password: false
aws_instance.splunk-server (remote-exec): Private key: true
aws_instance.splunk-server (remote-exec): Certificate: false
aws_instance.splunk-server (remote-exec): SSH Agent: true
aws_instance.splunk-server (remote-exec): Checking Host Key: false
aws_instance.splunk-server (remote-exec): Connecting to remote host via SSH...
aws_instance.splunk-server (remote-exec): Host: 52.37.75.71
aws_instance.splunk-server (remote-exec): User: ubuntu
aws_instance.splunk-server (remote-exec): Password: false
aws_instance.splunk-server (remote-exec): Private key: true
aws_instance.splunk-server (remote-exec): Certificate: false
aws_instance.splunk-server (remote-exec): SSH Agent: true
aws_instance.splunk-server (remote-exec): Checking Host Key: false
aws_instance.splunk-server (remote-exec): Connected!
aws_instance.splunk-server (remote-exec): booted
aws_instance.splunk-server: Provisioning with 'local-exec'...
aws_instance.splunk-server (local-exec): Executing: ["/bin/sh" "-c" "ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -u ubuntu --private-key ~/keys/attack_range_bhavin.pem -i '52.37.75.71,' playbooks/splunk_server.yml"]
aws_instance.splunk-server (local-exec): PLAY [all] *********************************************************************
aws_instance.splunk-server (local-exec): TASK [Install python for Ansible] **********************************************
aws_instance.splunk-server: Still creating... [40s elapsed]
aws_instance.splunk-server (local-exec): fatal: [52.37.75.71]: FAILED! => {"changed": false, "msg": "non-zero return code", "rc": 100, "stderr": "Warning: Permanently added '52.37.75.71' (ECDSA) to the list of known hosts.\r\nShared connection to 52.37.75.71 closed.\r\n", "stderr_lines": ["Warning: Permanently added '52.37.75.71' (ECDSA) to the list of known hosts.", "Shared connection to 52.37.75.71 closed."], "stdout": "\u001b[33m\r0% [Working]\u001b[0m\r \rGet:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]\r\n\u001b[33m\r0% [Waiting for headers] [1 InRelease 2589 B/88.7 kB 3%]\u001b[0m\r \rHit:2 http://archive.ubuntu.com/ubuntu bionic InRelease\r\n\u001b[33m\r \r0% [1 InRelease 43.1 kB/88.7 kB 49%]\u001b[0m\u001b[33m\r0% [2 InRelease gpgv 0 B] [Waiting for headers] [1 InRelease 43.1 kB/88.7 kB 49\u001b[0m\r \rErr:2 http://archive.ubuntu.com/ubuntu bionic InRelease\r\n Splitting up /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_InRelease into data and signature failed\r\n\u001b[33m\r \r0% [Waiting for headers] [1 InRelease 43.1 kB/88.7 kB 49%]\u001b[0m\u001b[33m\r \r0% [Waiting for headers]\u001b[0m\u001b[33m\r0% [1 InRelease gpgv 88.7 kB] [Waiting for headers]\u001b[0m\u001b[33m\r \r0% [Waiting for headers]\u001b[0m\r \rGet:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]\r\n\u001b[33m\r0% [3 InRelease 2604 B/88.7 kB 3%]\u001b[0m\r \rGet:4 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [591 kB]\r\n\u001b[33m\r0% [3 InRelease 15.6 kB/88.7 kB 18%] [4 Packages 14.3 kB/591 kB 2%]\u001b[0m\u001b[33m\r \r0% [3 InRelease 80.8 kB/88.7 kB 91%]\u001b[0m\u001b[33m\r0% [4 Packages store 0 B] [3 InRelease 83.7 kB/88.7 kB 94%] [Waiting for header\u001b[0m\u001b[33m\r \r0% [4 Packages store 0 B] [Waiting for headers]\u001b[0m\u001b[33m\r0% [4 Packages store 0 B] [3 InRelease gpgv 88.7 kB] [Waiting for headers] [Wai\u001b[0m\u001b[33m\r \r0% [4 Packages store 0 B] [Waiting for headers] [Waiting for headers]\u001b[0m\r \rGet:5 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [194 kB]\r\n\u001b[33m\r0% [4 Packages store 0 B] [Waiting for headers] [5 Translation-en 17.2 kB/194 k\u001b[0m\u001b[33m\r \r0% [4 Packages store 0 B] [Waiting for headers]\u001b[0m\u001b[33m\r \r0% [Waiting for headers] [Waiting for headers]\u001b[0m\u001b[33m\r0% [5 Translation-en store 0 B] [Waiting for headers] [Waiting for headers]\u001b[0m\u001b[33m\r \r0% [Waiting for headers] [Waiting for headers]\u001b[0m\r \rGet:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]\r\n\u001b[33m\r0% [6 InRelease 2604 B/74.6 kB 3%] [Waiting for headers]\u001b[0m\r \rGet:7 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [14.9 kB]\r\n\u001b[33m\r0% [6 InRelease 8396 B/74.6 kB 11%] [7 Packages 8481 B/14.9 kB 57%]\u001b[0m\u001b[33m\r \r0% [6 InRelease 11.3 kB/74.6 kB 15%]\u001b[0m\u001b[33m\r0% [7 Packages store 0 B] [6 InRelease 11.3 kB/74.6 kB 15%] [Waiting for header\u001b[0m\u001b[33m\r \r0% [6 InRelease 14.2 kB/74.6 kB 19%] [Waiting for headers]\u001b[0m\u001b[33m\r \r0% [Waiting for headers]\u001b[0m\u001b[33m\r0% [6 InRelease gpgv 74.6 kB] [Waiting for headers]\u001b[0m\r \rGet:8 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [4632 B]\r\n\u001b[33m\r0% [6 InRelease gpgv 74.6 kB] [Waiting for headers] [8 Translation-en 4632 B/46\u001b[0m\u001b[33m\r \r0% [6 InRelease gpgv 74.6 kB] [Waiting for headers]\u001b[0m\u001b[33m\r0% [8 Translation-en store 0 B] [6 InRelease gpgv 74.6 kB] [Waiting for headers\u001b[0m\u001b[33m\r \r0% [6 InRelease gpgv 74.6 kB] [Waiting for headers] [Waiting for headers]\u001b[0m\u001b[33m\r \r34% [Waiting for headers] [Waiting for headers]\u001b[0m\r \rGet:9 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [626 kB]\r\n\u001b[33m\r34% [Waiting for headers] [9 Packages 8479 B/626 kB 1%]\u001b[0m\u001b[33m\r \r45% [Waiting for headers]\u001b[0m\u001b[33m\r45% [9 Packages store 0 B] [Waiting for headers] [Waiting for headers]\u001b[0m\r \rGet:10 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [816 kB]\r\n\u001b[33m\r45% [9 Packages store 0 B] [10 Packages 2687 B/816 kB 0%] [Waiting for headers]\u001b[0m\r \rGet:11 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [209 kB]\r\n\u001b[33m\r47% [9 Packages store 0 B] [10 Packages 63.5 kB/816 kB 8%] [11 Translation-en 1\u001b[0m\u001b[33m\r \r50% [9 Packages store 0 B] [10 Packages 76.5 kB/816 kB 9%]\u001b[0m\u001b[33m\r51% [10 Packages 93.9 kB/816 kB 12%] [Waiting for headers]\u001b[0m\u001b[33m\r51% [11 Translation-en store 0 B] [10 Packages 93.9 kB/816 kB 12%] [Waiting for\u001b[0m\u001b[33m\r \r52% [10 Packages 129 kB/816 kB 16%] [Waiting for headers]\u001b[0m\r \rGet:12 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [6116 B]\r\n\u001b[33m\r52% [10 Packages 147 kB/816 kB 18%] [12 Packages 6116 B/6116 B 100%]\u001b[0m\u001b[33m\r \r52% [10 Packages 147 kB/816 kB 18%]\u001b[0m\u001b[33m\r52% [12 Packages store 0 B] [10 Packages 147 kB/816 kB 18%] [Waiting for header\u001b[0m\u001b[33m\r \r53% [10 Packages 150 kB/816 kB 18%] [Waiting for headers]\u001b[0m\r \rGet:13 http://security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [2600 B]\r\n\u001b[33m\r54% [10 Packages 224 kB/816 kB 27%] [13 Translation-en 2600 B/2600 B 100%]\u001b[0m\u001b[33m\r \r54% [10 Packages 224 kB/816 kB 27%]\u001b[0m\u001b[33m\r54% [13 Translation-en store 0 B] [10 Packages 224 kB/816 kB 27%]\u001b[0m\u001b[33m\r \r54% [10 Packages 224 kB/816 kB 27%]\u001b[0m\u001b[33m\r \r65% [Working]\u001b[0m\u001b[33m\r65% [10 Packages store 0 B] [Waiting for headers]\u001b[0m\u001b[33m\r \r66% [Waiting for headers]\u001b[0m\r \rGet:14 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [287 kB]\r\n\u001b[33m\r66% [14 Translation-en 7031 B/287 kB 2%]\u001b[0m\u001b[33m\r \r71% [Working]\u001b[0m\u001b[33m\r71% [14 Translation-en store 0 B] [Waiting for headers]\u001b[0m\u001b[33m\r \r71% [Waiting for headers]\u001b[0m\r \rGet:15 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [24.1 kB]\r\n\u001b[33m\r71% [15 Packages 7033 B/24.1 kB 29%]\u001b[0m\u001b[33m\r \r71% [Working]\u001b[0m\u001b[33m\r71% [15 Packages store 0 B] [Waiting for headers]\u001b[0m\u001b[33m\r \r72% [Waiting for headers]\u001b[0m\r \rGet:16 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [6620 B]\r\n\u001b[33m\r72% [16 Translation-en 6620 B/6620 B 100%]\u001b[0m\u001b[33m\r \r72% [Working]\u001b[0m\u001b[33m\r72% [16 Translation-en store 0 B] [Waiting for headers]\u001b[0m\u001b[33m\r \r72% [Waiting for headers]\u001b[0m\r \rGet:17 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1032 kB]\r\n\u001b[33m\r72% [17 Packages 7030 B/1032 kB 1%]\u001b[0m\u001b[33m\r \r91% [Working]\u001b[0m\u001b[33m\r91% [17 Packages store 0 B] [Waiting for headers]\u001b[0m\r \rGet:18 http://archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [319 kB]\r\n\u001b[33m\r91% [17 Packages store 0 B] [18 Translation-en 9927 B/319 kB 3%]\u001b[0m\u001b[33m\r \r96% [18 Translation-en 281 kB/319 kB 88%]\u001b[0m\u001b[33m\r \r97% [Working]\u001b[0m\u001b[33m\r97% [18 Translation-en store 0 B] [Waiting for headers]\u001b[0m\u001b[33m\r \r97% [Waiting for headers]\u001b[0m\r \rGet:19 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [9304 B]\r\n\u001b[33m\r98% [19 Packages 9304 B/9304 B 100%]\u001b[0m\u001b[33m\r \r98% [Working]\u001b[0m\u001b[33m\r98% [19 Packages store 0 B] [Waiting for headers]\u001b[0m\u001b[33m\r \r98% [Waiting for headers]\u001b[0m\r \rGet:20 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [4508 B]\r\n\u001b[33m\r98% [20 Translation-en 4508 B/4508 B 100%]\u001b[0m\u001b[33m\r \r98% [Working]\u001b[0m\u001b[33m\r98% [20 Translation-en store 0 B] [Waiting for headers]\u001b[0m\u001b[33m\r \r98% [Waiting for headers]\u001b[0m\r \rGet:21 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [2512 B]\r\n\u001b[33m\r98% [21 Packages 2512 B/2512 B 100%]\u001b[0m\u001b[33m\r \r98% [Working]\u001b[0m\u001b[33m\r98% [21 Packages store 0 B] [Waiting for headers]\u001b[0m\u001b[33m\r \r99% [Waiting for headers]\u001b[0m\r \rGet:22 http://archive.ubuntu.com/ubuntu bionic-backports/main Translation-en [1644 B]\r\n\u001b[33m\r99% [22 Translation-en 1644 B/1644 B 100%]\u001b[0m\u001b[33m\r \r99% [Working]\u001b[0m\u001b[33m\r99% [22 Translation-en store 0 B] [Waiting for headers]\u001b[0m\u001b[33m\r \r99% [Waiting for headers]\u001b[0m\r \rGet:23 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [4028 B]\r\n\u001b[33m\r99% [23 Packages 4028 B/4028 B 100%]\u001b[0m\u001b[33m\r \r99% [Working]\u001b[0m\u001b[33m\r99% [23 Packages store 0 B] [Waiting for headers]\u001b[0m\u001b[33m\r \r99% [Waiting for headers]\u001b[0m\r \rGet:24 http://archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [1856 B]\r\n\u001b[33m\r99% [24 Translation-en 1856 B/1856 B 100%]\u001b[0m\u001b[33m\r \r99% [Working]\u001b[0m\u001b[33m\r99% [24 Translation-en store 0 B]\u001b[0m\u001b[33m\r \r100% [Working]\u001b[0m\r \r\rReading package lists... 0%\r\rReading package lists... 0%\r\rReading package lists... 0%\r\rReading package lists... 15%\r\rReading package lists... 15%\r\rReading package lists... 27%\r\rReading package lists... 27%\r\rReading package lists... 27%\r\rReading package lists... 27%\r\rReading package lists... 27%\r\rReading package lists... 27%\r\rReading package lists... 49%\r\rReading package lists... 49%\r\rReading package lists... 58%\r\rReading package lists... 58%\r\rReading package lists... 58%\r\rReading package lists... 58%\r\rReading package lists... 58%\r\rReading package lists... 58%\r\rReading package lists... 58%\r\rReading package lists... 58%\r\rReading package lists... 58%\r\rReading package lists... 58%\r\rReading package lists... 58%\r\rReading package lists... 58%\r\rReading package lists... 58%\r\rReading package lists... 58%\r\rReading package lists... 70%\r\rReading package lists... 70%\r\rReading package lists... 79%\r\rReading package lists... 79%\r\rReading package lists... 79%\r\rReading package lists... 79%\r\rReading package lists... 79%\r\rReading package lists... 79%\r\rReading package lists... 92%\r\rReading package lists... 92%\r\rReading package lists... 98%\r\rReading package lists... 98%\r\rReading package lists... 98%\r\rReading package lists... 98%\r\rReading package lists... 98%\r\rReading package lists... 98%\r\rReading package lists... Done\r\r\nW: GPG error: http://archive.ubuntu.com/ubuntu bionic InRelease: Splitting up /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_InRelease into data and signature failed\r\nE: The repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' is not signed.\r\nN: Updating from such a repository can't be done securely, and is therefore disabled by default.\r\nN: See apt-secure(8) manpage for repository creation and user configuration details.\r\n", "stdout_lines": ["\u001b[33m", "0% [Working]\u001b[0m", " ", "Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]", "\u001b[33m", "0% [Waiting for headers] [1 InRelease 2589 B/88.7 kB 3%]\u001b[0m", " ", "Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease", "\u001b[33m", " ", "0% [1 InRelease 43.1 kB/88.7 kB 49%]\u001b[0m\u001b[33m", "0% [2 InRelease gpgv 0 B] [Waiting for headers] [1 InRelease 43.1 kB/88.7 kB 49\u001b[0m", " ", "Err:2 http://archive.ubuntu.com/ubuntu bionic InRelease", " Splitting up /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_InRelease into data and signature failed", "\u001b[33m", " ", "0% [Waiting for headers] [1 InRelease 43.1 kB/88.7 kB 49%]\u001b[0m\u001b[33m", " ", "0% [Waiting for headers]\u001b[0m\u001b[33m", "0% [1 InRelease gpgv 88.7 kB] [Waiting for headers]\u001b[0m\u001b[33m", " ", "0% [Waiting for headers]\u001b[0m", " ", "Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]", "\u001b[33m", "0% [3 InRelease 2604 B/88.7 kB 3%]\u001b[0m", " ", "Get:4 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [591 kB]", "\u001b[33m", "0% [3 InRelease 15.6 kB/88.7 kB 18%] [4 Packages 14.3 kB/591 kB 2%]\u001b[0m\u001b[33m", " ", "0% [3 InRelease 80.8 kB/88.7 kB 91%]\u001b[0m\u001b[33m", "0% [4 Packages store 0 B] [3 InRelease 83.7 kB/88.7 kB 94%] [Waiting for header\u001b[0m\u001b[33m", " ", "0% [4 Packages store 0 B] [Waiting for headers]\u001b[0m\u001b[33m", "0% [4 Packages store 0 B] [3 InRelease gpgv 88.7 kB] [Waiting for headers] [Wai\u001b[0m\u001b[33m", " ", "0% [4 Packages store 0 B] [Waiting for headers] [Waiting for headers]\u001b[0m", " ", "Get:5 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [194 kB]", "\u001b[33m", "0% [4 Packages store 0 B] [Waiting for headers] [5 Translation-en 17.2 kB/194 k\u001b[0m\u001b[33m", " ", "0% [4 Packages store 0 B] [Waiting for headers]\u001b[0m\u001b[33m", " ", "0% [Waiting for headers] [Waiting for headers]\u001b[0m\u001b[33m", "0% [5 Translation-en store 0 B] [Waiting for headers] [Waiting for headers]\u001b[0m\u001b[33m", " ", "0% [Waiting for headers] [Waiting for headers]\u001b[0m", " ", "Get:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]", "\u001b[33m", "0% [6 InRelease 2604 B/74.6 kB 3%] [Waiting for headers]\u001b[0m", " ", "Get:7 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [14.9 kB]", "\u001b[33m", "0% [6 InRelease 8396 B/74.6 kB 11%] [7 Packages 8481 B/14.9 kB 57%]\u001b[0m\u001b[33m", " ", "0% [6 InRelease 11.3 kB/74.6 kB 15%]\u001b[0m\u001b[33m", "0% [7 Packages store 0 B] [6 InRelease 11.3 kB/74.6 kB 15%] [Waiting for header\u001b[0m\u001b[33m", " ", "0% [6 InRelease 14.2 kB/74.6 kB 19%] [Waiting for headers]\u001b[0m\u001b[33m", " ", "0% [Waiting for headers]\u001b[0m\u001b[33m", "0% [6 InRelease gpgv 74.6 kB] [Waiting for headers]\u001b[0m", " ", "Get:8 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [4632 B]", "\u001b[33m", "0% [6 InRelease gpgv 74.6 kB] [Waiting for headers] [8 Translation-en 4632 B/46\u001b[0m\u001b[33m", " ", "0% [6 InRelease gpgv 74.6 kB] [Waiting for headers]\u001b[0m\u001b[33m", "0% [8 Translation-en store 0 B] [6 InRelease gpgv 74.6 kB] [Waiting for headers\u001b[0m\u001b[33m", " ", "0% [6 InRelease gpgv 74.6 kB] [Waiting for headers] [Waiting for headers]\u001b[0m\u001b[33m", " ", "34% [Waiting for headers] [Waiting for headers]\u001b[0m", " ", "Get:9 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [626 kB]", "\u001b[33m", "34% [Waiting for headers] [9 Packages 8479 B/626 kB 1%]\u001b[0m\u001b[33m", " ", "45% [Waiting for headers]\u001b[0m\u001b[33m", "45% [9 Packages store 0 B] [Waiting for headers] [Waiting for headers]\u001b[0m", " ", "Get:10 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [816 kB]", "\u001b[33m", "45% [9 Packages store 0 B] [10 Packages 2687 B/816 kB 0%] [Waiting for headers]\u001b[0m", " ", "Get:11 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [209 kB]", "\u001b[33m", "47% [9 Packages store 0 B] [10 Packages 63.5 kB/816 kB 8%] [11 Translation-en 1\u001b[0m\u001b[33m", " ", "50% [9 Packages store 0 B] [10 Packages 76.5 kB/816 kB 9%]\u001b[0m\u001b[33m", "51% [10 Packages 93.9 kB/816 kB 12%] [Waiting for headers]\u001b[0m\u001b[33m", "51% [11 Translation-en store 0 B] [10 Packages 93.9 kB/816 kB 12%] [Waiting for\u001b[0m\u001b[33m", " ", "52% [10 Packages 129 kB/816 kB 16%] [Waiting for headers]\u001b[0m", " ", "Get:12 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [6116 B]", "\u001b[33m", "52% [10 Packages 147 kB/816 kB 18%] [12 Packages 6116 B/6116 B 100%]\u001b[0m\u001b[33m", " ", "52% [10 Packages 147 kB/816 kB 18%]\u001b[0m\u001b[33m", "52% [12 Packages store 0 B] [10 Packages 147 kB/816 kB 18%] [Waiting for header\u001b[0m\u001b[33m", " ", "53% [10 Packages 150 kB/816 kB 18%] [Waiting for headers]\u001b[0m", " ", "Get:13 http://security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [2600 B]", "\u001b[33m", "54% [10 Packages 224 kB/816 kB 27%] [13 Translation-en 2600 B/2600 B 100%]\u001b[0m\u001b[33m", " ", "54% [10 Packages 224 kB/816 kB 27%]\u001b[0m\u001b[33m", "54% [13 Translation-en store 0 B] [10 Packages 224 kB/816 kB 27%]\u001b[0m\u001b[33m", " ", "54% [10 Packages 224 kB/816 kB 27%]\u001b[0m\u001b[33m", " ", "65% [Working]\u001b[0m\u001b[33m", "65% [10 Packages store 0 B] [Waiting for headers]\u001b[0m\u001b[33m", " ", "66% [Waiting for headers]\u001b[0m", " ", "Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [287 kB]", "\u001b[33m", "66% [14 Translation-en 7031 B/287 kB 2%]\u001b[0m\u001b[33m", " ", "71% [Working]\u001b[0m\u001b[33m", "71% [14 Translation-en store 0 B] [Waiting for headers]\u001b[0m\u001b[33m", " ", "71% [Waiting for headers]\u001b[0m", " ", "Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [24.1 kB]", "\u001b[33m", "71% [15 Packages 7033 B/24.1 kB 29%]\u001b[0m\u001b[33m", " ", "71% [Working]\u001b[0m\u001b[33m", "71% [15 Packages store 0 B] [Waiting for headers]\u001b[0m\u001b[33m", " ", "72% [Waiting for headers]\u001b[0m", " ", "Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [6620 B]", "\u001b[33m", "72% [16 Translation-en 6620 B/6620 B 100%]\u001b[0m\u001b[33m", " ", "72% [Working]\u001b[0m\u001b[33m", "72% [16 Translation-en store 0 B] [Waiting for headers]\u001b[0m\u001b[33m", " ", "72% [Waiting for headers]\u001b[0m", " ", "Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1032 kB]", "\u001b[33m", "72% [17 Packages 7030 B/1032 kB 1%]\u001b[0m\u001b[33m", " ", "91% [Working]\u001b[0m\u001b[33m", "91% [17 Packages store 0 B] [Waiting for headers]\u001b[0m", " ", "Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [319 kB]", "\u001b[33m", "91% [17 Packages store 0 B] [18 Translation-en 9927 B/319 kB 3%]\u001b[0m\u001b[33m", " ", "96% [18 Translation-en 281 kB/319 kB 88%]\u001b[0m\u001b[33m", " ", "97% [Working]\u001b[0m\u001b[33m", "97% [18 Translation-en store 0 B] [Waiting for headers]\u001b[0m\u001b[33m", " ", "97% [Waiting for headers]\u001b[0m", " ", "Get:19 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [9304 B]", "\u001b[33m", "98% [19 Packages 9304 B/9304 B 100%]\u001b[0m\u001b[33m", " ", "98% [Working]\u001b[0m\u001b[33m", "98% [19 Packages store 0 B] [Waiting for headers]\u001b[0m\u001b[33m", " ", "98% [Waiting for headers]\u001b[0m", " ", "Get:20 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [4508 B]", "\u001b[33m", "98% [20 Translation-en 4508 B/4508 B 100%]\u001b[0m\u001b[33m", " ", "98% [Working]\u001b[0m\u001b[33m", "98% [20 Translation-en store 0 B] [Waiting for headers]\u001b[0m\u001b[33m", " ", "98% [Waiting for headers]\u001b[0m", " ", "Get:21 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [2512 B]", "\u001b[33m", "98% [21 Packages 2512 B/2512 B 100%]\u001b[0m\u001b[33m", " ", "98% [Working]\u001b[0m\u001b[33m", "98% [21 Packages store 0 B] [Waiting for headers]\u001b[0m\u001b[33m", " ", "99% [Waiting for headers]\u001b[0m", " ", "Get:22 http://archive.ubuntu.com/ubuntu bionic-backports/main Translation-en [1644 B]", "\u001b[33m", "99% [22 Translation-en 1644 B/1644 B 100%]\u001b[0m\u001b[33m", " ", "99% [Working]\u001b[0m\u001b[33m", "99% [22 Translation-en store 0 B] [Waiting for headers]\u001b[0m\u001b[33m", " ", "99% [Waiting for headers]\u001b[0m", " ", "Get:23 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [4028 B]", "\u001b[33m", "99% [23 Packages 4028 B/4028 B 100%]\u001b[0m\u001b[33m", " ", "99% [Working]\u001b[0m\u001b[33m", "99% [23 Packages store 0 B] [Waiting for headers]\u001b[0m\u001b[33m", " ", "99% [Waiting for headers]\u001b[0m", " ", "Get:24 http://archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [1856 B]", "\u001b[33m", "99% [24 Translation-en 1856 B/1856 B 100%]\u001b[0m\u001b[33m", " ", "99% [Working]\u001b[0m\u001b[33m", "99% [24 Translation-en store 0 B]\u001b[0m\u001b[33m", " ", "100% [Working]\u001b[0m", " ", "", "Reading package lists... 0%", "", "Reading package lists... 0%", "", "Reading package lists... 0%", "", "Reading package lists... 15%", "", "Reading package lists... 15%", "", "Reading package lists... 27%", "", "Reading package lists... 27%", "", "Reading package lists... 27%", "", "Reading package lists... 27%", "", "Reading package lists... 27%", "", "Reading package lists... 27%", "", "Reading package lists... 49%", "", "Reading package lists... 49%", "", "Reading package lists... 58%", "", "Reading package lists... 58%", "", "Reading package lists... 58%", "", "Reading package lists... 58%", "", "Reading package lists... 58%", "", "Reading package lists... 58%", "", "Reading package lists... 58%", "", "Reading package lists... 58%", "", "Reading package lists... 58%", "", "Reading package lists... 58%", "", "Reading package lists... 58%", "", "Reading package lists... 58%", "", "Reading package lists... 58%", "", "Reading package lists... 58%", "", "Reading package lists... 70%", "", "Reading package lists... 70%", "", "Reading package lists... 79%", "", "Reading package lists... 79%", "", "Reading package lists... 79%", "", "Reading package lists... 79%", "", "Reading package lists... 79%", "", "Reading package lists... 79%", "", "Reading package lists... 92%", "", "Reading package lists... 92%", "", "Reading package lists... 98%", "", "Reading package lists... 98%", "", "Reading package lists... 98%", "", "Reading package lists... 98%", "", "Reading package lists... 98%", "", "Reading package lists... 98%", "", "Reading package lists... Done", "", "W: GPG error: http://archive.ubuntu.com/ubuntu bionic InRelease: Splitting up /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_InRelease into data and signature failed", "E: The repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' is not signed.", "N: Updating from such a repository can't be done securely, and is therefore disabled by default.", "N: See apt-secure(8) manpage for repository creation and user configuration details."]}
aws_instance.splunk-server (local-exec): PLAY RECAP *********************************************************************
aws_instance.splunk-server (local-exec): 52.37.75.71 : ok=0 changed=0 unreachable=0 failed=1
Error: Error running command 'ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -u ubuntu --private-key ~/keys/attack_range_bhavin.pem -i '52.37.75.71,' playbooks/splunk_server.yml': exit status 2. Output: ] [Waiting for header\u001b[0m\u001b[33m", " ", "53% [10 Packages 150 kB/816 kB 18%] [Waiting for headers]\u001b[0m", " ", "Get:13 http://security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [2600 B]", "\u001b[33m", "54% [10 Packages 224 kB/816 kB 27%] [13 Translation-en 2600 B/2600 B 100%]\u001b[0m\u001b[33m", " ", "54% [10 Packages 224 kB/816 kB 27%]\u001b[0m\u001b[33m", "54% [13 Translation-en store 0 B] [10 Packages 224 kB/816 kB 27%]\u001b[0m\u001b[33m", " ", "54% [10 Packages 224 kB/816 kB 27%]\u001b[0m\u001b[33m", " ", "65% [Working]\u001b[0m\u001b[33m", "65% [10 Packages store 0 B] [Waiting for headers]\u001b[0m\u001b[33m", " ", "66% [Waiting for headers]\u001b[0m", " ", "Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [287 kB]", "\u001b[33m", "66% [14 Translation-en 7031 B/287 kB 2%]\u001b[0m\u001b[33m", " ", "71% [Working]\u001b[0m\u001b[33m", "71% [14 Translation-en store 0 B] [Waiting for headers]\u001b[0m\u001b[33m", " ", "71% [Waiting for headers]\u001b[0m", " ", "Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [24.1 kB]", "\u001b[33m", "71% [15 Packages 7033 B/24.1 kB 29%]\u001b[0m\u001b[33m", " ", "71% [Working]\u001b[0m\u001b[33m", "71% [15 Packages store 0 B] [Waiting for headers]\u001b[0m\u001b[33m", " ", "72% [Waiting for headers]\u001b[0m", " ", "Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [6620 B]", "\u001b[33m", "72% [16 Translation-en 6620 B/6620 B 100%]\u001b[0m\u001b[33m", " ", "72% [Working]\u001b[0m\u001b[33m", "72% [16 Translation-en store 0 B] [Waiting for headers]\u001b[0m\u001b[33m", " ", "72% [Waiting for headers]\u001b[0m", " ", "Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1032 kB]", "\u001b[33m", "72% [17 Packages 7030 B/1032 kB 1%]\u001b[0m\u001b[33m", " ", "91% [Working]\u001b[0m\u001b[33m", "91% [17 Packages store 0 B] [Waiting for headers]\u001b[0m", " ", "Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [319 kB]", "\u001b[33m", "91% [17 Packages store 0 B] [18 Translation-en 9927 B/319 kB 3%]\u001b[0m\u001b[33m", " ", "96% [18 Translation-en 281 kB/319 kB 88%]\u001b[0m\u001b[33m", " ", "97% [Working]\u001b[0m\u001b[33m", "97% [18 Translation-en store 0 B] [Waiting for headers]\u001b[0m\u001b[33m", " ", "97% [Waiting for headers]\u001b[0m", " ", "Get:19 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [9304 B]", "\u001b[33m", "98% [19 Packages 9304 B/9304 B 100%]\u001b[0m\u001b[33m", " ", "98% [Working]\u001b[0m\u001b[33m", "98% [19 Packages store 0 B] [Waiting for headers]\u001b[0m\u001b[33m", " ", "98% [Waiting for headers]\u001b[0m", " ", "Get:20 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [4508 B]", "\u001b[33m", "98% [20 Translation-en 4508 B/4508 B 100%]\u001b[0m\u001b[33m", " ", "98% [Working]\u001b[0m\u001b[33m", "98% [20 Translation-en store 0 B] [Waiting for headers]\u001b[0m\u001b[33m", " ", "98% [Waiting for headers]\u001b[0m", " ", "Get:21 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [2512 B]", "\u001b[33m", "98% [21 Packages 2512 B/2512 B 100%]\u001b[0m\u001b[33m", " ", "98% [Working]\u001b[0m\u001b[33m", "98% [21 Packages store 0 B] [Waiting for headers]\u001b[0m\u001b[33m", " ", "99% [Waiting for headers]\u001b[0m", " ", "Get:22 http://archive.ubuntu.com/ubuntu bionic-backports/main Translation-en [1644 B]", "\u001b[33m", "99% [22 Translation-en 1644 B/1644 B 100%]\u001b[0m\u001b[33m", " ", "99% [Working]\u001b[0m\u001b[33m", "99% [22 Translation-en store 0 B] [Waiting for headers]\u001b[0m\u001b[33m", " ", "99% [Waiting for headers]\u001b[0m", " ", "Get:23 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [4028 B]", "\u001b[33m", "99% [23 Packages 4028 B/4028 B 100%]\u001b[0m\u001b[33m", " ", "99% [Working]\u001b[0m\u001b[33m", "99% [23 Packages store 0 B] [Waiting for headers]\u001b[0m\u001b[33m", " ", "99% [Waiting for headers]\u001b[0m", " ", "Get:24 http://archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [1856 B]", "\u001b[33m", "99% [24 Translation-en 1856 B/1856 B 100%]\u001b[0m\u001b[33m", " ", "99% [Working]\u001b[0m\u001b[33m", "99% [24 Translation-en store 0 B]\u001b[0m\u001b[33m", " ", "100% [Working]\u001b[0m", " ", "", "Reading package lists... 0%", "", "Reading package lists... 0%", "", "Reading package lists... 0%", "", "Reading package lists... 15%", "", "Reading package lists... 15%", "", "Reading package lists... 27%", "", "Reading package lists... 27%", "", "Reading package lists... 27%", "", "Reading package lists... 27%", "", "Reading package lists... 27%", "", "Reading package lists... 27%", "", "Reading package lists... 49%", "", "Reading package lists... 49%", "", "Reading package lists... 58%", "", "Reading package lists... 58%", "", "Reading package lists... 58%", "", "Reading package lists... 58%", "", "Reading package lists... 58%", "", "Reading package lists... 58%", "", "Reading package lists... 58%", "", "Reading package lists... 58%", "", "Reading package lists... 58%", "", "Reading package lists... 58%", "", "Reading package lists... 58%", "", "Reading package lists... 58%", "", "Reading package lists... 58%", "", "Reading package lists... 58%", "", "Reading package lists... 70%", "", "Reading package lists... 70%", "", "Reading package lists... 79%", "", "Reading package lists... 79%", "", "Reading package lists... 79%", "", "Reading package lists... 79%", "", "Reading package lists... 79%", "", "Reading package lists... 79%", "", "Reading package lists... 92%", "", "Reading package lists... 92%", "", "Reading package lists... 98%", "", "Reading package lists... 98%", "", "Reading package lists... 98%", "", "Reading package lists... 98%", "", "Reading package lists... 98%", "", "Reading package lists... 98%", "", "Reading package lists... Done", "", "W: GPG error: http://archive.ubuntu.com/ubuntu bionic InRelease: Splitting up /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_InRelease into data and signature failed", "E: The repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' is not signed.", "N: Updating from such a repository can't be done securely, and is therefore disabled by default.", "N: See apt-secure(8) manpage for repository creation and user configuration details."]}
PLAY RECAP *********************************************************************
52.37.75.71 : ok=0 changed=0 unreachable=0 failed=1
2019-12-05 16:22:47,670 - INFO - attack_range - attack_range has been built using terraform successfully`