Created
July 19, 2019 12:17
-
-
Save markuman/6a4e7bf57ce78900a4e025c73f8e556c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PLAYBOOK: full_test.yml ******************************************************** | |
| 1 plays in playbooks/full_test.yml | |
| PLAY [localhost] *************************************************************** | |
| TASK [Gathering Facts] ********************************************************* | |
| task path: /root/.ansible/test/tmp/elb_target-zfaahz5_-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/full_test.yml:1 | |
| ok: [localhost] | |
| META: ran handlers | |
| TASK [elb_lambda_target : set up aws connection info] ************************** | |
| task path: /root/.ansible/test/tmp/elb_target-zfaahz5_-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_lambda_target/tasks/main.yml:2 | |
| ok: [localhost] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false} | |
| TASK [elb_lambda_target : create zip to deploy lambda code] ******************** | |
| task path: /root/.ansible/test/tmp/elb_target-zfaahz5_-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_lambda_target/tasks/main.yml:14 | |
| changed: [localhost] => {"archived": ["/root/.ansible/test/tmp/elb_target-zfaahz5_-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_lambda_target/files/ansible_lambda_target.py"], "arcroot": "/root/.ansible/test/tmp/elb_target-zfaahz5_-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_lambda_target/files/", "changed": true, "dest": "/tmp/lambda.zip", "expanded_exclude_paths": [], "expanded_paths": ["/root/.ansible/test/tmp/elb_target-zfaahz5_-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_lambda_target/files/ansible_lambda_target.py"], "gid": 0, "group": "root", "missing": [], "mode": "0644", "owner": "root", "size": 266, "state": "file", "uid": 0} | |
| TASK [elb_lambda_target : create or update service-role for lambda] ************ | |
| task path: /root/.ansible/test/tmp/elb_target-zfaahz5_-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_lambda_target/tasks/main.yml:20 | |
| ok: [localhost] => {"arn": "arn:aws:iam::731214760423:role/ansible_lambda_execution", "assume_role_policy_document": {"statement": [{"action": "sts:AssumeRole", "effect": "Allow", "principal": {"service": "lambda.amazonaws.com"}}], "version": "2012-10-17"}, "attached_policies": [{"policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", "policy_name": "AWSLambdaBasicExecutionRole"}], "changed": false, "create_date": "2019-07-19T11:53:23+00:00", "gid": 0, "group": "root", "iam_role": {"arn": "arn:aws:iam::731214760423:role/ansible_lambda_execution", "assume_role_policy_document": {"statement": [{"action": "sts:AssumeRole", "effect": "Allow", "principal": {"service": "lambda.amazonaws.com"}}], "version": "2012-10-17"}, "attached_policies": [{"policy_arn": "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", "policy_name": "AWSLambdaBasicExecutionRole"}], "create_date": "2019-07-19T11:53:23+00:00", "max_session_duration": 3600, "path": "/", "role_id": "AROA2UP6LZHT7SGBEBEUC", "role_name": "ansible_lambda_execution"}, "max_session_duration": 3600, "mode": "0755", "owner": "root", "path": "/", "resource_actions": ["iam:ListAttachedRolePolicies", "iam:GetRole", "iam:ListInstanceProfilesForRole"], "role_id": "AROA2UP6LZHT7SGBEBEUC", "role_name": "ansible_lambda_execution", "size": 4096, "state": "directory", "uid": 0} | |
| TASK [elb_lambda_target : when it is to fast, it fails.] *********************** | |
| task path: /root/.ansible/test/tmp/elb_target-zfaahz5_-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_lambda_target/tasks/main.yml:30 | |
| changed: [localhost] => {"changed": true, "cmd": ["sleep", "2"], "delta": "0:00:02.002859", "end": "2019-07-19 12:15:23.106251", "rc": 0, "start": "2019-07-19 12:15:21.103392", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} | |
| TASK [elb_lambda_target : deploy lambda.zip to ansible_lambda_target function] *** | |
| task path: /root/.ansible/test/tmp/elb_target-zfaahz5_-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_lambda_target/tasks/main.yml:33 | |
| changed: [localhost] => {"changed": true, "code": {"location": "https://awslambda-eu-cent-1-tasks.s3.eu-central-1.amazonaws.com/snapshots/731214760423/ansible_lambda_target-90ecbbe2-1c9c-4ed4-8508-fc672b58bf6d?versionId=EF5rEbxta1qAtXjy2F.SUaKEv9brGAGq&X-Amz-Security-Token=AgoJb3JpZ2luX2VjEAsaDGV1LWNlbnRyYWwtMSJIMEYCIQCiLNnd%2FgWN7neJ%2BMOASu8rCe6ycI%2Fr9Dmsc9Lzgh7i0AIhAKh4R%2BddEvF04J3YMXS%2Byp0j%2BB9mMq7WMmRGIVUgMfqFKuADCHQQARoMNjgwNjg2NTU5NDM0Igw9o70yWQLzcdJOTzcqvQMHGpB%2BSgoIRe1B8PKGQ0tBSxfnOhD7uH4uLB8%2FfZwl3ZTveI3e3DM6YTN0ExWP3Y5AqAZ9SGhs95lI7fS4Gii8HWYX7v%2BA0MEFgwvDEaZGBPtjIF%2FZchzzFAABHYCb8B78oTHwSiormthYGDXOyO7EgkaVUsY3jIrzWdWKeaDYRIp3WW11wyAlMqvBmvYxfdF6dnCt1W5RZ9EnXdiya9iboThRmcU%2F1%2BxXnP3ATNfIQUZ%2BDPaowI9kDZ6Rh3LyCaUGKHN8xgr5Noh9zNRC6C3AFXCW6pBu%2Becm%2BdmVGeybsc40%2BB9FpTJMQdyzrcQCLJfrMfoK1Gx1ISXGYsZpIrwO5upWMhUJGudHRXCCMRGeMgQHrApCvAL95kbHfqrwSuit2fMZNTgbeC9mSs%2FcS3tYvHMm6tdhKxQbXnCZba%2FlhRBfmxOy2%2BQsmuSBQwQ%2BQbGZhBeHGOS3%2FMo6gbNWDv9G6wMfmmtSPrCOL9y5sy91Sj6yAmgsGs11cLhcFidOSJ7HNXKaFT8V0QtuStcdWhnXhBjbDT7Rvr5wzymWAsHJi0Cok44htHwg1Z5LCi6AsWgf37YxakvKJKn%2BlPAWMLvNxukFOrMBRsfXJ36P1uKrPKLmiIiTgjJ%2BUfT4riNv4obILe13mX%2Fv6l711opm2NrYfbQpndtZe%2BDUXgaC7JP4nkyxloEnqs%2Bvj30sur5icllFXaW0kG4%2Frp6N%2BK4tEZgOZHZKvHusIeFTkQM%2B5sLlATXRsaZewQejD2lWKEz0NjnXs%2F0xOt8wxaxThctIPQDyVR8u2k7Z%2FFvJqq5qtLvucy6rmV9SrzOF0BWup1HnQf%2F5WwcvS2KZFeI%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20190719T121524Z&X-Amz-SignedHeaders=host&X-Amz-Expires=600&X-Amz-Credential=ASIAZ47AUUDFATVVDSBJ%2F20190719%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Signature=35452380a33498118233473568a6bc6d4ba59b833aad9f38e67b6e58b3a04387", "repository_type": "S3"}, "configuration": {"code_sha256": "wCts1mTikrPWaw2D+EQFFhGu5JVUiZZKECmm5xjbTdo=", "code_size": 266, "description": "", "function_arn": "arn:aws:lambda:eu-central-1:731214760423:function:ansible_lambda_target:24", "function_name": "ansible_lambda_target", "handler": "ansible_lambda_target.lambda_handler", "last_modified": "2019-07-19T12:15:24.132+0000", "memory_size": 128, "revision_id": "3d21485a-a906-4786-b7ce-a5ac72379fd5", "role": "arn:aws:iam::731214760423:role/ansible_lambda_execution", "runtime": "python3.7", "timeout": 30, "tracing_config": {"mode": "PassThrough"}, "version": "24"}, "resource_actions": ["lambda:CreateFunction", "lambda:GetFunction"], "response_metadata": {"http_headers": {"connection": "keep-alive", "content-length": "2320", "content-type": "application/json", "date": "Fri, 19 Jul 2019 12:15:24 GMT", "x-amzn-requestid": "8c038675-ff5f-4fa7-bfe0-f2f08af356b6"}, "http_status_code": 200, "request_id": "8c038675-ff5f-4fa7-bfe0-f2f08af356b6", "retry_attempts": 0}} | |
| TASK [elb_lambda_target : create empty target group] *************************** | |
| task path: /root/.ansible/test/tmp/elb_target-zfaahz5_-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_lambda_target/tasks/main.yml:46 | |
| changed: [localhost] => {"changed": true, "health_check_enabled": false, "health_check_interval_seconds": 35, "health_check_path": "/", "health_check_timeout_seconds": 30, "healthy_threshold_count": 5, "lambda_multi_value_headers_enabled": "false", "load_balancer_arns": [], "matcher": {"http_code": "200"}, "resource_actions": ["elasticloadbalancing:DescribeTargetGroups", "elasticloadbalancing:CreateTargetGroup", "elasticloadbalancing:DescribeTags", "elasticloadbalancing:DescribeTargetGroupAttributes"], "tags": {}, "target_group_arn": "arn:aws:elasticloadbalancing:eu-central-1:731214760423:targetgroup/ansible-lambda-targetgroup/962d3d8d814d2888", "target_group_name": "ansible-lambda-targetgroup", "target_type": "lambda", "unhealthy_threshold_count": 2} | |
| TASK [elb_lambda_target : tg is created, state must be changed] **************** | |
| task path: /root/.ansible/test/tmp/elb_target-zfaahz5_-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_lambda_target/tasks/main.yml:56 | |
| ok: [localhost] => { | |
| "changed": false, | |
| "msg": "All assertions passed" | |
| } | |
| TASK [elb_lambda_target : allow elb to invoke the lambda function] ************* | |
| task path: /root/.ansible/test/tmp/elb_target-zfaahz5_-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_lambda_target/tasks/main.yml:61 | |
| changed: [localhost] => {"ansible_facts": {"lambda_policy_action": "added"}, "changed": true, "resource_actions": ["lambda:GetPolicy", "lambda:AddPermission"]} | |
| TASK [elb_lambda_target : add lambda to elb target] **************************** | |
| task path: /root/.ansible/test/tmp/elb_target-zfaahz5_-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_lambda_target/tasks/main.yml:73 | |
| changed: [localhost] => {"changed": true, "health_check_enabled": false, "health_check_interval_seconds": 35, "health_check_path": "/", "health_check_timeout_seconds": 30, "healthy_threshold_count": 5, "lambda_multi_value_headers_enabled": "false", "load_balancer_arns": [], "matcher": {"http_code": "200"}, "resource_actions": ["elasticloadbalancing:DescribeTargetGroupAttributes", "elasticloadbalancing:DescribeTargetHealth", "elasticloadbalancing:RegisterTargets", "elasticloadbalancing:DescribeTags", "elasticloadbalancing:DescribeTargetGroups"], "tags": {}, "target_group_arn": "arn:aws:elasticloadbalancing:eu-central-1:731214760423:targetgroup/ansible-lambda-targetgroup/962d3d8d814d2888", "target_group_name": "ansible-lambda-targetgroup", "target_type": "lambda", "unhealthy_threshold_count": 2} | |
| TASK [elb_lambda_target : target is updated, state must be changed] ************ | |
| task path: /root/.ansible/test/tmp/elb_target-zfaahz5_-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_lambda_target/tasks/main.yml:84 | |
| ok: [localhost] => { | |
| "changed": false, | |
| "msg": "All assertions passed" | |
| } | |
| TASK [elb_lambda_target : re-add lambda to elb target (idempotency)] *********** | |
| task path: /root/.ansible/test/tmp/elb_target-zfaahz5_-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_lambda_target/tasks/main.yml:89 | |
| ok: [localhost] => {"changed": false, "health_check_enabled": false, "health_check_interval_seconds": 35, "health_check_path": "/", "health_check_timeout_seconds": 30, "healthy_threshold_count": 5, "lambda_multi_value_headers_enabled": "false", "load_balancer_arns": [], "matcher": {"http_code": "200"}, "resource_actions": ["elasticloadbalancing:DescribeTags", "elasticloadbalancing:DescribeTargetGroupAttributes", "elasticloadbalancing:DescribeTargetGroups", "elasticloadbalancing:DescribeTargetHealth"], "tags": {}, "target_group_arn": "arn:aws:elasticloadbalancing:eu-central-1:731214760423:targetgroup/ansible-lambda-targetgroup/962d3d8d814d2888", "target_group_name": "ansible-lambda-targetgroup", "target_type": "lambda", "unhealthy_threshold_count": 2} | |
| TASK [elb_lambda_target : target is still the same, state must not be changed (idempotency)] *** | |
| task path: /root/.ansible/test/tmp/elb_target-zfaahz5_-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_lambda_target/tasks/main.yml:100 | |
| ok: [localhost] => { | |
| "changed": false, | |
| "msg": "All assertions passed" | |
| } | |
| TASK [elb_lambda_target : remove lambda target from target group] ************** | |
| task path: /root/.ansible/test/tmp/elb_target-zfaahz5_-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_lambda_target/tasks/main.yml:105 | |
| changed: [localhost] => {"changed": true, "resource_actions": ["elasticloadbalancing:DescribeTargetGroups", "elasticloadbalancing:DeleteTargetGroup"]} | |
| TASK [elb_lambda_target : target is still the same, state must not be changed (idempotency)] *** | |
| task path: /root/.ansible/test/tmp/elb_target-zfaahz5_-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_lambda_target/tasks/main.yml:114 | |
| ok: [localhost] => { | |
| "changed": false, | |
| "msg": "All assertions passed" | |
| } | |
| TASK [elb_lambda_target : remove elb target group] ***************************** | |
| task path: /root/.ansible/test/tmp/elb_target-zfaahz5_-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_lambda_target/tasks/main.yml:120 | |
| ok: [localhost] => {"changed": false, "resource_actions": ["elasticloadbalancing:DescribeTargetGroups"]} | |
| TASK [elb_lambda_target : remove lambda function] ****************************** | |
| task path: /root/.ansible/test/tmp/elb_target-zfaahz5_-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_lambda_target/tasks/main.yml:127 | |
| changed: [localhost] => {"changed": true, "resource_actions": ["lambda:DeleteFunction", "lambda:GetFunction"]} | |
| TASK [elb_lambda_target : remove iam role for lambda] ************************** | |
| task path: /root/.ansible/test/tmp/elb_target-zfaahz5_-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_lambda_target/tasks/main.yml:133 | |
| changed: [localhost] => {"changed": true, "resource_actions": ["iam:DetachRolePolicy", "iam:DeleteRole", "iam:RemoveRoleFromInstanceProfile", "iam:ListInstanceProfilesForRole", "iam:GetRole", "iam:ListAttachedRolePolicies"]} | |
| META: ran handlers | |
| META: ran handlers | |
| PLAY RECAP ********************************************************************* | |
| localhost : ok=18 changed=9 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 | |
| AWS ACTIONS: ['elasticloadbalancing:CreateTargetGroup', 'elasticloadbalancing:DeleteTargetGroup', 'elasticloadbalancing:DescribeTags', 'elasticloadbalancing:DescribeTargetGroupAttributes', 'elasticloadbalancing:DescribeTargetGroups', 'elasticloadbalancing:DescribeTargetHealth', 'elasticloadbalancing:RegisterTargets', 'iam:DeleteRole', 'iam:DetachRolePolicy', 'iam:GetRole', 'iam:ListAttachedRolePolicies', 'iam:ListInstanceProfilesForRole', 'iam:RemoveRoleFromInstanceProfile', 'lambda:AddPermission', 'lambda:CreateFunction', 'lambda:DeleteFunction', 'lambda:GetFunction', 'lambda:GetPolicy'] | |
| Run command: docker exec 39984100ff00ac87bc134b2101c657f8f5060bba06ba0a7c68865f7a8ea745f8 tar czf /root/results.tgz -C /root/ansible/test results | |
| Run command: docker exec -i 39984100ff00ac87bc134b2101c657f8f5060bba06ba0a7c68865f7a8ea745f8 dd if=/root/results.tgz bs=65536 | |
| Run command: tar oxzf /tmp/ansible-result-ielogan2.tgz -C test | |
| Run command: docker rm -f 39984100ff00ac87bc134b2101c657f8f5060bba06ba0a7c68865f7a8ea745f8 | |
| m@pop-os:~/git/upstream-ansible/markuman-ansible$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PLAYBOOK: full_test.yml ******************************************************** | |
| 1 plays in playbooks/full_test.yml | |
| PLAY [localhost] *************************************************************** | |
| TASK [Gathering Facts] ********************************************************* | |
| task path: /root/.ansible/test/tmp/elb_target-_hvuqf5d-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/full_test.yml:1 | |
| ok: [localhost] | |
| META: ran handlers | |
| TASK [elb_target : debug] ****************************************************** | |
| task path: /root/.ansible/test/tmp/elb_target-_hvuqf5d-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_target/tasks/main.yml:6 | |
| ok: [localhost] => { | |
| "msg": "********** Setting up elb_target test dependencies **********" | |
| } | |
| TASK [elb_target : set up aws connection info] ********************************* | |
| task path: /root/.ansible/test/tmp/elb_target-_hvuqf5d-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_target/tasks/main.yml:10 | |
| ok: [localhost] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false} | |
| TASK [elb_target : set up testing VPC] ***************************************** | |
| task path: /root/.ansible/test/tmp/elb_target-_hvuqf5d-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_target/tasks/main.yml:21 | |
| changed: [localhost] => {"changed": true, "resource_actions": ["ec2:DescribeVpcAttribute", "ec2:DescribeVpcs", "ec2:ModifyVpcAttribute", "ec2:DescribeTags", "ec2:CreateVpc", "ec2:DescribeVpcClassicLink", "ec2:CreateTags"], "vpc": {"cidr_block": "20.0.0.0/16", "cidr_block_association_set": [{"association_id": "vpc-cidr-assoc-09a92bfd239643bc7", "cidr_block": "20.0.0.0/16", "cidr_block_state": {"state": "associated"}}], "classic_link_enabled": false, "dhcp_options_id": "dopt-ae38b2c7", "id": "vpc-01d4fb24fd495a5e5", "instance_tenancy": "default", "is_default": false, "owner_id": "731214760423", "state": "available", "tags": {"Description": "Created by ansible-test", "Name": "ansible-test-pop-os-33357298-vpc"}}} | |
| TASK [elb_target : set up testing internet gateway] **************************** | |
| task path: /root/.ansible/test/tmp/elb_target-_hvuqf5d-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_target/tasks/main.yml:32 | |
| changed: [localhost] => {"changed": true, "gateway_id": "igw-0e68d1a63e462e5bf", "resource_actions": ["ec2:CreateInternetGateway", "ec2:DescribeInternetGateways", "ec2:DescribeTags", "ec2:AttachInternetGateway"], "tags": {}, "vpc_id": "vpc-01d4fb24fd495a5e5"} | |
| TASK [elb_target : set up testing subnet] ************************************** | |
| task path: /root/.ansible/test/tmp/elb_target-_hvuqf5d-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_target/tasks/main.yml:39 | |
| changed: [localhost] => {"changed": true, "resource_actions": ["ec2:CreateSubnet", "ec2:DescribeSubnets", "ec2:DescribeTags", "ec2:CreateTags"], "subnet": {"assign_ipv6_address_on_creation": false, "availability_zone": "eu-central-1a", "availability_zone_id": "euc1-az2", "available_ip_address_count": 16379, "cidr_block": "20.0.0.0/18", "default_for_az": false, "id": "subnet-0dbe1581576d78884", "ipv6_association_id": "", "ipv6_cidr_block": "", "ipv6_cidr_block_association_set": [], "map_public_ip_on_launch": false, "owner_id": "731214760423", "state": "available", "subnet_arn": "arn:aws:ec2:eu-central-1:731214760423:subnet/subnet-0dbe1581576d78884", "tags": {"Name": "ansible-test-pop-os-33357298-subnet"}, "vpc_id": "vpc-01d4fb24fd495a5e5"}} | |
| TASK [elb_target : set up testing subnet] ************************************** | |
| task path: /root/.ansible/test/tmp/elb_target-_hvuqf5d-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_target/tasks/main.yml:50 | |
| changed: [localhost] => {"changed": true, "resource_actions": ["ec2:DescribeTags", "ec2:DescribeSubnets", "ec2:CreateTags", "ec2:CreateSubnet"], "subnet": {"assign_ipv6_address_on_creation": false, "availability_zone": "eu-central-1b", "availability_zone_id": "euc1-az3", "available_ip_address_count": 16379, "cidr_block": "20.0.64.0/18", "default_for_az": false, "id": "subnet-0aeac9945945387c8", "ipv6_association_id": "", "ipv6_cidr_block": "", "ipv6_cidr_block_association_set": [], "map_public_ip_on_launch": false, "owner_id": "731214760423", "state": "available", "subnet_arn": "arn:aws:ec2:eu-central-1:731214760423:subnet/subnet-0aeac9945945387c8", "tags": {"Name": "ansible-test-pop-os-33357298-subnet"}, "vpc_id": "vpc-01d4fb24fd495a5e5"}} | |
| TASK [elb_target : create routing rules] *************************************** | |
| task path: /root/.ansible/test/tmp/elb_target-_hvuqf5d-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_target/tasks/main.yml:61 | |
| changed: [localhost] => {"changed": true, "resource_actions": ["ec2:CreateRoute", "ec2:DescribeRouteTables", "ec2:DescribeSubnets", "ec2:AssociateRouteTable", "ec2:DescribeTags", "ec2:CreateRouteTable", "ec2:CreateTags"], "route_table": {"associations": [{"main": false, "route_table_association_id": "rtbassoc-0d6ef9e848cfb3bd5", "route_table_id": "rtb-0e34901804ecec861", "subnet_id": "subnet-0dbe1581576d78884"}, {"main": false, "route_table_association_id": "rtbassoc-0d373aca318a25d5e", "route_table_id": "rtb-0e34901804ecec861", "subnet_id": "subnet-0aeac9945945387c8"}], "id": "rtb-0e34901804ecec861", "owner_id": "731214760423", "propagating_vgws": [], "route_table_id": "rtb-0e34901804ecec861", "routes": [{"destination_cidr_block": "20.0.0.0/16", "gateway_id": "local", "origin": "CreateRouteTable", "state": "active"}, {"destination_cidr_block": "0.0.0.0/0", "gateway_id": "igw-0e68d1a63e462e5bf", "origin": "CreateRoute", "state": "active"}], "tags": {"created": "ansible-test-pop-os-33357298-route"}, "vpc_id": "vpc-01d4fb24fd495a5e5"}} | |
| TASK [elb_target : create testing security group] ****************************** | |
| task path: /root/.ansible/test/tmp/elb_target-_hvuqf5d-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_target/tasks/main.yml:75 | |
| changed: [localhost] => {"changed": true, "description": "a security group for ansible tests", "group_id": "sg-00b182af6eb6b68db", "group_name": "ansible-test-pop-os-33357298-sg", "ip_permissions": [{"from_port": 80, "ip_protocol": "tcp", "ip_ranges": [{"cidr_ip": "0.0.0.0/0"}], "ipv6_ranges": [], "prefix_list_ids": [], "to_port": 80, "user_id_group_pairs": []}, {"from_port": 22, "ip_protocol": "tcp", "ip_ranges": [{"cidr_ip": "0.0.0.0/0"}], "ipv6_ranges": [], "prefix_list_ids": [], "to_port": 22, "user_id_group_pairs": []}], "ip_permissions_egress": [{"ip_protocol": "-1", "ip_ranges": [{"cidr_ip": "0.0.0.0/0"}], "ipv6_ranges": [], "prefix_list_ids": [], "user_id_group_pairs": []}], "owner_id": "731214760423", "resource_actions": ["ec2:AuthorizeSecurityGroupIngress", "ec2:DescribeSecurityGroups", "ec2:CreateSecurityGroup", "sts:GetCallerIdentity"], "tags": {}, "vpc_id": "vpc-01d4fb24fd495a5e5"} | |
| TASK [elb_target : set up testing target group (type=instance)] **************** | |
| task path: /root/.ansible/test/tmp/elb_target-_hvuqf5d-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_target/tasks/main.yml:92 | |
| [WARNING]: The value 80 (type int) in a string field was converted to '80' | |
| (type string). If this does not look like what you expect, quote the entire | |
| value to ensure it does not change. | |
| changed: [localhost] => {"changed": true, "deregistration_delay_timeout_seconds": "300", "health_check_enabled": true, "health_check_interval_seconds": 30, "health_check_path": "/", "health_check_port": "traffic-port", "health_check_protocol": "HTTP", "health_check_timeout_seconds": 5, "healthy_threshold_count": 5, "load_balancer_arns": [], "matcher": {"http_code": "200"}, "port": 80, "protocol": "HTTP", "resource_actions": ["elasticloadbalancing:AddTags", "elasticloadbalancing:DescribeTargetGroupAttributes", "elasticloadbalancing:DescribeTargetGroups", "elasticloadbalancing:DescribeTags", "elasticloadbalancing:CreateTargetGroup"], "slow_start_duration_seconds": "0", "stickiness_enabled": "false", "stickiness_lb_cookie_duration_seconds": "86400", "stickiness_type": "lb_cookie", "tags": {"Description": "Created by ansible-test-pop-os-33357298"}, "target_group_arn": "arn:aws:elasticloadbalancing:eu-central-1:731214760423:targetgroup/ansible-test-33357298-tg/d2ffa797e084c4c2", "target_group_name": "ansible-test-33357298-tg", "target_type": "instance", "unhealthy_threshold_count": 2, "vpc_id": "vpc-01d4fb24fd495a5e5"} | |
| TASK [elb_target : set up testing target group for ALB (type=instance)] ******** | |
| task path: /root/.ansible/test/tmp/elb_target-_hvuqf5d-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_target/tasks/main.yml:105 | |
| changed: [localhost] => {"changed": true, "deregistration_delay_timeout_seconds": "300", "health_check_enabled": true, "health_check_interval_seconds": 30, "health_check_path": "/", "health_check_port": "traffic-port", "health_check_protocol": "HTTP", "health_check_timeout_seconds": 5, "healthy_threshold_count": 5, "load_balancer_arns": [], "matcher": {"http_code": "200"}, "port": 80, "protocol": "HTTP", "resource_actions": ["elasticloadbalancing:DescribeTargetGroups", "elasticloadbalancing:CreateTargetGroup", "elasticloadbalancing:DescribeTargetGroupAttributes", "elasticloadbalancing:DescribeTags", "elasticloadbalancing:AddTags"], "slow_start_duration_seconds": "0", "stickiness_enabled": "false", "stickiness_lb_cookie_duration_seconds": "86400", "stickiness_type": "lb_cookie", "tags": {"Description": "Created by ansible-test-pop-os-33357298"}, "target_group_arn": "arn:aws:elasticloadbalancing:eu-central-1:731214760423:targetgroup/ansible-test-33357298-tg-used/f1df364260844f3a", "target_group_name": "ansible-test-33357298-tg-used", "target_type": "instance", "unhealthy_threshold_count": 2, "vpc_id": "vpc-01d4fb24fd495a5e5"} | |
| TASK [elb_target : set up ec2 instance to use as a target] ********************* | |
| task path: /root/.ansible/test/tmp/elb_target-_hvuqf5d-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_target/tasks/main.yml:118 | |
| fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'eu-central-1'\n\nThe error appears to be in '/root/.ansible/test/tmp/elb_target-_hvuqf5d-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_target/tasks/main.yml': line 118, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: set up ec2 instance to use as a target\n ^ here\n"} | |
| TASK [elb_target : debug] ****************************************************** | |
| task path: /root/.ansible/test/tmp/elb_target-_hvuqf5d-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_target/tasks/main.yml:322 | |
| ok: [localhost] => { | |
| "msg": "********** Tearing down elb_target test dependencies **********" | |
| } | |
| TASK [elb_target : remove ec2 instance] **************************************** | |
| task path: /root/.ansible/test/tmp/elb_target-_hvuqf5d-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_target/tasks/main.yml:325 | |
| fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'eu-central-1'\n\nThe error appears to be in '/root/.ansible/test/tmp/elb_target-_hvuqf5d-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_target/tasks/main.yml': line 325, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: remove ec2 instance\n ^ here\n"} | |
| ...ignoring | |
| TASK [elb_target : remove testing target groups] ******************************* | |
| task path: /root/.ansible/test/tmp/elb_target-_hvuqf5d-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_target/tasks/main.yml:343 | |
| changed: [localhost] => (item=ansible-test-33357298-tg) => {"ansible_loop_var": "item", "attempts": 1, "changed": true, "item": "ansible-test-33357298-tg", "resource_actions": ["elasticloadbalancing:DescribeTargetGroups", "elasticloadbalancing:DeleteTargetGroup"], "warnings": ["The value 80 (type int) in a string field was converted to '80' (type string). If this does not look like what you expect, quote the entire value to ensure it does not change."]} | |
| changed: [localhost] => (item=ansible-test-33357298-tg-used) => {"ansible_loop_var": "item", "attempts": 1, "changed": true, "item": "ansible-test-33357298-tg-used", "resource_actions": ["elasticloadbalancing:DescribeTargetGroups", "elasticloadbalancing:DeleteTargetGroup"], "warnings": ["The value 80 (type int) in a string field was converted to '80' (type string). If this does not look like what you expect, quote the entire value to ensure it does not change."]} | |
| TASK [elb_target : remove application load balancer] *************************** | |
| task path: /root/.ansible/test/tmp/elb_target-_hvuqf5d-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_target/tasks/main.yml:365 | |
| ok: [localhost] => {"attempts": 1, "changed": false, "resource_actions": ["ec2:DescribeSecurityGroups", "elasticloadbalancing:DescribeLoadBalancers"]} | |
| TASK [elb_target : remove testing security group] ****************************** | |
| task path: /root/.ansible/test/tmp/elb_target-_hvuqf5d-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_target/tasks/main.yml:388 | |
| changed: [localhost] => {"attempts": 1, "changed": true, "group_id": null, "resource_actions": ["ec2:DeleteSecurityGroup", "sts:GetCallerIdentity", "ec2:DescribeSecurityGroups"]} | |
| TASK [elb_target : remove routing rules] *************************************** | |
| task path: /root/.ansible/test/tmp/elb_target-_hvuqf5d-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_target/tasks/main.yml:409 | |
| changed: [localhost] => {"attempts": 1, "changed": true, "resource_actions": ["ec2:DescribeRouteTables", "ec2:DisassociateRouteTable", "ec2:DeleteRouteTable"]} | |
| TASK [elb_target : remove testing subnet] ************************************** | |
| task path: /root/.ansible/test/tmp/elb_target-_hvuqf5d-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_target/tasks/main.yml:420 | |
| changed: [localhost] => {"attempts": 1, "changed": true, "resource_actions": ["ec2:DescribeSubnets", "ec2:DeleteSubnet"]} | |
| TASK [elb_target : remove testing subnet] ************************************** | |
| task path: /root/.ansible/test/tmp/elb_target-_hvuqf5d-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_target/tasks/main.yml:434 | |
| changed: [localhost] => {"attempts": 1, "changed": true, "resource_actions": ["ec2:DeleteSubnet", "ec2:DescribeSubnets"]} | |
| TASK [elb_target : remove testing internet gateway] **************************** | |
| task path: /root/.ansible/test/tmp/elb_target-_hvuqf5d-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_target/tasks/main.yml:448 | |
| changed: [localhost] => {"attempts": 1, "changed": true, "resource_actions": ["ec2:DescribeInternetGateways", "ec2:DetachInternetGateway", "ec2:DeleteInternetGateway"]} | |
| TASK [elb_target : remove testing VPC] ***************************************** | |
| task path: /root/.ansible/test/tmp/elb_target-_hvuqf5d-ÅÑŚÌβŁÈ/test/integration/targets/elb_target/playbooks/roles/elb_target/tasks/main.yml:458 | |
| changed: [localhost] => {"attempts": 1, "changed": true, "resource_actions": ["ec2:DescribeVpcs", "ec2:DeleteVpc"], "vpc": {}} | |
| PLAY RECAP ********************************************************************* | |
| localhost : ok=21 changed=15 unreachable=0 failed=1 skipped=0 rescued=0 ignored=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment