Skip to content

Instantly share code, notes, and snippets.

@i255d
Last active September 30, 2020 05:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save i255d/5d4d2a831b9519d0a669ab947c6c255c to your computer and use it in GitHub Desktop.
Save i255d/5d4d2a831b9519d0a669ab947c6c255c to your computer and use it in GitHub Desktop.
Packer Ansible Provisioner, -vvvvv
[Container] 2020/09/30 03:39:01 Waiting for agent ping
[Container] 2020/09/30 03:39:03 Waiting for DOWNLOAD_SOURCE
[Container] 2020/09/30 03:39:04 Phase is DOWNLOAD_SOURCE
[Container] 2020/09/30 03:39:04 CODEBUILD_SRC_DIR=/codebuild/output/src086278914/src/git.nylcloud.com/Cloud-Team/packer-aws-nyl-win2016
[Container] 2020/09/30 03:39:04 YAML location is /codebuild/output/src086278914/src/git.nylcloud.com/Cloud-Team/packer-aws-nyl-win2016/buildspec.yml
[Container] 2020/09/30 03:39:04 Processing environment variables
[Container] 2020/09/30 03:39:04 No runtime version selected in buildspec.
[Container] 2020/09/30 03:39:04 Moving to directory /codebuild/output/src086278914/src/git.nylcloud.com/Cloud-Team/packer-aws-nyl-win2016
[Container] 2020/09/30 03:39:04 Registering with agent
[Container] 2020/09/30 03:39:04 Phases found in YAML: 4
[Container] 2020/09/30 03:39:04 BUILD: 8 commands
[Container] 2020/09/30 03:39:04 POST_BUILD: 1 commands
[Container] 2020/09/30 03:39:04 INSTALL: 3 commands
[Container] 2020/09/30 03:39:04 PRE_BUILD: 14 commands
[Container] 2020/09/30 03:39:04 Phase complete: DOWNLOAD_SOURCE State: SUCCEEDED
[Container] 2020/09/30 03:39:04 Phase context status code: Message:
[Container] 2020/09/30 03:39:04 Entering phase INSTALL
[Container] 2020/09/30 03:39:04 Running command echo "proxy=http://proxy.nylcloudlabs.com:80" >> /etc/yum.conf
[Container] 2020/09/30 03:39:04 Running command /usr/bin/yum install -y python2-pip git
Loaded plugins: ovl, priorities
193 packages excluded due to repository priority protections
Package git-2.23.3-1.amzn2.0.1.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package python2-pip.noarch 0:9.0.3-1.amzn2.0.2 will be installed
--> Processing Dependency: python2-setuptools for package: python2-pip-9.0.3-1.amzn2.0.2.noarch
--> Running transaction check
---> Package python2-setuptools.noarch 0:38.4.0-3.amzn2.0.6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
python2-pip noarch 9.0.3-1.amzn2.0.2 amzn2-core 1.9 M
Installing for dependencies:
python2-setuptools noarch 38.4.0-3.amzn2.0.6 amzn2-core 618 k
Transaction Summary
================================================================================
Install 1 Package (+1 Dependent package)
Total download size: 2.5 M
Installed size: 11 M
Downloading packages:
--------------------------------------------------------------------------------
Total 29 MB/s | 2.5 MB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : python2-setuptools-38.4.0-3.amzn2.0.6.noarch 1/2
Installing : python2-pip-9.0.3-1.amzn2.0.2.noarch 2/2
Verifying : python2-pip-9.0.3-1.amzn2.0.2.noarch 1/2
Verifying : python2-setuptools-38.4.0-3.amzn2.0.6.noarch 2/2
Installed:
python2-pip.noarch 0:9.0.3-1.amzn2.0.2
Dependency Installed:
python2-setuptools.noarch 0:38.4.0-3.amzn2.0.6
Complete!
[Container] 2020/09/30 03:39:26 Running command pip install --proxy http://proxy.nylcloudlabs.com:80 ansible >> install.log
[Container] 2020/09/30 03:40:35 Phase complete: INSTALL State: SUCCEEDED
[Container] 2020/09/30 03:40:35 Phase context status code: Message:
[Container] 2020/09/30 03:40:35 Entering phase PRE_BUILD
[Container] 2020/09/30 03:40:35 Running command echo "Installing HashiCorp Packer..."
Installing HashiCorp Packer...
[Container] 2020/09/30 03:40:35 Running command curl -qL -o packer.zip --proxy http://proxy.nonprod.nylcloudlabs.com:80 https://releases.hashicorp.com/packer/1.6.3/packer_1.6.3_linux_amd64.zip && unzip packer.zip >> install.log
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 27.1M 100 27.1M 0 0 134M 0 --:--:-- --:--:-- --:--:-- 134M
[Container] 2020/09/30 03:40:36 Running command echo "Installing jq..."
Installing jq...
[Container] 2020/09/30 03:40:36 Running command curl -qL -o jq --proxy http://proxy.nonprod.nylcloudlabs.com:80 https://stedolan.github.io/jq/download/linux64/jq && chmod +x ./jq >> install.log
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 486k 100 486k 0 0 9172k 0 --:--:-- --:--:-- --:--:-- 9172k
[Container] 2020/09/30 03:40:36 Running command echo "Cloning and configuring for automation code"
Cloning and configuring for automation code
[Container] 2020/09/30 03:40:36 Running command git clone https://git.nylcloud.com/Cloud-Team/packer-aws-windows-build.git ansible
Cloning into 'ansible'...
[Container] 2020/09/30 03:40:37 Running command pip install pywinrm >> install.log
[Container] 2020/09/30 03:40:38 Running command pip install ipaddress
Collecting ipaddress
Downloading https://files.pythonhosted.org/packages/c2/f8/49697181b1651d8347d24c095ce46c7346c37335ddc7d255833e7cde674d/ipaddress-1.0.23-py2.py3-none-any.whl
Installing collected packages: ipaddress
Successfully installed ipaddress-1.0.23
[Container] 2020/09/30 03:40:39 Running command mkdir /etc/ansible
[Container] 2020/09/30 03:40:39 Running command cp ./ansible.cfg /etc/ansible/
[Container] 2020/09/30 03:40:39 Running command ansible --version
ansible 2.10.1
config file = /codebuild/output/src086278914/src/git.nylcloud.com/Cloud-Team/packer-aws-nyl-win2016/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /root/.pyenv/versions/3.8.3/lib/python3.8/site-packages/ansible
executable location = /root/.pyenv/versions/3.8.3/bin/ansible
python version = 3.8.3 (default, Aug 28 2020, 18:43:52) [GCC 7.3.1 20180712 (Red Hat 7.3.1-9)]
[Container] 2020/09/30 03:40:40 Running command ./packer --version
1.6.3
[Container] 2020/09/30 03:40:40 Running command ./packer validate win2019.json >> install.log
[Container] 2020/09/30 03:40:41 Running command export ANSIBLE_KEEP_REMOTE_FILES=1
[Container] 2020/09/30 03:40:41 Phase complete: PRE_BUILD State: SUCCEEDED
[Container] 2020/09/30 03:40:41 Phase context status code: Message:
[Container] 2020/09/30 03:40:41 Entering phase BUILD
[Container] 2020/09/30 03:40:41 Running command echo "Configuring AWS credentials"
Configuring AWS credentials
[Container] 2020/09/30 03:40:41 Running command curl -qL -o aws_credentials.json http://169.254.170.2/$AWS_CONTAINER_CREDENTIALS_RELATIVE_URI > aws_credentials.json
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 1563 100 1563 0 0 1526k 0 --:--:-- --:--:-- --:--:-- 1526k
[Container] 2020/09/30 03:40:41 Running command aws configure set region $AWS_REGION
[Container] 2020/09/30 03:40:43 Running command aws configure set aws_access_key_id `./jq -r '.AccessKeyId' aws_credentials.json`
[Container] 2020/09/30 03:40:43 Running command aws configure set aws_secret_access_key `./jq -r '.SecretAccessKey' aws_credentials.json`
[Container] 2020/09/30 03:40:44 Running command aws configure set aws_session_token `./jq -r '.Token' aws_credentials.json`
[Container] 2020/09/30 03:40:44 Running command echo "Building HashiCorp Packer template, win2019.json"
Building HashiCorp Packer template, win2019.json
[Container] 2020/09/30 03:40:44 Running command ./packer build win2019.json
amazon-ebs: output will be in this color.
==> amazon-ebs: Force Deregister flag found, skipping prevalidating AMI Name
amazon-ebs: Found Image ID: ami-0eb7fbcc77e5e6ec6
==> amazon-ebs: Creating temporary keypair: packer_5f73fe3d-9ddc-d76b-3a88-d016fa25bca0
==> amazon-ebs: Creating temporary security group for this instance: packer_5f73fe3e-4529-3e73-640f-33b6ab58f96a
==> amazon-ebs: Authorizing access to port 5986 from [0.0.0.0/0] in the temporary security groups...
==> 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-0d69b261a4f940b22
==> amazon-ebs: Waiting for instance (i-0d69b261a4f940b22) to become ready...
==> amazon-ebs: Skipping waiting for password since WinRM password set...
==> amazon-ebs: Using winrm communicator to connect: 10.184.21.22
==> amazon-ebs: Waiting for WinRM to become available...
amazon-ebs: WinRM connected.
==> amazon-ebs: #< CLIXML
==> amazon-ebs: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><Obj S="progress" RefId="1"><TNRef RefId="0" /><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>
==> amazon-ebs: Connected to WinRM!
==> amazon-ebs: Provisioning with Powershell...
==> amazon-ebs: Provisioning with powershell script: scripts/dansps.ps1
amazon-ebs: Hi this is Dan!
amazon-ebs:
amazon-ebs: Major Minor Build Revision
amazon-ebs: ----- ----- ----- --------
amazon-ebs: 5 1 17763 1432
amazon-ebs: -------------------------------------------------------------------------------------
amazon-ebs: Service
amazon-ebs: RootSDDL = O:NSG:BAD:P(A;;GA;;;BA)(A;;GR;;;IU)S:P(AU;FA;GA;;;WD)(AU;SA;GXGW;;;WD)
amazon-ebs: MaxConcurrentOperations = 4294967295
amazon-ebs: MaxConcurrentOperationsPerUser = 1500
amazon-ebs: EnumerationTimeoutms = 240000
amazon-ebs: MaxConnections = 300
amazon-ebs: MaxPacketRetrievalTimeSeconds = 120
amazon-ebs: AllowUnencrypted = true
amazon-ebs: Auth
amazon-ebs: Basic = true
amazon-ebs: Kerberos = true
amazon-ebs: Negotiate = true
amazon-ebs: Certificate = true
amazon-ebs: CredSSP = true
amazon-ebs: CbtHardeningLevel = Relaxed
amazon-ebs: DefaultPorts
amazon-ebs: HTTP = 5985
amazon-ebs: HTTPS = 5986
amazon-ebs: IPv4Filter = *
amazon-ebs: IPv6Filter = *
amazon-ebs: EnableCompatibilityHttpListener = false
amazon-ebs: EnableCompatibilityHttpsListener = false
amazon-ebs: CertificateThumbprint
amazon-ebs: AllowRemoteAccess = true
amazon-ebs:
amazon-ebs: -------------------------------------------------------------------------------------
amazon-ebs: Client
amazon-ebs: NetworkDelayms = 5000
amazon-ebs: URLPrefix = wsman
amazon-ebs: AllowUnencrypted = true
amazon-ebs: Auth
amazon-ebs: Basic = true
amazon-ebs: Digest = true
amazon-ebs: Kerberos = true
amazon-ebs: Negotiate = true
amazon-ebs: Certificate = true
amazon-ebs: CredSSP = true
amazon-ebs: DefaultPorts
amazon-ebs: HTTP = 5985
amazon-ebs: HTTPS = 5986
amazon-ebs: TrustedHosts
amazon-ebs:
amazon-ebs: -------------------------------------------------------------------------------------
amazon-ebs: Winrs
amazon-ebs: AllowRemoteShellAccess = true
amazon-ebs: IdleTimeout = 7200000
amazon-ebs: MaxConcurrentUsers = 2147483647
amazon-ebs: MaxShellRunTime = 2147483647
amazon-ebs: MaxProcessesPerShell = 2147483647
amazon-ebs: MaxMemoryPerShellMB = 1024
amazon-ebs: MaxShellsPerUser = 2147483647
amazon-ebs:
amazon-ebs: -------------------------------------------------------------------------------------
amazon-ebs: Listener
amazon-ebs: Address = *
amazon-ebs: Transport = HTTP
amazon-ebs: Port = 5985
amazon-ebs: Hostname
amazon-ebs: Enabled = true
amazon-ebs: URLPrefix = wsman
amazon-ebs: CertificateThumbprint
amazon-ebs: ListeningOn = 10.184.21.22, 127.0.0.1, ::1, fe80::f9b9:7a75:b894:5b0d%4
amazon-ebs:
amazon-ebs: Listener
amazon-ebs: Address = *
amazon-ebs: Transport = HTTPS
amazon-ebs: Port = 5986
amazon-ebs: Hostname
amazon-ebs: Enabled = true
amazon-ebs: URLPrefix = wsman
amazon-ebs: CertificateThumbprint = FFD1D962B64C6641FEBC364CD40411F9D1C62E37
amazon-ebs: ListeningOn = 10.184.21.22, 127.0.0.1, ::1, fe80::f9b9:7a75:b894:5b0d%4
amazon-ebs:
amazon-ebs: -------------------------------------------------------------------------------------
amazon-ebs:
amazon-ebs: Scope : MachinePolicy
amazon-ebs: ExecutionPolicy : Undefined
amazon-ebs:
amazon-ebs:
amazon-ebs: Scope : UserPolicy
amazon-ebs: ExecutionPolicy : Undefined
amazon-ebs:
amazon-ebs:
amazon-ebs: Scope : Process
amazon-ebs: ExecutionPolicy : Bypass
amazon-ebs:
amazon-ebs:
amazon-ebs: Scope : CurrentUser
amazon-ebs: ExecutionPolicy : Undefined
amazon-ebs:
amazon-ebs:
amazon-ebs: Scope : LocalMachine
amazon-ebs: ExecutionPolicy : Unrestricted
amazon-ebs:
amazon-ebs: runing dir test script.
amazon-ebs: C:\Users\Administrator\AppData\Local\Temp\ansible-tmp-1493290721.06-173732210612749
amazon-ebs: TCP 0.0.0.0:5985 EC2AMAZ-CG938KD:0 LISTENING
amazon-ebs: TCP 0.0.0.0:5986 EC2AMAZ-CG938KD:0 LISTENING
amazon-ebs: TCP 10.184.21.22:5986 ip-10-184-21-18:34234 ESTABLISHED
amazon-ebs: TCP 10.184.21.22:5986 ip-10-184-21-18:34246 ESTABLISHED
amazon-ebs: TCP 10.184.21.22:5986 ip-10-184-21-18:34250 ESTABLISHED
amazon-ebs: TCP [::]:5985 EC2AMAZ-CG938KD:0 LISTENING
amazon-ebs: TCP [::]:5986 EC2AMAZ-CG938KD:0 LISTENING
==> amazon-ebs: Provisioning with Ansible...
amazon-ebs: Not using Proxy adapter for Ansible run:
amazon-ebs: Using WinRM Password from Packer communicator...
==> amazon-ebs: Executing Ansible: ansible-playbook -e packer_build_name="amazon-ebs" -e packer_builder_type=amazon-ebs -vvvvv -e ansible_winrm_server_cert_validation=ignore ansible_user=administrator ansible_password=***** ansible_connection=winrm ansible_winrm_transport=basic ansible_port=5986 ansible_shell_type=powershell ansible_python_interpreter=/usr/bin/python3 -e ansible_password=***** -i /tmp/packer-provisioner-ansible924412337 /codebuild/output/src086278914/src/git.nylcloud.com/Cloud-Team/packer-aws-nyl-win2016/playbook.yml
amazon-ebs: ansible-playbook 2.10.1
amazon-ebs: config file = /codebuild/output/src086278914/src/git.nylcloud.com/Cloud-Team/packer-aws-nyl-win2016/ansible.cfg
amazon-ebs: configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
amazon-ebs: ansible python module location = /root/.pyenv/versions/3.8.3/lib/python3.8/site-packages/ansible
amazon-ebs: executable location = /root/.pyenv/versions/3.8.3/bin/ansible-playbook
amazon-ebs: python version = 3.8.3 (default, Aug 28 2020, 18:43:52) [GCC 7.3.1 20180712 (Red Hat 7.3.1-9)]
amazon-ebs: Using /codebuild/output/src086278914/src/git.nylcloud.com/Cloud-Team/packer-aws-nyl-win2016/ansible.cfg as config file
amazon-ebs: setting up inventory plugins
amazon-ebs: host_list declined parsing /tmp/packer-provisioner-ansible924412337 as it did not pass its verify_file() method
amazon-ebs: script declined parsing /tmp/packer-provisioner-ansible924412337 as it did not pass its verify_file() method
amazon-ebs: auto declined parsing /tmp/packer-provisioner-ansible924412337 as it did not pass its verify_file() method
amazon-ebs: Parsed /tmp/packer-provisioner-ansible924412337 inventory source with ini plugin
amazon-ebs: redirecting (type: modules) ansible.builtin.win_disk_facts to community.windows.win_disk_facts
amazon-ebs: Loading collection community.windows from /root/.pyenv/versions/3.8.3/lib/python3.8/site-packages/ansible_collections/community/windows
amazon-ebs: Loading callback plugin default of type stdout, v2.0 from /root/.pyenv/versions/3.8.3/lib/python3.8/site-packages/ansible/plugins/callback/default.py
amazon-ebs:
amazon-ebs: PLAYBOOK: playbook.yml *********************************************************
amazon-ebs: Positional arguments: /codebuild/output/src086278914/src/git.nylcloud.com/Cloud-Team/packer-aws-nyl-win2016/playbook.yml
amazon-ebs: verbosity: 5
amazon-ebs: connection: smart
amazon-ebs: timeout: 10
amazon-ebs: become_method: sudo
amazon-ebs: tags: ('all',)
amazon-ebs: inventory: ('/tmp/packer-provisioner-ansible924412337',)
amazon-ebs: extra_vars: ('packer_build_name="amazon-ebs"', 'packer_builder_type=amazon-ebs', 'ansible_winrm_server_cert_validation=ignore ansible_user=administrator ansible_password=SuperS3cr3t! ansible_connection=winrm ansible_winrm_transport=basic ansible_port=5986 ansible_shell_type=powershell ansible_python_interpreter=/usr/bin/python3', 'ansible_password=SuperS3cr3t!')
amazon-ebs: forks: 5
amazon-ebs: 1 plays in /codebuild/output/src086278914/src/git.nylcloud.com/Cloud-Team/packer-aws-nyl-win2016/playbook.yml
amazon-ebs:
amazon-ebs: PLAY [all] *********************************************************************
amazon-ebs:
amazon-ebs: TASK [Gathering Facts] *********************************************************
amazon-ebs: task path: /codebuild/output/src086278914/src/git.nylcloud.com/Cloud-Team/packer-aws-nyl-win2016/playbook.yml:2
amazon-ebs: <10.184.21.22> ESTABLISH WINRM CONNECTION FOR USER: administrator on PORT 5986 TO 10.184.21.22
amazon-ebs: <10.184.21.22> WINRM CONNECT: transport=basic endpoint=https://10.184.21.22:5986/wsman
amazon-ebs: <10.184.21.22> WINRM OPEN SHELL: 04CE5D2D-A058-4400-B46B-8BD5DF24C8EE
amazon-ebs: EXEC (via pipeline wrapper)
amazon-ebs: <10.184.21.22> WINRM EXEC 'PowerShell' ['-Version', '6.2.6', '-NoProfile', '-NonInteractive', '-ExecutionPolicy', 'Unrestricted', '-EncodedCommand', 'UABvAHcAZQByAFMAaABlAGwAbAAgAC0AVgBlAHIAcwBpAG8AbgAgADYALgAyAC4ANgAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQA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gBKAEEARgBRAEEAUQB3AEIAUABBAEUAUQBBAFIAUQBBAGcAQQBDADAAQQBSAFEAQgB5AEEASABJAEEAYgB3AEIAeQBBAEUARQBBAFkAdwBCADAAQQBHAGsAQQBiAHcAQgB1AEEAQwBBAEEAVQB3AEIAcABBAEcAdwBBAFoAUQBCAHUAQQBIAFEAQQBiAEEAQgA1AEEARQBNAEEAYgB3AEIAdQBBAEgAUQBBAGEAUQBCAHUAQQBIAFUAQQBaAFEAQQBwAEEAQwBBAEEAZQB3AEEAZwBBAEcAVQBBAGUAQQBCAHAAQQBIAFEAQQBJAEEAQQBrAEEARQB3AEEAUQBRAEIAVABBAEYAUQBBAFIAUQBCAFkAQQBFAGsAQQBWAEEAQgBEAEEARQA4AEEAUgBBAEIARgBBAEMAQQBBAGYAUQBBAGcAQQBFAFUAQQBiAEEAQgB6AEEARwBVAEEASQBBAEIANwBBAEMAQQBBAFoAUQBCADQAQQBHAGsAQQBkAEEAQQBnAEEARABFAEEASQBBAEIAOQBBAEMAQQBBAGYAUQBBAD0A']
amazon-ebs: <10.184.21.22> WINRM RESULT '<Response code 4294574080, out "", err "C\x00a\x00n\x00n\x00o\x00t\x00 \x00s\x00t\x00a\x00">'
amazon-ebs: <10.184.21.22> WINRM CLOSE SHELL: 04CE5D2D-A058-4400-B46B-8BD5DF24C8EE
amazon-ebs: fatal: [default]: UNREACHABLE! => {
amazon-ebs: "changed": false,
amazon-ebs: "msg": "Failed to create temporary directory.In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in \"/tmp\", for more error information use -vvv. Failed command was: PowerShell -Version 6.2.6 -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand UwBlAHQALQBTAHQAcgBpAGMAdABNAG8AZABlACAALQBWAGUAcgBzAGkAbwBuACAATABhAHQAZQBzAHQACgAkAHQAbQBwAF8AcABhAHQAaAAgAD0AIABbAFMAeQBzAHQAZQBtAC4ARQBuAHYAaQByAG8AbgBtAGUAbgB0AF0AOgA6AEUAeABwAGEAbgBkAEUAbgB2AGkAcgBvAG4AbQBlAG4AdABWAGEAcgBpAGEAYgBsAGUAcwAoACcAJQBUAEUATQBQACUAJwApAAoAJAB0AG0AcAAgAD0AIABOAGUAdwAtAEkAdABlAG0AIAAtAFQAeQBwAGUAIABEAGkAcgBlAGMAdABvAHIAeQAgAC0AUABhAHQAaAAgACQAdABtAHAAXwBwAGEAdABoACAALQBOAGEAbQBlACAAJwBhAG4AcwBpAGIAbABlAC0AdABtAHAALQAxADYAMAAxADQAMwA3ADQAMQA2AC4ANQA5ADUAMAA1AC0AMQAxADIANwAtADIANAA0ADcAMgA5ADEAOQA2ADMAOAA0ADEAMQA1ACcACgBXAHIAaQB0AGUALQBPAHUAdABwAHUAdAAgAC0ASQBuAHAAdQB0AE8AYgBqAGUAYwB0ACAAJAB0AG0AcAAuAEYAdQBsAGwATgBhAG0AZQAKAEkAZgAgACgALQBuAG8AdAAgACQAPwApACAAewAgAEkAZgAgACgARwBlAHQALQBWAGEAcgBpAGEAYgBsAGUAIABMAEEAUwBUAEUAWABJAFQAQwBPAEQARQAgAC0ARQByAHIAbwByAEEAYwB0AGkAbwBuACAAUwBpAGwAZQBuAHQAbAB5AEMAbwBuAHQAaQBuAHUAZQApACAAewAgAGUAeABpAHQAIAAkAEwAQQBTAFQARQBYAEkAVABDAE8ARABFACAAfQAgAEUAbABzAGUAIAB7ACAAZQB4AGkAdAAgADEAIAB9ACAAfQA=, exited with result 4294574080, stderr output: C\u0000a\u0000n\u0000n\u0000o\u0000t\u0000 \u0000s\u0000t\u0000a\u0000r\u0000t\u0000 \u0000W\u0000i\u0000n\u0000d\u0000o\u0000w\u0000s\u0000 \u0000P\u0000o\u0000w\u0000e\u0000r\u0000S\u0000h\u0000e\u0000l\u0000l\u0000 \u0000v\u0000e\u0000r\u0000s\u0000i\u0000o\u0000n\u0000 \u00006\u0000.\u00002\u0000.\u00006\u0000 \u0000b\u0000e\u0000c\u0000a\u0000u\u0000s\u0000e\u0000 \u0000i\u0000t\u0000 \u0000i\u0000s\u0000 \u0000n\u0000o\u0000t\u0000 \u0000i\u0000n\u0000s\u0000t\u0000a\u0000l\u0000l\u0000e\u0000d\u0000.\u0000\r\u0000\n\u0000",
amazon-ebs: "unreachable": true
amazon-ebs: }
amazon-ebs:
amazon-ebs: PLAY RECAP *********************************************************************
amazon-ebs: default : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0
amazon-ebs:
==> amazon-ebs: Provisioning step had errors: Running the cleanup provisioner, if present...
==> amazon-ebs: Terminating the source AWS instance...
==> amazon-ebs: Cleaning up any extra volumes...
==> amazon-ebs: No volumes to clean up, skipping
==> amazon-ebs: Deleting temporary security group...
==> amazon-ebs: Deleting temporary keypair...
Build 'amazon-ebs' errored after 3 minutes 22 seconds: Error executing Ansible: Non-zero exit status: exit status 4
==> Wait completed after 3 minutes 22 seconds
==> Some builds didn't complete successfully and had errors:
--> amazon-ebs: Error executing Ansible: Non-zero exit status: exit status 4
==> Builds finished but no artifacts were created.
[Container] 2020/09/30 03:44:07 Command did not exit successfully ./packer build win2019.json exit status 1
[Container] 2020/09/30 03:44:08 Phase complete: BUILD State: FAILED
[Container] 2020/09/30 03:44:08 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: ./packer build win2019.json. Reason: exit status 1
[Container] 2020/09/30 03:44:08 Entering phase POST_BUILD
[Container] 2020/09/30 03:44:08 Running command echo "HashiCorp Packer build completed on `date`"
HashiCorp Packer build completed on Wed Sep 30 03:44:08 UTC 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment