This is a gist for files to support an issue I will open for packer.
-
-
Save pfuntner/19d6e0abbea44001c5d1c4e409e29dd8 to your computer and use it in GitHub Desktop.
files to support packer issue
This file contains 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
{ | |
"description": "Build a Hardened AMI", | |
"variables": { | |
"required_vars_description":"variables below must be set for a successful build", | |
"os_family": "OS family - e.g. RedHat", | |
"os_distro": "DistroName - e.g. CentOS", | |
"os_majversion": "DistroMajVersion - e.g. 6", | |
"ssh_username": "login username - e.g. centos", | |
"search_vars_description": "variables below identify the source AMI", | |
"search_ami_info1": "you must to code enough of the seach_ami_ variables to identify", | |
"search_ami_info2": "your source image. You can use * in these fields as wildcards", | |
"search_ami_info3": "if mulitple AMIs match, the latest will be used", | |
"search_ami_id": "*", | |
"search_ami_name": "*", | |
"search_ami_virt_type": "hvm", | |
"search_ami_root_device_type": "ebs", | |
"search_ami_owner_id": "*", | |
"optional_vars_description":"variables below are defaulted but can be overridden as needed", | |
"aws_instance_type": "t2.micro", | |
"virt_type_desc": "HVM", | |
"root_type_desc": "EBS", | |
"copy_to_regions": "", | |
"share_with_accounts": "", | |
"ssh_keypair_name": "foo", | |
"ssh_private_key_file": "foo", | |
"security_group_ids": "", | |
"encrypt": "false", | |
"aws_profile": "", | |
"aws_kms_key": "", | |
"aws_access_key": "", | |
"aws_secret_key": "", | |
"aws_region": "", | |
"aws_vpc_id": "", | |
"aws_subnet_id": "", | |
"aws_ena_support": "true", | |
"hardening_name": "Hardened", | |
"ansible_playbook_file": "./harden.yml", | |
"ansible_command":"ansible-playbook", | |
"sleep_time": "10", | |
"date_stamp": "{{isotime \"2006-01-02\"}}", | |
"time_stamp": "{{isotime \"2006-01-02.15.04.05\"}}", | |
"ansible_extra_vars_cis_cat": "", | |
"ansible_extra_vars_serverspec": "", | |
"ansible_extra_vars_distro": "", | |
"ansible_extra_vars_level": "", | |
"ansible_extra_vars_user": "", | |
"tag_application_name": "", | |
"tag_application_version": "" | |
}, | |
"builders": [ | |
{ | |
"type": "amazon-ebs", | |
"encrypt_boot": "{{user `encrypt`}}", | |
"kms_key_id": "{{user `aws_kms_key`}}", | |
"access_key": "{{user `aws_access_key`}}", | |
"secret_key": "{{user `aws_secret_key`}}", | |
"region": "{{user `aws_region`}}", | |
"profile": "{{user `aws_profile`}}", | |
"ami_regions": "{{user `copy_to_regions`}}", | |
"ami_users": "{{user `share_with_accounts`}}", | |
"snapshot_users":"{{user `share_with_accounts`}}", | |
"vpc_id":"{{user `aws_vpc_id`}}", | |
"subnet_id":"{{user `aws_subnet_id`}}", | |
"associate_public_ip_address":"{{user `aws_associate_public_ip_address`}}", | |
"source_ami_filter": { | |
"filters": { | |
"image-id": "{{user `search_ami_id`}}", | |
"name": "{{user `search_ami_name`}}", | |
"virtualization-type": "{{user `search_ami_virt_type`}}", | |
"root-device-type": "{{user `search_ami_root_device_type`}}" | |
}, | |
"owners": ["{{user `search_ami_owner_id`}}"], | |
"most_recent": true | |
}, | |
"instance_type": "{{user `aws_instance_type`}}", | |
"ssh_username": "{{user `ssh_username`}}", | |
"ssh_keypair_name": "{{user `ssh_keypair_name`}}", | |
"security_group_ids": "{{user `security_group_ids`}}", | |
"ssh_private_key_file": "{{user `ssh_private_key_file`}}", | |
"ami_description": "{{user `os_distro`}}_{{user `os_majversion`}}_{{user `virt_type_desc`}}_{{user `root_type_desc`}}-{{user `date_stamp`}}-{{user `hardening_name`}}", | |
"ami_name": "{{user `hardening_name`}}-{{user `os_distro`}}{{user `os_majversion`}}_{{user `virt_type_desc`}}_{{user `root_type_desc`}}-{{user `time_stamp`}}", | |
"ena_support": "{{user `aws_ena_support`}}", | |
"tags": { | |
"Name": "{{user `os_distro`}}{{user `os_majversion`}}-{{user `date_stamp`}}", | |
"DefaultLoginUser": "{{user `ssh_username`}}", | |
"OSDistro": "{{user `os_distro`}}", | |
"OSVersion": "{{user `os_majversion`}}", | |
"OSShortName": "{{user `os_distro`}}{{user `os_majversion`}}", | |
"OSFamily": "{{user `os_family`}}", | |
"Created": "{{ user `time_stamp`}}", | |
"BuiltWithPackerVersion": "{{ packer_version }}", | |
"VirtualizationType": "{{user `virt_type_desc`}}", | |
"RootDeviceType": "{{user `root_type_desc`}}", | |
"SourceAMI": "{{ .SourceAMI }}", | |
"BuildRegion": "{{ .BuildRegion }}", | |
"ApplicationName": "{{ user `tag_application_name` }}", | |
"ApplicationVersion": "{{ user `tag_application_version` }}" | |
} | |
} | |
], | |
"provisioners": [ | |
{ | |
"type": "shell", | |
"inline": [ | |
"sleep 20" | |
] | |
}, | |
{ | |
"type": "ansible", | |
"command":"{{user `ansible_command`}}", | |
"playbook_file": "{{user `ansible_playbook_file`}}", | |
"user": "{{user `ssh_username`}}", | |
"extra_arguments": [ | |
"--extra-vars", | |
"{{user `ansible_extra_vars`}}" | |
] | |
}, | |
{ | |
"type": "shell", | |
"inline": [ | |
"rm /home/{{user `ssh_username`}}/.ssh/authorized_keys" | |
] | |
} | |
] | |
} |
This file contains 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
$ PACKER_LOG=1 packer build -var-file vars-rhel8.json aws-ebs-ansible.json | |
2020/01/15 07:01:48 [INFO] Packer version: 1.5.1 [go1.13.5 linux amd64] | |
2020/01/15 07:01:48 Attempting to open config file: /home/centos/.packerconfig | |
2020/01/15 07:01:48 [WARN] Config file doesn't exist: /home/centos/.packerconfig | |
2020/01/15 07:01:48 Setting cache directory: /home/centos/git/packer/packer-ssh-hang/packer_cache | |
2020/01/15 07:01:48 Plugin could not be found at /home/centos/Downloads/packer_1.5.1/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs (exec: "/home/centos/Downloads/packer_1.5.1/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs": stat /home/centos/Downloads/packer_1.5.1/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs: no such file or directory). Checking same directory as executable. | |
2020/01/15 07:01:48 Current exe path: /home/centos/Downloads/packer_1.5.1/packer | |
2020/01/15 07:01:48 Creating plugin client for path: /home/centos/Downloads/packer_1.5.1/packer | |
2020/01/15 07:01:48 Starting plugin: /home/centos/Downloads/packer_1.5.1/packer []string{"/home/centos/Downloads/packer_1.5.1/packer", "plugin", "packer-builder-amazon-ebs"} | |
2020/01/15 07:01:48 Waiting for RPC address for: /home/centos/Downloads/packer_1.5.1/packer | |
2020/01/15 07:01:48 packer-builder-amazon-ebs plugin: [INFO] Packer version: 1.5.1 [go1.13.5 linux amd64] | |
2020/01/15 07:01:48 packer-builder-amazon-ebs plugin: Attempting to open config file: /home/centos/.packerconfig | |
2020/01/15 07:01:48 packer-builder-amazon-ebs plugin: [WARN] Config file doesn't exist: /home/centos/.packerconfig | |
2020/01/15 07:01:48 packer-builder-amazon-ebs plugin: Setting cache directory: /home/centos/git/packer/packer-ssh-hang/packer_cache | |
2020/01/15 07:01:48 packer-builder-amazon-ebs plugin: args: []string{"packer-builder-amazon-ebs"} | |
2020/01/15 07:01:48 Received unix RPC address for /home/centos/Downloads/packer_1.5.1/packer: addr is /tmp/packer-plugin354851783 | |
2020/01/15 07:01:48 packer-builder-amazon-ebs plugin: Plugin address: unix /tmp/packer-plugin354851783 | |
2020/01/15 07:01:48 packer-builder-amazon-ebs plugin: Waiting for connection... | |
2020/01/15 07:01:48 packer-builder-amazon-ebs plugin: Serving a plugin connection... | |
2020/01/15 07:01:48 Plugin could not be found at /home/centos/Downloads/packer_1.5.1/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell (exec: "/home/centos/Downloads/packer_1.5.1/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell": stat /home/centos/Downloads/packer_1.5.1/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell: no such file or directory). Checking same directory as executable. | |
2020/01/15 07:01:48 Current exe path: /home/centos/Downloads/packer_1.5.1/packer | |
2020/01/15 07:01:48 Creating plugin client for path: /home/centos/Downloads/packer_1.5.1/packer | |
2020/01/15 07:01:48 Starting plugin: /home/centos/Downloads/packer_1.5.1/packer []string{"/home/centos/Downloads/packer_1.5.1/packer", "plugin", "packer-provisioner-shell"} | |
2020/01/15 07:01:48 Waiting for RPC address for: /home/centos/Downloads/packer_1.5.1/packer | |
2020/01/15 07:01:48 packer-provisioner-shell plugin: [INFO] Packer version: 1.5.1 [go1.13.5 linux amd64] | |
2020/01/15 07:01:48 packer-provisioner-shell plugin: Attempting to open config file: /home/centos/.packerconfig | |
2020/01/15 07:01:48 packer-provisioner-shell plugin: [WARN] Config file doesn't exist: /home/centos/.packerconfig | |
2020/01/15 07:01:48 packer-provisioner-shell plugin: Setting cache directory: /home/centos/git/packer/packer-ssh-hang/packer_cache | |
2020/01/15 07:01:48 packer-provisioner-shell plugin: args: []string{"packer-provisioner-shell"} | |
2020/01/15 07:01:48 Received unix RPC address for /home/centos/Downloads/packer_1.5.1/packer: addr is /tmp/packer-plugin149570574 | |
2020/01/15 07:01:48 packer-provisioner-shell plugin: Plugin address: unix /tmp/packer-plugin149570574 | |
2020/01/15 07:01:48 packer-provisioner-shell plugin: Waiting for connection... | |
2020/01/15 07:01:48 packer-provisioner-shell plugin: Serving a plugin connection... | |
2020/01/15 07:01:48 Plugin could not be found at /home/centos/Downloads/packer_1.5.1/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible (exec: "/home/centos/Downloads/packer_1.5.1/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible": stat /home/centos/Downloads/packer_1.5.1/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible: no such file or directory). Checking same directory as executable. | |
2020/01/15 07:01:48 Current exe path: /home/centos/Downloads/packer_1.5.1/packer | |
2020/01/15 07:01:48 Creating plugin client for path: /home/centos/Downloads/packer_1.5.1/packer | |
2020/01/15 07:01:48 Starting plugin: /home/centos/Downloads/packer_1.5.1/packer []string{"/home/centos/Downloads/packer_1.5.1/packer", "plugin", "packer-provisioner-ansible"} | |
2020/01/15 07:01:48 Waiting for RPC address for: /home/centos/Downloads/packer_1.5.1/packer | |
2020/01/15 07:01:48 Received unix RPC address for /home/centos/Downloads/packer_1.5.1/packer: addr is /tmp/packer-plugin779565301 | |
2020/01/15 07:01:48 packer-provisioner-ansible plugin: [INFO] Packer version: 1.5.1 [go1.13.5 linux amd64] | |
2020/01/15 07:01:48 packer-provisioner-ansible plugin: Attempting to open config file: /home/centos/.packerconfig | |
2020/01/15 07:01:48 packer-provisioner-ansible plugin: [WARN] Config file doesn't exist: /home/centos/.packerconfig | |
2020/01/15 07:01:48 packer-provisioner-ansible plugin: Setting cache directory: /home/centos/git/packer/packer-ssh-hang/packer_cache | |
2020/01/15 07:01:48 packer-provisioner-ansible plugin: args: []string{"packer-provisioner-ansible"} | |
2020/01/15 07:01:48 packer-provisioner-ansible plugin: Plugin address: unix /tmp/packer-plugin779565301 | |
2020/01/15 07:01:48 packer-provisioner-ansible plugin: Waiting for connection... | |
2020/01/15 07:01:48 packer-provisioner-ansible plugin: Serving a plugin connection... | |
2020/01/15 07:01:48 Plugin could not be found at /home/centos/Downloads/packer_1.5.1/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell (exec: "/home/centos/Downloads/packer_1.5.1/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell": stat /home/centos/Downloads/packer_1.5.1/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell: no such file or directory). Checking same directory as executable. | |
2020/01/15 07:01:48 Current exe path: /home/centos/Downloads/packer_1.5.1/packer | |
2020/01/15 07:01:48 Creating plugin client for path: /home/centos/Downloads/packer_1.5.1/packer | |
2020/01/15 07:01:48 Starting plugin: /home/centos/Downloads/packer_1.5.1/packer []string{"/home/centos/Downloads/packer_1.5.1/packer", "plugin", "packer-provisioner-shell"} | |
2020/01/15 07:01:48 Waiting for RPC address for: /home/centos/Downloads/packer_1.5.1/packer | |
2020/01/15 07:01:48 packer-provisioner-shell plugin: [INFO] Packer version: 1.5.1 [go1.13.5 linux amd64] | |
2020/01/15 07:01:48 packer-provisioner-shell plugin: Attempting to open config file: /home/centos/.packerconfig | |
2020/01/15 07:01:48 packer-provisioner-shell plugin: [WARN] Config file doesn't exist: /home/centos/.packerconfig | |
2020/01/15 07:01:48 packer-provisioner-shell plugin: Setting cache directory: /home/centos/git/packer/packer-ssh-hang/packer_cache | |
2020/01/15 07:01:48 packer-provisioner-shell plugin: args: []string{"packer-provisioner-shell"} | |
2020/01/15 07:01:48 packer-provisioner-shell plugin: Plugin address: unix /tmp/packer-plugin320203560 | |
2020/01/15 07:01:48 packer-provisioner-shell plugin: Waiting for connection... | |
2020/01/15 07:01:48 Received unix RPC address for /home/centos/Downloads/packer_1.5.1/packer: addr is /tmp/packer-plugin320203560 | |
2020/01/15 07:01:48 packer-provisioner-shell plugin: Serving a plugin connection... | |
amazon-ebs: output will be in this color. | |
2020/01/15 07:01:48 Build debug mode: false | |
2020/01/15 07:01:48 Force build: false | |
2020/01/15 07:01:48 On error: | |
2020/01/15 07:01:48 Preparing build: amazon-ebs | |
2020/01/15 07:01:49 packer-provisioner-ansible plugin: ansible-playbook version: 2.8.4 | |
2020/01/15 07:01:49 Waiting on builds to complete... | |
2020/01/15 07:01:49 Starting build run: amazon-ebs | |
2020/01/15 07:01:49 Running builder: amazon-ebs | |
2020/01/15 07:01:49 [INFO] (telemetry) Starting builder amazon-ebs | |
2020/01/15 07:01:49 packer-builder-amazon-ebs plugin: Found region us-east-1 | |
2020/01/15 07:01:49 packer-builder-amazon-ebs plugin: [INFO] AWS Auth provider used: "SharedConfigCredentials: /home/centos/.aws/credentials" | |
2020/01/15 07:01:49 packer-builder-amazon-ebs plugin: [INFO] (aws): No AWS timeout and polling overrides have been set. Packer will default to waiter-specific delays and timeouts. If you would like to customize the length of time between retries and max number of retries you may do so by setting the environment variables AWS_POLL_DELAY_SECONDS and AWS_MAX_ATTEMPTS to your desired values. | |
==> amazon-ebs: Prevalidating any provided VPC information | |
==> amazon-ebs: Prevalidating AMI Name: Hardened-RHEL8_HVM_EBS-2020-01-15.12.01.48 | |
2020/01/15 07:01:50 packer-builder-amazon-ebs plugin: Using AMI Filters { | |
2020/01/15 07:01:50 packer-builder-amazon-ebs plugin: Filters: [ | |
2020/01/15 07:01:50 packer-builder-amazon-ebs plugin: { | |
2020/01/15 07:01:50 packer-builder-amazon-ebs plugin: Name: "virtualization-type", | |
2020/01/15 07:01:50 packer-builder-amazon-ebs plugin: Values: ["hvm"] | |
2020/01/15 07:01:50 packer-builder-amazon-ebs plugin: }, | |
2020/01/15 07:01:50 packer-builder-amazon-ebs plugin: { | |
2020/01/15 07:01:50 packer-builder-amazon-ebs plugin: Name: "root-device-type", | |
2020/01/15 07:01:50 packer-builder-amazon-ebs plugin: Values: ["ebs"] | |
2020/01/15 07:01:50 packer-builder-amazon-ebs plugin: }, | |
2020/01/15 07:01:50 packer-builder-amazon-ebs plugin: { | |
2020/01/15 07:01:50 packer-builder-amazon-ebs plugin: Name: "image-id", | |
2020/01/15 07:01:50 packer-builder-amazon-ebs plugin: Values: ["*"] | |
2020/01/15 07:01:50 packer-builder-amazon-ebs plugin: }, | |
2020/01/15 07:01:50 packer-builder-amazon-ebs plugin: { | |
2020/01/15 07:01:50 packer-builder-amazon-ebs plugin: Name: "name", | |
2020/01/15 07:01:50 packer-builder-amazon-ebs plugin: Values: ["RHEL-8.*_HVM-????????-x86_64-?-Hourly2-GP2"] | |
2020/01/15 07:01:50 packer-builder-amazon-ebs plugin: } | |
2020/01/15 07:01:50 packer-builder-amazon-ebs plugin: ], | |
2020/01/15 07:01:50 packer-builder-amazon-ebs plugin: Owners: ["309956199498"] | |
2020/01/15 07:01:50 packer-builder-amazon-ebs plugin: } | |
amazon-ebs: Found Image ID: ami-09b947b170ccd0dbc | |
==> amazon-ebs: Using existing SSH private key | |
==> amazon-ebs: Creating temporary security group for this instance: packer_5e1eff2e-115a-34fc-de24-d2863af9ed00 | |
2020/01/15 07:01:51 packer-builder-amazon-ebs plugin: [DEBUG] Waiting for temporary security group: sg-03962b14cef53a1f7 | |
==> amazon-ebs: Authorizing access to port 22 from [0.0.0.0/0] in the temporary security groups... | |
2020/01/15 07:01:51 packer-builder-amazon-ebs plugin: [DEBUG] Found security group sg-03962b14cef53a1f7 | |
==> amazon-ebs: Launching a source AWS instance... | |
==> amazon-ebs: Adding tags to source instance | |
amazon-ebs: Adding tag: "Name": "Packer Builder" | |
amazon-ebs: Instance ID: i-05460890b4c732bdd | |
==> amazon-ebs: Waiting for instance (i-05460890b4c732bdd) to become ready... | |
2020/01/15 07:02:23 packer-builder-amazon-ebs plugin: [INFO] Not using winrm communicator, skipping get password... | |
==> amazon-ebs: Using ssh communicator to connect: 54.209.97.87 | |
2020/01/15 07:02:23 packer-builder-amazon-ebs plugin: [INFO] Waiting for SSH, up to timeout: 5m0s | |
==> amazon-ebs: Waiting for SSH to become available... | |
2020/01/15 07:02:23 packer-builder-amazon-ebs plugin: Using ssh_host value: 54.209.97.87 | |
2020/01/15 07:02:38 packer-builder-amazon-ebs plugin: [DEBUG] TCP connection to SSH ip/port failed: dial tcp 54.209.97.87:22: i/o timeout | |
2020/01/15 07:02:43 packer-builder-amazon-ebs plugin: Using ssh_host value: 54.209.97.87 | |
2020/01/15 07:02:43 packer-builder-amazon-ebs plugin: [DEBUG] TCP connection to SSH ip/port failed: dial tcp 54.209.97.87:22: connect: connection refused | |
2020/01/15 07:02:48 packer-builder-amazon-ebs plugin: Using ssh_host value: 54.209.97.87 | |
2020/01/15 07:02:48 packer-builder-amazon-ebs plugin: [DEBUG] TCP connection to SSH ip/port failed: dial tcp 54.209.97.87:22: connect: connection refused | |
2020/01/15 07:02:53 packer-builder-amazon-ebs plugin: Using ssh_host value: 54.209.97.87 | |
2020/01/15 07:02:53 packer-builder-amazon-ebs plugin: [DEBUG] TCP connection to SSH ip/port failed: dial tcp 54.209.97.87:22: connect: connection refused | |
2020/01/15 07:02:58 packer-builder-amazon-ebs plugin: Using ssh_host value: 54.209.97.87 | |
2020/01/15 07:02:58 packer-builder-amazon-ebs plugin: [DEBUG] TCP connection to SSH ip/port failed: dial tcp 54.209.97.87:22: connect: connection refused | |
2020/01/15 07:03:03 packer-builder-amazon-ebs plugin: Using ssh_host value: 54.209.97.87 | |
2020/01/15 07:03:03 packer-builder-amazon-ebs plugin: [DEBUG] TCP connection to SSH ip/port failed: dial tcp 54.209.97.87:22: connect: connection refused | |
2020/01/15 07:03:08 packer-builder-amazon-ebs plugin: Using ssh_host value: 54.209.97.87 | |
2020/01/15 07:03:08 packer-builder-amazon-ebs plugin: [DEBUG] TCP connection to SSH ip/port failed: dial tcp 54.209.97.87:22: connect: connection refused | |
2020/01/15 07:03:13 packer-builder-amazon-ebs plugin: Using ssh_host value: 54.209.97.87 | |
2020/01/15 07:03:13 packer-builder-amazon-ebs plugin: [DEBUG] TCP connection to SSH ip/port failed: dial tcp 54.209.97.87:22: connect: connection refused | |
2020/01/15 07:03:18 packer-builder-amazon-ebs plugin: Using ssh_host value: 54.209.97.87 | |
2020/01/15 07:03:18 packer-builder-amazon-ebs plugin: [DEBUG] TCP connection to SSH ip/port failed: dial tcp 54.209.97.87:22: connect: connection refused | |
2020/01/15 07:03:23 packer-builder-amazon-ebs plugin: Using ssh_host value: 54.209.97.87 | |
2020/01/15 07:03:23 packer-builder-amazon-ebs plugin: [DEBUG] TCP connection to SSH ip/port failed: dial tcp 54.209.97.87:22: connect: connection refused | |
2020/01/15 07:03:28 packer-builder-amazon-ebs plugin: Using ssh_host value: 54.209.97.87 | |
2020/01/15 07:03:28 packer-builder-amazon-ebs plugin: [INFO] Attempting SSH connection to 54.209.97.87:22... | |
2020/01/15 07:03:28 packer-builder-amazon-ebs plugin: [DEBUG] reconnecting to TCP connection for SSH | |
2020/01/15 07:03:28 packer-builder-amazon-ebs plugin: [DEBUG] handshaking with SSH | |
2020/01/15 07:03:28 packer-builder-amazon-ebs plugin: [DEBUG] handshake complete! | |
2020/01/15 07:03:28 packer-builder-amazon-ebs plugin: [INFO] no local agent socket, will not connect agent | |
==> amazon-ebs: Connected to SSH! | |
2020/01/15 07:03:28 packer-builder-amazon-ebs plugin: Running the provision hook | |
2020/01/15 07:03:28 [INFO] (telemetry) Starting provisioner shell | |
==> amazon-ebs: Provisioning with shell script: /tmp/packer-shell647379477 | |
2020/01/15 07:03:28 packer-provisioner-shell plugin: Opening /tmp/packer-shell647379477 for reading | |
2020/01/15 07:03:28 packer-provisioner-shell plugin: [INFO] 22 bytes written for 'uploadData' | |
2020/01/15 07:03:28 [INFO] 22 bytes written for 'uploadData' | |
2020/01/15 07:03:28 packer-builder-amazon-ebs plugin: [DEBUG] Opening new ssh session | |
2020/01/15 07:03:29 packer-builder-amazon-ebs plugin: [DEBUG] Starting remote scp process: scp -vt /tmp | |
2020/01/15 07:03:29 packer-builder-amazon-ebs plugin: [DEBUG] Started SCP session, beginning transfers... | |
2020/01/15 07:03:29 packer-builder-amazon-ebs plugin: [DEBUG] Copying input data into temporary file so we can read the length | |
2020/01/15 07:03:29 packer-builder-amazon-ebs plugin: [DEBUG] scp: Uploading script_5536.sh: perms=C0644 size=22 | |
2020/01/15 07:03:29 packer-builder-amazon-ebs plugin: [DEBUG] SCP session complete, closing stdin pipe. | |
2020/01/15 07:03:29 packer-builder-amazon-ebs plugin: [DEBUG] Waiting for SSH session to complete. | |
2020/01/15 07:03:29 packer-builder-amazon-ebs plugin: [DEBUG] scp stderr (length 30): Sink: C0644 22 script_5536.sh | |
2020/01/15 07:03:29 packer-builder-amazon-ebs plugin: [DEBUG] Opening new ssh session | |
2020/01/15 07:03:29 packer-builder-amazon-ebs plugin: [DEBUG] starting remote command: chmod 0755 /tmp/script_5536.sh | |
2020/01/15 07:03:29 packer-builder-amazon-ebs plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:29 [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:29 [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:29 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:29 packer-builder-amazon-ebs plugin: [DEBUG] Opening new ssh session | |
2020/01/15 07:03:29 packer-builder-amazon-ebs plugin: [DEBUG] starting remote command: chmod +x /tmp/script_5536.sh; PACKER_BUILDER_TYPE='amazon-ebs' PACKER_BUILD_NAME='amazon-ebs' /tmp/script_5536.sh | |
2020/01/15 07:03:49 packer-builder-amazon-ebs plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:49 [INFO] 0 bytes written for 'stdout' | |
2020/01/15 07:03:49 [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:03:49 [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:49 [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:49 packer-provisioner-shell plugin: [INFO] 0 bytes written for 'stdout' | |
2020/01/15 07:03:49 packer-provisioner-shell plugin: [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:03:49 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:49 packer-builder-amazon-ebs plugin: [DEBUG] Opening new ssh session | |
2020/01/15 07:03:49 packer-builder-amazon-ebs plugin: [DEBUG] starting remote command: rm -f /tmp/script_5536.sh | |
2020/01/15 07:03:49 packer-builder-amazon-ebs plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:49 [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:49 [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:49 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:49 packer-builder-amazon-ebs plugin: [DEBUG] Opening new ssh session | |
2020/01/15 07:03:49 packer-builder-amazon-ebs plugin: [DEBUG] starting remote command: rm -f | |
2020/01/15 07:03:49 packer-builder-amazon-ebs plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:49 [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:49 [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:49 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:49 [INFO] (telemetry) ending shell | |
2020/01/15 07:03:49 [INFO] (telemetry) Starting provisioner ansible | |
==> amazon-ebs: Provisioning with Ansible... | |
2020/01/15 07:03:50 packer-provisioner-ansible plugin: SSH proxy: serving on 127.0.0.1:37060 | |
==> amazon-ebs: Executing Ansible: *****a*****n*****s*****i*****b*****l*****e*****-*****p*****l*****a*****y*****b*****o*****o*****k***** *****-*****-*****e*****x*****t*****r*****a*****-*****v*****a*****r*****s***** *****p*****a*****c*****k*****e*****r*****_*****b*****u*****i*****l*****d*****_*****n*****a*****m*****e*****=*****a*****m*****a*****z*****o*****n*****-*****e*****b*****s***** *****p*****a*****c*****k*****e*****r*****_*****b*****u*****i*****l*****d*****e*****r*****_*****t*****y*****p*****e*****=*****a*****m*****a*****z*****o*****n*****-*****e*****b*****s***** *****-*****o***** *****I*****d*****e*****n*****t*****i*****t*****i*****e*****s*****O*****n*****l*****y*****=*****y*****e*****s***** *****-*****i***** *****/*****t*****m*****p*****/*****p*****a*****c*****k*****e*****r*****-*****p*****r*****o*****v*****i*****s*****i*****o*****n*****e*****r*****-*****a*****n*****s*****i*****b*****l*****e*****2*****6*****1*****7*****8*****3*****2*****7*****9***** *****/*****h*****o*****m*****e*****/*****c*****e*****n*****t*****o*****s*****/*****g*****i*****t*****/*****p*****a*****c*****k*****e*****r*****/*****p*****a*****c*****k*****e*****r*****-*****s*****s*****h*****-*****h*****a*****n*****g*****/*****h*****a*****r*****d*****e*****n*****.*****y*****m*****l***** *****-*****e***** *****a*****n*****s*****i*****b*****l*****e*****_*****s*****s*****h*****_*****p*****r*****i*****v*****a*****t*****e*****_*****k*****e*****y*****_*****f*****i*****l*****e*****=*****/*****t*****m*****p*****/*****a*****n*****s*****i*****b*****l*****e*****-*****k*****e*****y*****0*****4*****5*****6*****8*****3*****6*****6*****4***** *****-*****-*****e*****x*****t*****r*****a*****-*****v*****a*****r*****s***** ***** | |
amazon-ebs: | |
amazon-ebs: PLAY [Explore issue with Packer] *********************************************** | |
amazon-ebs: | |
amazon-ebs: TASK [Set system-wide crypto policy] ******************************************* | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: SSH proxy: accepted connection | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: authentication attempt from 127.0.0.1:42112 to 127.0.0.1:37060 as ec2-user using none | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: authentication attempt from 127.0.0.1:42112 to 127.0.0.1:37060 as ec2-user using publickey | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: new exec request: /bin/sh -c 'echo ~ec2-user && sleep 0' | |
2020/01/15 07:03:51 packer-builder-amazon-ebs plugin: [DEBUG] Opening new ssh session | |
2020/01/15 07:03:51 packer-builder-amazon-ebs plugin: [DEBUG] starting remote command: /bin/sh -c 'echo ~ec2-user && sleep 0' | |
2020/01/15 07:03:51 [INFO] 15 bytes written for 'stdout' | |
2020/01/15 07:03:51 packer-builder-amazon-ebs plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:51 [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:03:51 [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:51 [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:51 [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: [INFO] 15 bytes written for 'stdout' | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: new exec request: /bin/sh -c '( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1579089831.44-249144139011207 `" && echo ansible-tmp-1579089831.44-249144139011207="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1579089831.44-249144139011207 `" ) && sleep 0' | |
2020/01/15 07:03:51 packer-builder-amazon-ebs plugin: [DEBUG] Opening new ssh session | |
2020/01/15 07:03:51 packer-builder-amazon-ebs plugin: [DEBUG] starting remote command: /bin/sh -c '( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1579089831.44-249144139011207 `" && echo ansible-tmp-1579089831.44-249144139011207="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1579089831.44-249144139011207 `" ) && sleep 0' | |
2020/01/15 07:03:51 packer-builder-amazon-ebs plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:51 [INFO] 112 bytes written for 'stdout' | |
2020/01/15 07:03:51 [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:03:51 [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:51 [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:51 [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: [INFO] 112 bytes written for 'stdout' | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: new exec request: /bin/sh -c 'echo PLATFORM; uname; echo FOUND; command -v '"'"'/usr/bin/python'"'"'; command -v '"'"'python3.7'"'"'; command -v '"'"'python3.6'"'"'; command -v '"'"'python3.5'"'"'; command -v '"'"'python2.7'"'"'; command -v '"'"'python2.6'"'"'; command -v '"'"'/usr/libexec/platform-python'"'"'; command -v '"'"'/usr/bin/python3'"'"'; command -v '"'"'python'"'"'; echo ENDFOUND && sleep 0' | |
2020/01/15 07:03:51 packer-builder-amazon-ebs plugin: [DEBUG] Opening new ssh session | |
2020/01/15 07:03:51 packer-builder-amazon-ebs plugin: [DEBUG] starting remote command: /bin/sh -c 'echo PLATFORM; uname; echo FOUND; command -v '"'"'/usr/bin/python'"'"'; command -v '"'"'python3.7'"'"'; command -v '"'"'python3.6'"'"'; command -v '"'"'python3.5'"'"'; command -v '"'"'python2.7'"'"'; command -v '"'"'python2.6'"'"'; command -v '"'"'/usr/libexec/platform-python'"'"'; command -v '"'"'/usr/bin/python3'"'"'; command -v '"'"'python'"'"'; echo ENDFOUND && sleep 0' | |
2020/01/15 07:03:51 [INFO] 59 bytes written for 'stdout' | |
2020/01/15 07:03:51 [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:03:51 packer-builder-amazon-ebs plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:51 [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:51 [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:51 [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: [INFO] 59 bytes written for 'stdout' | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: new exec request: /bin/sh -c '/usr/libexec/platform-python && sleep 0' | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: [INFO] 1234 bytes written for 'stdin' | |
2020/01/15 07:03:51 [INFO] 1234 bytes written for 'stdin' | |
2020/01/15 07:03:51 packer-builder-amazon-ebs plugin: [DEBUG] Opening new ssh session | |
2020/01/15 07:03:51 packer-builder-amazon-ebs plugin: [DEBUG] starting remote command: /bin/sh -c '/usr/libexec/platform-python && sleep 0' | |
2020/01/15 07:03:51 packer-builder-amazon-ebs plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:51 [INFO] 623 bytes written for 'stdout' | |
2020/01/15 07:03:51 [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:03:51 [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:51 [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: [INFO] 623 bytes written for 'stdout' | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: new exec request: scp -t /home/ec2-user/.ansible/tmp/ansible-tmp-1579089831.44-249144139011207/AnsiballZ_command.py | |
2020/01/15 07:03:51 packer-provisioner-ansible plugin: [INFO] 105378 bytes written for 'uploadData' | |
2020/01/15 07:03:51 [INFO] 105378 bytes written for 'uploadData' | |
2020/01/15 07:03:51 packer-builder-amazon-ebs plugin: [DEBUG] Opening new ssh session | |
2020/01/15 07:03:51 packer-builder-amazon-ebs plugin: [DEBUG] Starting remote scp process: scp -vt /home/ec2-user/.ansible/tmp/ansible-tmp-1579089831.44-249144139011207 | |
2020/01/15 07:03:51 packer-builder-amazon-ebs plugin: [DEBUG] Started SCP session, beginning transfers... | |
2020/01/15 07:03:51 packer-builder-amazon-ebs plugin: [DEBUG] scp: Uploading AnsiballZ_command.py: perms=C0600 size=105378 | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [DEBUG] SCP session complete, closing stdin pipe. | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [DEBUG] Waiting for SSH session to complete. | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [DEBUG] scp stderr (length 40): Sink: C0600 105378 AnsiballZ_command.py | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: new exec request: /bin/sh -c 'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1579089831.44-249144139011207/ /home/ec2-user/.ansible/tmp/ansible-tmp-1579089831.44-249144139011207/AnsiballZ_command.py && sleep 0' | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [DEBUG] Opening new ssh session | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [DEBUG] starting remote command: /bin/sh -c 'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1579089831.44-249144139011207/ /home/ec2-user/.ansible/tmp/ansible-tmp-1579089831.44-249144139011207/AnsiballZ_command.py && sleep 0' | |
2020/01/15 07:03:52 [INFO] 0 bytes written for 'stdout' | |
2020/01/15 07:03:52 [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:03:52 [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:52 [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:52 [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdout' | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: ansible provisioner pty-req request | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: new exec request: /bin/sh -c 'sudo -H -S -n -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-pidtfchwnfcpgucgwnqupebtqpnxjdzc ; /usr/libexec/platform-python /home/ec2-user/.ansible/tmp/ansible-tmp-1579089831.44-249144139011207/AnsiballZ_command.py'"'"' && sleep 0' | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [DEBUG] Opening new ssh session | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [DEBUG] starting remote command: /bin/sh -c 'sudo -H -S -n -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-pidtfchwnfcpgucgwnqupebtqpnxjdzc ; /usr/libexec/platform-python /home/ec2-user/.ansible/tmp/ansible-tmp-1579089831.44-249144139011207/AnsiballZ_command.py'"'"' && sleep 0' | |
2020/01/15 07:03:52 [INFO] 879 bytes written for 'stdout' | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:52 [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:03:52 [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:52 [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:52 [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: [INFO] 879 bytes written for 'stdout' | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: new exec request: /bin/sh -c 'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1579089831.44-249144139011207/ > /dev/null 2>&1 && sleep 0' | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [DEBUG] Opening new ssh session | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [DEBUG] starting remote command: /bin/sh -c 'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1579089831.44-249144139011207/ > /dev/null 2>&1 && sleep 0' | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:52 [INFO] 0 bytes written for 'stdout' | |
2020/01/15 07:03:52 [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:03:52 [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:52 [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:52 [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdout' | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdin' | |
amazon-ebs: changed: [default] | |
amazon-ebs: | |
amazon-ebs: TASK [Zzzzzzzzz] *************************************************************** | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: new exec request: /bin/sh -c 'echo ~ec2-user && sleep 0' | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [DEBUG] Opening new ssh session | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [DEBUG] starting remote command: /bin/sh -c 'echo ~ec2-user && sleep 0' | |
2020/01/15 07:03:52 [INFO] 15 bytes written for 'stdout' | |
2020/01/15 07:03:52 [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:03:52 [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:52 [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:52 [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: [INFO] 15 bytes written for 'stdout' | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: new exec request: /bin/sh -c '( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1579089832.7-20006493658297 `" && echo ansible-tmp-1579089832.7-20006493658297="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1579089832.7-20006493658297 `" ) && sleep 0' | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [DEBUG] Opening new ssh session | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [DEBUG] starting remote command: /bin/sh -c '( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1579089832.7-20006493658297 `" && echo ansible-tmp-1579089832.7-20006493658297="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1579089832.7-20006493658297 `" ) && sleep 0' | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:52 [INFO] 108 bytes written for 'stdout' | |
2020/01/15 07:03:52 [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:03:52 [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:52 [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:52 [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: [INFO] 108 bytes written for 'stdout' | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: new exec request: scp -t /home/ec2-user/.ansible/tmp/ansible-tmp-1579089832.7-20006493658297/AnsiballZ_command.py | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [DEBUG] Opening new ssh session | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: [INFO] 105352 bytes written for 'uploadData' | |
2020/01/15 07:03:52 [INFO] 105352 bytes written for 'uploadData' | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [DEBUG] Starting remote scp process: scp -vt /home/ec2-user/.ansible/tmp/ansible-tmp-1579089832.7-20006493658297 | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [DEBUG] Started SCP session, beginning transfers... | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [DEBUG] scp: Uploading AnsiballZ_command.py: perms=C0600 size=105352 | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [DEBUG] SCP session complete, closing stdin pipe. | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [DEBUG] Waiting for SSH session to complete. | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [DEBUG] scp stderr (length 40): Sink: C0600 105352 AnsiballZ_command.py | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: new exec request: /bin/sh -c 'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1579089832.7-20006493658297/ /home/ec2-user/.ansible/tmp/ansible-tmp-1579089832.7-20006493658297/AnsiballZ_command.py && sleep 0' | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [DEBUG] Opening new ssh session | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [DEBUG] starting remote command: /bin/sh -c 'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1579089832.7-20006493658297/ /home/ec2-user/.ansible/tmp/ansible-tmp-1579089832.7-20006493658297/AnsiballZ_command.py && sleep 0' | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:52 [INFO] 0 bytes written for 'stdout' | |
2020/01/15 07:03:52 [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:03:52 [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:52 [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:03:52 [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdout' | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: ansible provisioner pty-req request | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2020/01/15 07:03:52 packer-provisioner-ansible plugin: new exec request: /bin/sh -c '/usr/libexec/platform-python /home/ec2-user/.ansible/tmp/ansible-tmp-1579089832.7-20006493658297/AnsiballZ_command.py && sleep 0' | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [DEBUG] Opening new ssh session | |
2020/01/15 07:03:52 packer-builder-amazon-ebs plugin: [DEBUG] starting remote command: /bin/sh -c '/usr/libexec/platform-python /home/ec2-user/.ansible/tmp/ansible-tmp-1579089832.7-20006493658297/AnsiballZ_command.py && sleep 0' | |
2020/01/15 07:05:53 [INFO] 432 bytes written for 'stdout' | |
2020/01/15 07:05:53 [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:05:53 [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:05:53 [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:05:53 [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:05:53 packer-builder-amazon-ebs plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: [INFO] 432 bytes written for 'stdout' | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: new exec request: /bin/sh -c 'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1579089832.7-20006493658297/ > /dev/null 2>&1 && sleep 0' | |
2020/01/15 07:05:53 packer-builder-amazon-ebs plugin: [DEBUG] Opening new ssh session | |
2020/01/15 07:05:53 packer-builder-amazon-ebs plugin: [DEBUG] starting remote command: /bin/sh -c 'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1579089832.7-20006493658297/ > /dev/null 2>&1 && sleep 0' | |
2020/01/15 07:05:53 [INFO] 0 bytes written for 'stdout' | |
2020/01/15 07:05:53 [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:05:53 [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:05:53 [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:05:53 packer-builder-amazon-ebs plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:05:53 [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdout' | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdin' | |
amazon-ebs: changed: [default] | |
amazon-ebs: | |
amazon-ebs: TASK [Reboot] ****************************************************************** | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: new exec request: /bin/sh -c 'echo ~ec2-user && sleep 0' | |
2020/01/15 07:05:53 packer-builder-amazon-ebs plugin: [DEBUG] Opening new ssh session | |
2020/01/15 07:05:53 packer-builder-amazon-ebs plugin: [DEBUG] starting remote command: /bin/sh -c 'echo ~ec2-user && sleep 0' | |
2020/01/15 07:05:53 [INFO] 15 bytes written for 'stdout' | |
2020/01/15 07:05:53 [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:05:53 [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:05:53 [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:05:53 [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:05:53 packer-builder-amazon-ebs plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: [INFO] 15 bytes written for 'stdout' | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: new exec request: /bin/sh -c '( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1579089953.27-161024068611963 `" && echo ansible-tmp-1579089953.27-161024068611963="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1579089953.27-161024068611963 `" ) && sleep 0' | |
2020/01/15 07:05:53 packer-builder-amazon-ebs plugin: [DEBUG] Opening new ssh session | |
2020/01/15 07:05:53 packer-builder-amazon-ebs plugin: [DEBUG] starting remote command: /bin/sh -c '( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1579089953.27-161024068611963 `" && echo ansible-tmp-1579089953.27-161024068611963="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1579089953.27-161024068611963 `" ) && sleep 0' | |
2020/01/15 07:05:53 packer-builder-amazon-ebs plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:05:53 [INFO] 112 bytes written for 'stdout' | |
2020/01/15 07:05:53 [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:05:53 [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:05:53 [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:05:53 [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: [INFO] 112 bytes written for 'stdout' | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: new exec request: scp -t /home/ec2-user/.ansible/tmp/ansible-tmp-1579089953.27-161024068611963/AnsiballZ_command.py | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: [INFO] 105395 bytes written for 'uploadData' | |
2020/01/15 07:05:53 packer-builder-amazon-ebs plugin: [DEBUG] Opening new ssh session | |
2020/01/15 07:05:53 [INFO] 105395 bytes written for 'uploadData' | |
2020/01/15 07:05:53 packer-builder-amazon-ebs plugin: [DEBUG] Starting remote scp process: scp -vt /home/ec2-user/.ansible/tmp/ansible-tmp-1579089953.27-161024068611963 | |
2020/01/15 07:05:53 packer-builder-amazon-ebs plugin: [DEBUG] Started SCP session, beginning transfers... | |
2020/01/15 07:05:53 packer-builder-amazon-ebs plugin: [DEBUG] scp: Uploading AnsiballZ_command.py: perms=C0600 size=105395 | |
2020/01/15 07:05:53 packer-builder-amazon-ebs plugin: [DEBUG] SCP session complete, closing stdin pipe. | |
2020/01/15 07:05:53 packer-builder-amazon-ebs plugin: [DEBUG] Waiting for SSH session to complete. | |
2020/01/15 07:05:53 packer-builder-amazon-ebs plugin: [DEBUG] scp stderr (length 40): Sink: C0600 105395 AnsiballZ_command.py | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: new exec request: /bin/sh -c 'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1579089953.27-161024068611963/ /home/ec2-user/.ansible/tmp/ansible-tmp-1579089953.27-161024068611963/AnsiballZ_command.py && sleep 0' | |
2020/01/15 07:05:53 packer-builder-amazon-ebs plugin: [DEBUG] Opening new ssh session | |
2020/01/15 07:05:53 packer-builder-amazon-ebs plugin: [DEBUG] starting remote command: /bin/sh -c 'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1579089953.27-161024068611963/ /home/ec2-user/.ansible/tmp/ansible-tmp-1579089953.27-161024068611963/AnsiballZ_command.py && sleep 0' | |
2020/01/15 07:05:53 packer-builder-amazon-ebs plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:05:53 [INFO] 0 bytes written for 'stdout' | |
2020/01/15 07:05:53 [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:05:53 [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:05:53 [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:05:53 [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdout' | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: ansible provisioner pty-req request | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2020/01/15 07:05:53 packer-provisioner-ansible plugin: new exec request: /bin/sh -c 'sudo -H -S -n -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-vywbsjzpjyysuyjbwacswbrqocajkbnt ; /usr/libexec/platform-python /home/ec2-user/.ansible/tmp/ansible-tmp-1579089953.27-161024068611963/AnsiballZ_command.py'"'"' && sleep 0' | |
2020/01/15 07:05:53 packer-builder-amazon-ebs plugin: [DEBUG] Opening new ssh session | |
2020/01/15 07:05:53 packer-builder-amazon-ebs plugin: [DEBUG] starting remote command: /bin/sh -c 'sudo -H -S -n -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-vywbsjzpjyysuyjbwacswbrqocajkbnt ; /usr/libexec/platform-python /home/ec2-user/.ansible/tmp/ansible-tmp-1579089953.27-161024068611963/AnsiballZ_command.py'"'"' && sleep 0' | |
2020/01/15 07:05:54 packer-builder-amazon-ebs plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:05:54 [INFO] 514 bytes written for 'stdout' | |
2020/01/15 07:05:54 [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:05:54 [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:05:54 [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:05:54 [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:05:54 packer-provisioner-ansible plugin: [INFO] 514 bytes written for 'stdout' | |
2020/01/15 07:05:54 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:05:54 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:05:54 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:05:54 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2020/01/15 07:05:54 packer-provisioner-ansible plugin: new exec request: /bin/sh -c 'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1579089953.27-161024068611963/ > /dev/null 2>&1 && sleep 0' | |
2020/01/15 07:05:54 packer-builder-amazon-ebs plugin: [DEBUG] Opening new ssh session | |
2020/01/15 07:05:54 packer-builder-amazon-ebs plugin: [DEBUG] starting remote command: /bin/sh -c 'rm -f -r /home/ec2-user/.ansible/tmp/ansible-tmp-1579089953.27-161024068611963/ > /dev/null 2>&1 && sleep 0' | |
2020/01/15 07:05:54 packer-builder-amazon-ebs plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:05:54 [INFO] 0 bytes written for 'stdout' | |
2020/01/15 07:05:54 [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:05:54 [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:05:54 [INFO] RPC endpoint: Communicator ended with: 0 | |
2020/01/15 07:05:54 [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:05:54 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdout' | |
2020/01/15 07:05:54 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:05:54 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0 | |
2020/01/15 07:05:54 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdin' | |
amazon-ebs: changed: [default] | |
amazon-ebs: | |
amazon-ebs: TASK [Wait for reboot to complete] ********************************************* | |
amazon-ebs: ok: [default -> localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [Get uptime] ************************************************************** | |
2020/01/15 07:11:10 packer-provisioner-ansible plugin: SSH proxy: accepted connection | |
2020/01/15 07:11:10 packer-provisioner-ansible plugin: authentication attempt from 127.0.0.1:42116 to 127.0.0.1:37060 as ec2-user using none | |
2020/01/15 07:11:10 packer-provisioner-ansible plugin: authentication attempt from 127.0.0.1:42116 to 127.0.0.1:37060 as ec2-user using publickey | |
2020/01/15 07:11:10 packer-provisioner-ansible plugin: new env request: LANG=en_US.UTF-8 | |
2020/01/15 07:11:10 packer-provisioner-ansible plugin: new exec request: /bin/sh -c 'echo ~ec2-user && sleep 0' | |
2020/01/15 07:11:10 packer-builder-amazon-ebs plugin: [DEBUG] Opening new ssh session | |
2020/01/15 07:11:10 packer-builder-amazon-ebs plugin: [ERROR] ssh session open error: 'EOF', attempting reconnect | |
2020/01/15 07:11:10 packer-builder-amazon-ebs plugin: [DEBUG] reconnecting to TCP connection for SSH | |
2020/01/15 07:11:10 packer-builder-amazon-ebs plugin: [DEBUG] handshaking with SSH | |
2020/01/15 07:11:10 [INFO] 0 bytes written for 'stdout' | |
2020/01/15 07:11:10 [INFO] 0 bytes written for 'stderr' | |
2020/01/15 07:11:10 [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:11:10 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdout' | |
2020/01/15 07:11:10 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr' | |
==> amazon-ebs: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain | |
2020/01/15 07:12:14 packer-provisioner-ansible plugin: Received interrupt signal (count: 1). Ignoring. | |
2020/01/15 07:12:14 packer-provisioner-shell plugin: Received interrupt signal (count: 1). Ignoring. | |
Cancelling build after receiving interrupt | |
2020/01/15 07:12:14 Cancelling builder after context cancellation context canceled | |
==> amazon-ebs: Terminating the source AWS instance... | |
2020/01/15 07:12:14 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdin' | |
2020/01/15 07:12:14 packer-builder-amazon-ebs plugin: Received interrupt signal (count: 1). Ignoring. | |
2020/01/15 07:12:14 packer-builder-amazon-ebs plugin: Cancelling provisioning due to context cancellation: context canceled | |
2020/01/15 07:12:14 packer-builder-amazon-ebs plugin: Cancelling hook after context cancellation context canceled | |
2020/01/15 07:12:14 Cancelling provisioner after context cancellation context canceled | |
2020/01/15 07:12:14 packer-provisioner-shell plugin: Received interrupt signal (count: 1). Ignoring. | |
amazon-ebs: [ERROR]: User interrupted execution | |
2020/01/15 07:12:14 [INFO] (telemetry) ending ansible | |
2020/01/15 07:12:14 packer-provisioner-ansible plugin: shutting down the SSH proxy | |
==> amazon-ebs: Cleaning up any extra volumes... | |
==> amazon-ebs: No volumes to clean up, skipping | |
==> amazon-ebs: Deleting temporary security group... | |
2020/01/15 07:13:00 [INFO] (telemetry) ending amazon-ebs | |
Build 'amazon-ebs' finished. | |
Cleanly cancelled builds after being interrupted. | |
2020/01/15 07:13:00 [INFO] (telemetry) Finalizing. | |
2020/01/15 07:13:01 waiting for all plugin processes to complete... | |
2020/01/15 07:13:01 /home/centos/Downloads/packer_1.5.1/packer: plugin process exited | |
2020/01/15 07:13:01 /home/centos/Downloads/packer_1.5.1/packer: plugin process exited | |
2020/01/15 07:13:01 /home/centos/Downloads/packer_1.5.1/packer: plugin process exited | |
2020/01/15 07:13:01 [ERR] Error decoding response stream 83: EOF | |
2020/01/15 07:13:01 /home/centos/Downloads/packer_1.5.1/packer: plugin process exited | |
$ | |
This file contains 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
--- | |
- name: Explore issue with Packer | |
hosts: all | |
gather_facts: false | |
tasks: | |
- name: Set system-wide crypto policy | |
command: update-crypto-policies --set FIPS | |
become: yes | |
when: set_policy | default(true) | |
- name: Zzzzzzzzz | |
command: sleep 120 | |
- name: Reboot | |
shell: ( sleep 3 && /sbin/reboot & ) | |
become: yes | |
- name: Wait for reboot to complete | |
local_action: wait_for host="{{ inventory_hostname }}" delay=15 state=started | |
- name: Get uptime | |
command: uptime | |
register: uptime | |
- name: Display uptime | |
debug: | |
var: uptime.stdout_lines |
This file contains 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
{ | |
"description": "Variables for RHEL8", | |
"common_vars_description": "Common Variables", | |
"os_family": "RedHat", | |
"os_distro": "RHEL", | |
"os_majversion": "8", | |
"aws_ami_vars_description": "Variables pertaining to building a AWS AMI using EBS", | |
"search_ami_id": "*", | |
"search_ami_name": "RHEL-8.*_HVM-????????-x86_64-?-Hourly2-GP2", | |
"search_ami_virt_type": "hvm", | |
"search_ami_root_device_type": "ebs", | |
"search_ami_owner_id": "309956199498", | |
"virt_type_desc": "HVM", | |
"root_type_desc": "EBS", | |
"ssh_username": "ec2-user", | |
"gcp_vars_description": "Variables pertaining to building GCP images", | |
"gcp_source_image_family": "rhel-8", | |
"gcp_source_image_project_id": "rhel-cloud", | |
"container_vars_description": "Variables pertaining to building container images", | |
"docker_name": "rhel8-hardening", | |
"container_starting_image": "registry.access.redhat.com/rhel8", | |
"ansible_vars_description": "Variables pertaining to Ansible", | |
"ansible_extra_vars_distro": "" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment