Last active
February 19, 2021 20:25
-
-
Save emansom/61cd34555b96dda6230e32d962d66e1a to your computer and use it in GitHub Desktop.
Ansible collection installation failing in Packer
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
{ | |
"provisioners": [ | |
{ | |
"type": "shell", | |
"inline": "dnf makecache && dnf -y install epel-release && dnf makecache && dnf install -y python39 libsodium python3-bcrypt python3-paramiko python3-pynacl sshpass python3-pyyaml python3-jinja2 platform-python-pip python3-pip && alternatives --set python /usr/bin/python3.9 && pip3 install ansible" | |
}, | |
{ | |
"type": "ansible-local", | |
"galaxy_file": "requirements.yml", | |
"playbook_file": "playbook.yml", | |
"extra_arguments": [ | |
"-vv", | |
"ansible_python_interpreter=/usr/bin/python3.9" | |
] | |
} | |
], | |
"builders": [ | |
{ | |
"type": "lxd", | |
"name": "acme-focal", | |
"image": "images:centos/8-Stream", | |
"output_image": "centos-8-packer-test", | |
"init_sleep": "10", | |
"publish_properties": { | |
"description": "Packer image test." | |
} | |
} | |
] | |
} |
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
2021/02/19 21:17:31 [INFO] Packer version: 1.6.5 [go1.15.5 linux amd64] | |
2021/02/19 21:17:31 Checking 'PACKER_CONFIG' for a config file path | |
2021/02/19 21:17:31 'PACKER_CONFIG' not set; checking the default config file path | |
2021/02/19 21:17:31 Attempting to open config file: /home/ewout/.packerconfig | |
2021/02/19 21:17:31 [WARN] Config file doesn't exist: /home/ewout/.packerconfig | |
2021/02/19 21:17:31 Setting cache directory: /home/ewout/packer-lxd-demo/packer_cache | |
2021/02/19 21:17:31 Creating plugin client for path: /usr/bin/packer | |
2021/02/19 21:17:31 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-builder-lxd"} | |
2021/02/19 21:17:31 Waiting for RPC address for: /usr/bin/packer | |
2021/02/19 21:17:31 packer-builder-lxd plugin: [INFO] Packer version: 1.6.5 [go1.15.5 linux amd64] | |
2021/02/19 21:17:31 packer-builder-lxd plugin: Checking 'PACKER_CONFIG' for a config file path | |
2021/02/19 21:17:31 packer-builder-lxd plugin: 'PACKER_CONFIG' not set; checking the default config file path | |
2021/02/19 21:17:31 packer-builder-lxd plugin: Attempting to open config file: /home/ewout/.packerconfig | |
2021/02/19 21:17:31 packer-builder-lxd plugin: [WARN] Config file doesn't exist: /home/ewout/.packerconfig | |
2021/02/19 21:17:31 packer-builder-lxd plugin: Setting cache directory: /home/ewout/packer-lxd-demo/packer_cache | |
2021/02/19 21:17:31 packer-builder-lxd plugin: args: []string{"packer-builder-lxd"} | |
2021/02/19 21:17:31 packer-builder-lxd plugin: Plugin address: unix /tmp/packer-plugin781788599 | |
2021/02/19 21:17:31 packer-builder-lxd plugin: Waiting for connection... | |
2021/02/19 21:17:31 Received unix RPC address for /usr/bin/packer: addr is /tmp/packer-plugin781788599 | |
2021/02/19 21:17:31 packer-builder-lxd plugin: Serving a plugin connection... | |
2021/02/19 21:17:31 Creating plugin client for path: /usr/bin/packer | |
2021/02/19 21:17:31 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-provisioner-shell"} | |
2021/02/19 21:17:31 Waiting for RPC address for: /usr/bin/packer | |
2021/02/19 21:17:31 packer-provisioner-shell plugin: [INFO] Packer version: 1.6.5 [go1.15.5 linux amd64] | |
2021/02/19 21:17:31 packer-provisioner-shell plugin: Checking 'PACKER_CONFIG' for a config file path | |
2021/02/19 21:17:31 packer-provisioner-shell plugin: 'PACKER_CONFIG' not set; checking the default config file path | |
2021/02/19 21:17:31 packer-provisioner-shell plugin: Attempting to open config file: /home/ewout/.packerconfig | |
2021/02/19 21:17:31 packer-provisioner-shell plugin: [WARN] Config file doesn't exist: /home/ewout/.packerconfig | |
2021/02/19 21:17:31 packer-provisioner-shell plugin: Setting cache directory: /home/ewout/packer-lxd-demo/packer_cache | |
2021/02/19 21:17:31 packer-provisioner-shell plugin: args: []string{"packer-provisioner-shell"} | |
2021/02/19 21:17:31 packer-provisioner-shell plugin: Plugin address: unix /tmp/packer-plugin673562654 | |
2021/02/19 21:17:31 packer-provisioner-shell plugin: Waiting for connection... | |
2021/02/19 21:17:31 Received unix RPC address for /usr/bin/packer: addr is /tmp/packer-plugin673562654 | |
2021/02/19 21:17:31 packer-provisioner-shell plugin: Serving a plugin connection... | |
2021/02/19 21:17:31 Creating plugin client for path: /usr/bin/packer | |
2021/02/19 21:17:31 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-provisioner-ansible-local"} | |
2021/02/19 21:17:31 Waiting for RPC address for: /usr/bin/packer | |
2021/02/19 21:17:31 packer-provisioner-ansible-local plugin: [INFO] Packer version: 1.6.5 [go1.15.5 linux amd64] | |
2021/02/19 21:17:31 packer-provisioner-ansible-local plugin: Checking 'PACKER_CONFIG' for a config file path | |
2021/02/19 21:17:31 packer-provisioner-ansible-local plugin: 'PACKER_CONFIG' not set; checking the default config file path | |
2021/02/19 21:17:31 packer-provisioner-ansible-local plugin: Attempting to open config file: /home/ewout/.packerconfig | |
2021/02/19 21:17:31 packer-provisioner-ansible-local plugin: [WARN] Config file doesn't exist: /home/ewout/.packerconfig | |
2021/02/19 21:17:31 packer-provisioner-ansible-local plugin: Setting cache directory: /home/ewout/packer-lxd-demo/packer_cache | |
2021/02/19 21:17:31 packer-provisioner-ansible-local plugin: args: []string{"packer-provisioner-ansible-local"} | |
2021/02/19 21:17:31 packer-provisioner-ansible-local plugin: Plugin address: unix /tmp/packer-plugin174691340 | |
2021/02/19 21:17:31 packer-provisioner-ansible-local plugin: Waiting for connection... | |
2021/02/19 21:17:31 Received unix RPC address for /usr/bin/packer: addr is /tmp/packer-plugin174691340 | |
2021/02/19 21:17:31 packer-provisioner-ansible-local plugin: Serving a plugin connection... | |
2021/02/19 21:17:31 Preparing build: acme-focal | |
2021/02/19 21:17:31 Build debug mode: false | |
2021/02/19 21:17:31 Force build: false | |
2021/02/19 21:17:31 On error: | |
2021/02/19 21:17:31 Waiting on builds to complete... | |
2021/02/19 21:17:31 Starting build run: acme-focal | |
2021/02/19 21:17:31 Running builder: lxd | |
acme-focal: output will be in this color. | |
2021/02/19 21:17:31 [INFO] (telemetry) Starting builder lxd | |
==> acme-focal: Creating container... | |
2021/02/19 21:17:31 packer-builder-lxd plugin: Executing lxc command: []string{"launch", "--ephemeral=false", "--profile=default", "images:centos/8-Stream", "packer-acme-focal"} | |
2021/02/19 21:17:46 packer-builder-lxd plugin: stdout: Creating packer-acme-focal | |
2021/02/19 21:17:46 packer-builder-lxd plugin: Starting packer-acme-focal | |
Remapping container filesystemlder-lxd plugin: | |
2021/02/19 21:17:46 packer-builder-lxd plugin: stderr: | |
2021/02/19 21:17:56 packer-builder-lxd plugin: Sleeping for 10 seconds... | |
2021/02/19 21:17:56 packer-builder-lxd plugin: Unable to load communicator config from state to populate provisionHookData | |
2021/02/19 21:17:56 packer-builder-lxd plugin: Running the provision hook | |
2021/02/19 21:17:56 [INFO] (telemetry) Starting provisioner shell | |
==> acme-focal: Provisioning with shell script: /tmp/packer-shell332638437 | |
2021/02/19 21:17:56 packer-provisioner-shell plugin: Opening /tmp/packer-shell332638437 for reading | |
2021/02/19 21:17:56 packer-provisioner-shell plugin: [INFO] 301 bytes written for 'uploadData' | |
2021/02/19 21:17:56 [INFO] 301 bytes written for 'uploadData' | |
2021/02/19 21:17:56 packer-builder-lxd plugin: Executing with lxc exec in container: packer-acme-focal test -d "/tmp/script_4898.sh" | |
2021/02/19 21:17:56 packer-builder-lxd plugin: Executing lxc exec: /bin/sh []string{"/bin/sh", "-c", "lxc exec packer-acme-focal -- /bin/sh -c \"test -d \"/tmp/script_4898.sh\"\""} | |
2021/02/19 21:17:56 packer-builder-lxd plugin: lxc exec execution exited with '1': 'test -d "/tmp/script_4898.sh"' | |
2021/02/19 21:17:56 packer-builder-lxd plugin: Running copy command: lxc file push - packer-acme-focal/tmp/script_4898.sh | |
2021/02/19 21:17:56 packer-builder-lxd plugin: Executing with lxc exec in container: packer-acme-focal chmod 0755 /tmp/script_4898.sh | |
2021/02/19 21:17:56 packer-builder-lxd plugin: Executing lxc exec: /bin/sh []string{"/bin/sh", "-c", "lxc exec packer-acme-focal -- /bin/sh -c \"chmod 0755 /tmp/script_4898.sh\""} | |
2021/02/19 21:17:56 packer-builder-lxd plugin: lxc exec execution exited with '0': 'chmod 0755 /tmp/script_4898.sh' | |
2021/02/19 21:17:56 packer-builder-lxd plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2021/02/19 21:17:56 [INFO] RPC client: Communicator ended with: 0 | |
2021/02/19 21:17:56 [INFO] RPC endpoint: Communicator ended with: 0 | |
2021/02/19 21:17:56 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0 | |
2021/02/19 21:17:56 packer-builder-lxd plugin: Executing with lxc exec in container: packer-acme-focal chmod +x /tmp/script_4898.sh; PACKER_BUILDER_TYPE='lxd' PACKER_BUILD_NAME='acme-focal' /tmp/script_4898.sh | |
2021/02/19 21:17:56 packer-builder-lxd plugin: Executing lxc exec: /bin/sh []string{"/bin/sh", "-c", "lxc exec packer-acme-focal -- /bin/sh -c \"chmod +x /tmp/script_4898.sh; PACKER_BUILDER_TYPE='lxd' PACKER_BUILD_NAME='acme-focal' /tmp/script_4898.sh\""} | |
acme-focal: CentOS Stream 8 - AppStream 6.9 MB/s | 6.6 MB 00:00 | |
acme-focal: CentOS Stream 8 - BaseOS 4.3 MB/s | 2.3 MB 00:00 | |
acme-focal: CentOS Stream 8 - Extras 20 kB/s | 8.9 kB 00:00 | |
acme-focal: Metadata cache created. | |
acme-focal: Last metadata expiration check: 0:00:01 ago on Fri Feb 19 20:18:01 2021. | |
acme-focal: Dependencies resolved. | |
acme-focal: ================================================================================ | |
acme-focal: Package Architecture Version Repository Size | |
acme-focal: ================================================================================ | |
acme-focal: Installing: | |
acme-focal: epel-release noarch 8-8.el8 extras 23 k | |
acme-focal: | |
acme-focal: Transaction Summary | |
acme-focal: ================================================================================ | |
acme-focal: Install 1 Package | |
acme-focal: | |
acme-focal: Total download size: 23 k | |
acme-focal: Installed size: 32 k | |
acme-focal: Downloading Packages: | |
acme-focal: epel-release-8-8.el8.noarch.rpm 378 kB/s | 23 kB 00:00 | |
acme-focal: -------------------------------------------------------------------------------- | |
acme-focal: Total 81 kB/s | 23 kB 00:00 | |
acme-focal: Running transaction check | |
acme-focal: Transaction check succeeded. | |
acme-focal: Running transaction test | |
acme-focal: Transaction test succeeded. | |
acme-focal: Running transaction | |
acme-focal: Preparing : 1/1 | |
acme-focal: Installing : epel-release-8-8.el8.noarch 1/1 | |
acme-focal: Running scriptlet: epel-release-8-8.el8.noarch 1/1 | |
acme-focal: Verifying : epel-release-8-8.el8.noarch 1/1 | |
acme-focal: | |
acme-focal: Installed: | |
acme-focal: epel-release-8-8.el8.noarch | |
acme-focal: | |
acme-focal: Complete! | |
acme-focal: CentOS Stream 8 - AppStream 53 kB/s | 4.4 kB 00:00 | |
acme-focal: CentOS Stream 8 - BaseOS 65 kB/s | 3.9 kB 00:00 | |
acme-focal: CentOS Stream 8 - Extras 17 kB/s | 1.5 kB 00:00 | |
acme-focal: Extra Packages for Enterprise Linux Modular 8 - 696 kB/s | 535 kB 00:00 | |
acme-focal: Extra Packages for Enterprise Linux 8 - x86_64 2.7 MB/s | 8.9 MB 00:03 | |
acme-focal: Metadata cache created. | |
acme-focal: Last metadata expiration check: 0:00:04 ago on Fri Feb 19 20:18:08 2021. | |
acme-focal: Package platform-python-pip-9.0.3-19.el8.noarch is already installed. | |
acme-focal: Dependencies resolved. | |
acme-focal: ========================================================================================== | |
acme-focal: Package Arch Version Repo Size | |
acme-focal: ========================================================================================== | |
acme-focal: Installing: | |
acme-focal: libsodium x86_64 1.0.18-2.el8 epel 162 k | |
acme-focal: python3-bcrypt x86_64 3.1.6-2.el8.1 epel 44 k | |
acme-focal: python3-jinja2 noarch 2.10.1-2.el8_0 appstream 538 k | |
acme-focal: python3-paramiko noarch 2.4.3-1.el8 epel 289 k | |
acme-focal: python3-pip noarch 9.0.3-19.el8 appstream 20 k | |
acme-focal: python3-pynacl x86_64 1.3.0-5.el8 epel 100 k | |
acme-focal: python3-pyyaml x86_64 3.12-12.el8 baseos 193 k | |
acme-focal: python39 x86_64 3.9.1-5.module_el8.4.0+694+cc446542 appstream 32 k | |
acme-focal: sshpass x86_64 1.06-9.el8 epel 27 k | |
acme-focal: Installing dependencies: | |
acme-focal: python3-babel noarch 2.5.1-5.el8 appstream 4.8 M | |
acme-focal: python3-cffi x86_64 1.11.5-5.el8 baseos 237 k | |
acme-focal: python3-cryptography x86_64 3.2.1-3.el8 baseos 559 k | |
acme-focal: python3-markupsafe x86_64 0.23-19.el8 appstream 39 k | |
acme-focal: python3-ply noarch 3.9-9.el8 baseos 111 k | |
acme-focal: python3-pyasn1 noarch 0.3.7-6.el8 appstream 126 k | |
acme-focal: python3-pycparser noarch 2.14-14.el8 baseos 109 k | |
acme-focal: python3-pytz noarch 2017.2-9.el8 appstream 54 k | |
acme-focal: python3-setuptools noarch 39.2.0-6.el8 baseos 163 k | |
acme-focal: python3-six noarch 1.11.0-8.el8 baseos 38 k | |
acme-focal: python36 x86_64 3.6.8-2.module_el8.4.0+666+456f5f48 appstream 19 k | |
acme-focal: python39-libs x86_64 3.9.1-5.module_el8.4.0+694+cc446542 appstream 8.1 M | |
acme-focal: python39-pip-wheel noarch 20.2.4-3.module_el8.4.0+680+7b309a77 appstream 1.3 M | |
acme-focal: python39-setuptools-wheel noarch 50.3.2-3.module_el8.4.0+680+7b309a77 appstream 497 k | |
acme-focal: Installing weak dependencies: | |
acme-focal: python39-pip noarch 20.2.4-3.module_el8.4.0+680+7b309a77 appstream 2.0 M | |
acme-focal: python39-setuptools noarch 50.3.2-3.module_el8.4.0+680+7b309a77 appstream 871 k | |
acme-focal: Enabling module streams: | |
acme-focal: python36 3.6 | |
acme-focal: python39 3.9 | |
acme-focal: | |
acme-focal: Transaction Summary | |
acme-focal: ========================================================================================== | |
acme-focal: Install 25 Packages | |
acme-focal: | |
acme-focal: Total download size: 20 M | |
acme-focal: Installed size: 77 M | |
acme-focal: Downloading Packages: | |
acme-focal: (1/25): python3-markupsafe-0.23-19.el8.x86_64.r 511 kB/s | 39 kB 00:00 | |
acme-focal: (2/25): python3-pip-9.0.3-19.el8.noarch.rpm 621 kB/s | 20 kB 00:00 | |
acme-focal: (3/25): python3-pyasn1-0.3.7-6.el8.noarch.rpm 2.6 MB/s | 126 kB 00:00 | |
acme-focal: (4/25): python3-jinja2-2.10.1-2.el8_0.noarch.rp 2.8 MB/s | 538 kB 00:00 | |
acme-focal: (5/25): python3-pytz-2017.2-9.el8.noarch.rpm 1.1 MB/s | 54 kB 00:00 | |
acme-focal: (6/25): python36-3.6.8-2.module_el8.4.0+666+456 912 kB/s | 19 kB 00:00 | |
acme-focal: (7/25): python39-3.9.1-5.module_el8.4.0+694+cc4 1.7 MB/s | 32 kB 00:00 | |
acme-focal: (8/25): python39-pip-20.2.4-3.module_el8.4.0+68 8.7 MB/s | 2.0 MB 00:00 | |
acme-focal: (9/25): python3-babel-2.5.1-5.el8.noarch.rpm 8.1 MB/s | 4.8 MB 00:00 | |
acme-focal: (10/25): python39-pip-wheel-20.2.4-3.module_el8 6.7 MB/s | 1.3 MB 00:00 | |
acme-focal: (11/25): python39-libs-3.9.1-5.module_el8.4.0+6 17 MB/s | 8.1 MB 00:00 | |
acme-focal: (12/25): python39-setuptools-50.3.2-3.module_el 7.2 MB/s | 871 kB 00:00 | |
acme-focal: (13/25): python39-setuptools-wheel-50.3.2-3.mod 5.4 MB/s | 497 kB 00:00 | |
acme-focal: (14/25): python3-cffi-1.11.5-5.el8.x86_64.rpm 2.3 MB/s | 237 kB 00:00 | |
acme-focal: (15/25): python3-ply-3.9-9.el8.noarch.rpm 1.5 MB/s | 111 kB 00:00 | |
acme-focal: (16/25): python3-pycparser-2.14-14.el8.noarch.r 2.5 MB/s | 109 kB 00:00 | |
acme-focal: (17/25): python3-pyyaml-3.12-12.el8.x86_64.rpm 4.5 MB/s | 193 kB 00:00 | |
acme-focal: (18/25): python3-cryptography-3.2.1-3.el8.x86_6 3.5 MB/s | 559 kB 00:00 | |
acme-focal: (19/25): python3-six-1.11.0-8.el8.noarch.rpm 2.0 MB/s | 38 kB 00:00 | |
acme-focal: (20/25): python3-setuptools-39.2.0-6.el8.noarch 3.8 MB/s | 163 kB 00:00 | |
acme-focal: (21/25): python3-bcrypt-3.1.6-2.el8.1.x86_64.rp 108 kB/s | 44 kB 00:00 | |
acme-focal: (22/25): libsodium-1.0.18-2.el8.x86_64.rpm 395 kB/s | 162 kB 00:00 | |
acme-focal: (23/25): python3-pynacl-1.3.0-5.el8.x86_64.rpm 1.1 MB/s | 100 kB 00:00 | |
acme-focal: (24/25): python3-paramiko-2.4.3-1.el8.noarch.rp 557 kB/s | 289 kB 00:00 | |
acme-focal: (25/25): sshpass-1.06-9.el8.x86_64.rpm 161 kB/s | 27 kB 00:00 | |
acme-focal: -------------------------------------------------------------------------------- | |
acme-focal: Total 9.3 MB/s | 20 MB 00:02 | |
==> acme-focal: warning: /var/cache/dnf/epel-6519ee669354a484/packages/libsodium-1.0.18-2.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 2f86d6a1: NOKEY | |
acme-focal: Extra Packages for Enterprise Linux 8 - x86_64 1.6 MB/s | 1.6 kB 00:00 | |
==> acme-focal: Importing GPG key 0x2F86D6A1: | |
==> acme-focal: Userid : "Fedora EPEL (8) <[email protected]>" | |
==> acme-focal: Fingerprint: 94E2 79EB 8D8F 25B2 1810 ADF1 21EA 45AB 2F86 D6A1 | |
==> acme-focal: From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 | |
acme-focal: Key imported successfully | |
acme-focal: Running transaction check | |
acme-focal: Transaction check succeeded. | |
acme-focal: Running transaction test | |
acme-focal: Transaction test succeeded. | |
acme-focal: Running transaction | |
acme-focal: Preparing : 1/1 | |
acme-focal: Installing : python3-six-1.11.0-8.el8.noarch 1/25 | |
acme-focal: Installing : libsodium-1.0.18-2.el8.x86_64 2/25 | |
acme-focal: Installing : python3-setuptools-39.2.0-6.el8.noarch 3/25 | |
acme-focal: Installing : python36-3.6.8-2.module_el8.4.0+666+456f5f48.x86_6 4/25 | |
acme-focal: Running scriptlet: python36-3.6.8-2.module_el8.4.0+666+456f5f48.x86_6 4/25 | |
acme-focal: Installing : python3-pip-9.0.3-19.el8.noarch 5/25 | |
acme-focal: Installing : python3-ply-3.9-9.el8.noarch 6/25 | |
acme-focal: Installing : python3-pycparser-2.14-14.el8.noarch 7/25 | |
acme-focal: Installing : python3-cffi-1.11.5-5.el8.x86_64 8/25 | |
acme-focal: Installing : python3-cryptography-3.2.1-3.el8.x86_64 9/25 | |
acme-focal: Installing : python3-bcrypt-3.1.6-2.el8.1.x86_64 10/25 | |
acme-focal: Installing : python3-pynacl-1.3.0-5.el8.x86_64 11/25 | |
acme-focal: Installing : python39-setuptools-wheel-50.3.2-3.module_el8.4.0+ 12/25 | |
acme-focal: Installing : python39-pip-wheel-20.2.4-3.module_el8.4.0+680+7b3 13/25 | |
acme-focal: Installing : python39-libs-3.9.1-5.module_el8.4.0+694+cc446542. 14/25 | |
acme-focal: Installing : python39-3.9.1-5.module_el8.4.0+694+cc446542.x86_6 15/25 | |
acme-focal: Running scriptlet: python39-3.9.1-5.module_el8.4.0+694+cc446542.x86_6 15/25 | |
acme-focal: Installing : python39-setuptools-50.3.2-3.module_el8.4.0+680+7b 16/25 | |
acme-focal: Running scriptlet: python39-setuptools-50.3.2-3.module_el8.4.0+680+7b 16/25 | |
acme-focal: Installing : python39-pip-20.2.4-3.module_el8.4.0+680+7b309a77. 17/25 | |
acme-focal: Running scriptlet: python39-pip-20.2.4-3.module_el8.4.0+680+7b309a77. 17/25 | |
acme-focal: Installing : python3-pytz-2017.2-9.el8.noarch 18/25 | |
acme-focal: Installing : python3-babel-2.5.1-5.el8.noarch 19/25 | |
acme-focal: Installing : python3-pyasn1-0.3.7-6.el8.noarch 20/25 | |
acme-focal: Installing : python3-markupsafe-0.23-19.el8.x86_64 21/25 | |
acme-focal: Installing : python3-jinja2-2.10.1-2.el8_0.noarch 22/25 | |
acme-focal: Installing : python3-paramiko-2.4.3-1.el8.noarch 23/25 | |
acme-focal: Installing : sshpass-1.06-9.el8.x86_64 24/25 | |
acme-focal: Installing : python3-pyyaml-3.12-12.el8.x86_64 25/25 | |
acme-focal: Running scriptlet: python3-pyyaml-3.12-12.el8.x86_64 25/25 | |
acme-focal: Verifying : python3-babel-2.5.1-5.el8.noarch 1/25 | |
acme-focal: Verifying : python3-jinja2-2.10.1-2.el8_0.noarch 2/25 | |
acme-focal: Verifying : python3-markupsafe-0.23-19.el8.x86_64 3/25 | |
acme-focal: Verifying : python3-pip-9.0.3-19.el8.noarch 4/25 | |
acme-focal: Verifying : python3-pyasn1-0.3.7-6.el8.noarch 5/25 | |
acme-focal: Verifying : python3-pytz-2017.2-9.el8.noarch 6/25 | |
acme-focal: Verifying : python36-3.6.8-2.module_el8.4.0+666+456f5f48.x86_6 7/25 | |
acme-focal: Verifying : python39-3.9.1-5.module_el8.4.0+694+cc446542.x86_6 8/25 | |
acme-focal: Verifying : python39-libs-3.9.1-5.module_el8.4.0+694+cc446542. 9/25 | |
acme-focal: Verifying : python39-pip-20.2.4-3.module_el8.4.0+680+7b309a77. 10/25 | |
acme-focal: Verifying : python39-pip-wheel-20.2.4-3.module_el8.4.0+680+7b3 11/25 | |
acme-focal: Verifying : python39-setuptools-50.3.2-3.module_el8.4.0+680+7b 12/25 | |
acme-focal: Verifying : python39-setuptools-wheel-50.3.2-3.module_el8.4.0+ 13/25 | |
acme-focal: Verifying : python3-cffi-1.11.5-5.el8.x86_64 14/25 | |
acme-focal: Verifying : python3-cryptography-3.2.1-3.el8.x86_64 15/25 | |
acme-focal: Verifying : python3-ply-3.9-9.el8.noarch 16/25 | |
acme-focal: Verifying : python3-pycparser-2.14-14.el8.noarch 17/25 | |
acme-focal: Verifying : python3-pyyaml-3.12-12.el8.x86_64 18/25 | |
acme-focal: Verifying : python3-setuptools-39.2.0-6.el8.noarch 19/25 | |
acme-focal: Verifying : python3-six-1.11.0-8.el8.noarch 20/25 | |
acme-focal: Verifying : libsodium-1.0.18-2.el8.x86_64 21/25 | |
acme-focal: Verifying : python3-bcrypt-3.1.6-2.el8.1.x86_64 22/25 | |
acme-focal: Verifying : python3-paramiko-2.4.3-1.el8.noarch 23/25 | |
acme-focal: Verifying : python3-pynacl-1.3.0-5.el8.x86_64 24/25 | |
acme-focal: Verifying : sshpass-1.06-9.el8.x86_64 25/25 | |
acme-focal: | |
acme-focal: Installed: | |
acme-focal: libsodium-1.0.18-2.el8.x86_64 | |
acme-focal: python3-babel-2.5.1-5.el8.noarch | |
acme-focal: python3-bcrypt-3.1.6-2.el8.1.x86_64 | |
acme-focal: python3-cffi-1.11.5-5.el8.x86_64 | |
acme-focal: python3-cryptography-3.2.1-3.el8.x86_64 | |
acme-focal: python3-jinja2-2.10.1-2.el8_0.noarch | |
acme-focal: python3-markupsafe-0.23-19.el8.x86_64 | |
acme-focal: python3-paramiko-2.4.3-1.el8.noarch | |
acme-focal: python3-pip-9.0.3-19.el8.noarch | |
acme-focal: python3-ply-3.9-9.el8.noarch | |
acme-focal: python3-pyasn1-0.3.7-6.el8.noarch | |
acme-focal: python3-pycparser-2.14-14.el8.noarch | |
acme-focal: python3-pynacl-1.3.0-5.el8.x86_64 | |
acme-focal: python3-pytz-2017.2-9.el8.noarch | |
acme-focal: python3-pyyaml-3.12-12.el8.x86_64 | |
acme-focal: python3-setuptools-39.2.0-6.el8.noarch | |
acme-focal: python3-six-1.11.0-8.el8.noarch | |
acme-focal: python36-3.6.8-2.module_el8.4.0+666+456f5f48.x86_64 | |
acme-focal: python39-3.9.1-5.module_el8.4.0+694+cc446542.x86_64 | |
acme-focal: python39-libs-3.9.1-5.module_el8.4.0+694+cc446542.x86_64 | |
acme-focal: python39-pip-20.2.4-3.module_el8.4.0+680+7b309a77.noarch | |
acme-focal: python39-pip-wheel-20.2.4-3.module_el8.4.0+680+7b309a77.noarch | |
acme-focal: python39-setuptools-50.3.2-3.module_el8.4.0+680+7b309a77.noarch | |
acme-focal: python39-setuptools-wheel-50.3.2-3.module_el8.4.0+680+7b309a77.noarch | |
acme-focal: sshpass-1.06-9.el8.x86_64 | |
acme-focal: | |
acme-focal: Complete! | |
==> acme-focal: WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead. | |
acme-focal: Collecting ansible | |
acme-focal: Downloading https://files.pythonhosted.org/packages/d9/7d/dacd49b75da7d82c3f24ada25ee10693080113a3b61d4d4d38066f7802b2/ansible-3.0.0.tar.gz (30.8MB) | |
acme-focal: Collecting ansible-base<2.11,>=2.10.5 (from ansible) | |
acme-focal: Downloading https://files.pythonhosted.org/packages/83/f9/19c0f3c5bc555f08ee24122dfda7dc4968f966971817c2c3a07df6972c14/ansible-base-2.10.6.tar.gz (5.7MB) | |
acme-focal: Requirement already satisfied: jinja2 in /usr/lib/python3.6/site-packages (from ansible-base<2.11,>=2.10.5->ansible) | |
acme-focal: Requirement already satisfied: PyYAML in /usr/lib64/python3.6/site-packages (from ansible-base<2.11,>=2.10.5->ansible) | |
acme-focal: Requirement already satisfied: cryptography in /usr/lib64/python3.6/site-packages (from ansible-base<2.11,>=2.10.5->ansible) | |
acme-focal: Collecting packaging (from ansible-base<2.11,>=2.10.5->ansible) | |
acme-focal: Downloading https://files.pythonhosted.org/packages/3e/89/7ea760b4daa42653ece2380531c90f64788d979110a2ab51049d92f408af/packaging-20.9-py2.py3-none-any.whl (40kB) | |
acme-focal: Requirement already satisfied: MarkupSafe>=0.23 in /usr/lib64/python3.6/site-packages (from jinja2->ansible-base<2.11,>=2.10.5->ansible) | |
acme-focal: Requirement already satisfied: six>=1.4.1 in /usr/lib/python3.6/site-packages (from cryptography->ansible-base<2.11,>=2.10.5->ansible) | |
acme-focal: Requirement already satisfied: cffi!=1.11.3,>=1.8 in /usr/lib64/python3.6/site-packages (from cryptography->ansible-base<2.11,>=2.10.5->ansible) | |
acme-focal: Collecting pyparsing>=2.0.2 (from packaging->ansible-base<2.11,>=2.10.5->ansible) | |
acme-focal: Downloading https://files.pythonhosted.org/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl (67kB) | |
acme-focal: Requirement already satisfied: pycparser in /usr/lib/python3.6/site-packages (from cffi!=1.11.3,>=1.8->cryptography->ansible-base<2.11,>=2.10.5->ansible) | |
acme-focal: Installing collected packages: pyparsing, packaging, ansible-base, ansible | |
acme-focal: Running setup.py install for ansible-base: started | |
acme-focal: Running setup.py install for ansible-base: finished with status 'done' | |
acme-focal: Running setup.py install for ansible: started | |
acme-focal: Running setup.py install for ansible: finished with status 'done' | |
acme-focal: Successfully installed ansible-3.0.0 ansible-base-2.10.6 packaging-20.9 pyparsing-2.4.7 | |
2021/02/19 21:19:37 packer-builder-lxd plugin: lxc exec execution exited with '0': 'chmod +x /tmp/script_4898.sh; PACKER_BUILDER_TYPE='lxd' PACKER_BUILD_NAME='acme-focal' /tmp/script_4898.sh' | |
2021/02/19 21:19:37 packer-builder-lxd plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2021/02/19 21:19:37 [INFO] 16473 bytes written for 'stdout' | |
2021/02/19 21:19:37 [INFO] 461 bytes written for 'stderr' | |
2021/02/19 21:19:37 [INFO] RPC client: Communicator ended with: 0 | |
2021/02/19 21:19:37 [INFO] RPC endpoint: Communicator ended with: 0 | |
2021/02/19 21:19:37 packer-provisioner-shell plugin: [INFO] 16473 bytes written for 'stdout' | |
2021/02/19 21:19:37 packer-provisioner-shell plugin: [INFO] 461 bytes written for 'stderr' | |
2021/02/19 21:19:37 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0 | |
2021/02/19 21:19:37 packer-builder-lxd plugin: Executing with lxc exec in container: packer-acme-focal rm -f /tmp/script_4898.sh | |
2021/02/19 21:19:37 packer-builder-lxd plugin: Executing lxc exec: /bin/sh []string{"/bin/sh", "-c", "lxc exec packer-acme-focal -- /bin/sh -c \"rm -f /tmp/script_4898.sh\""} | |
2021/02/19 21:19:38 packer-builder-lxd plugin: lxc exec execution exited with '0': 'rm -f /tmp/script_4898.sh' | |
2021/02/19 21:19:38 packer-builder-lxd plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2021/02/19 21:19:38 [INFO] RPC client: Communicator ended with: 0 | |
2021/02/19 21:19:38 [INFO] RPC endpoint: Communicator ended with: 0 | |
2021/02/19 21:19:38 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0 | |
2021/02/19 21:19:38 packer-builder-lxd plugin: Executing with lxc exec in container: packer-acme-focal rm -f | |
2021/02/19 21:19:38 packer-builder-lxd plugin: Executing lxc exec: /bin/sh []string{"/bin/sh", "-c", "lxc exec packer-acme-focal -- /bin/sh -c \"rm -f \""} | |
2021/02/19 21:19:38 packer-builder-lxd plugin: lxc exec execution exited with '0': 'rm -f ' | |
2021/02/19 21:19:38 packer-builder-lxd plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2021/02/19 21:19:38 [INFO] RPC client: Communicator ended with: 0 | |
2021/02/19 21:19:38 [INFO] RPC endpoint: Communicator ended with: 0 | |
2021/02/19 21:19:38 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0 | |
2021/02/19 21:19:38 [INFO] (telemetry) ending shell | |
2021/02/19 21:19:38 [INFO] (telemetry) Starting provisioner ansible-local | |
==> acme-focal: Provisioning with Ansible... | |
acme-focal: Creating Ansible staging directory... | |
acme-focal: Creating directory: /tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2 | |
2021/02/19 21:19:38 packer-builder-lxd plugin: Executing with lxc exec in container: packer-acme-focal mkdir -p '/tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2' | |
2021/02/19 21:19:38 packer-builder-lxd plugin: Executing lxc exec: /bin/sh []string{"/bin/sh", "-c", "lxc exec packer-acme-focal -- /bin/sh -c \"mkdir -p '/tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2'\""} | |
2021/02/19 21:19:38 packer-builder-lxd plugin: lxc exec execution exited with '0': 'mkdir -p '/tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2'' | |
2021/02/19 21:19:38 packer-builder-lxd plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2021/02/19 21:19:38 [INFO] 0 bytes written for 'stdout' | |
2021/02/19 21:19:38 [INFO] 0 bytes written for 'stderr' | |
2021/02/19 21:19:38 [INFO] RPC client: Communicator ended with: 0 | |
2021/02/19 21:19:38 [INFO] RPC endpoint: Communicator ended with: 0 | |
2021/02/19 21:19:38 packer-provisioner-ansible-local plugin: [INFO] 0 bytes written for 'stdout' | |
2021/02/19 21:19:38 packer-provisioner-ansible-local plugin: [INFO] 0 bytes written for 'stderr' | |
2021/02/19 21:19:38 packer-provisioner-ansible-local plugin: [INFO] RPC client: Communicator ended with: 0 | |
acme-focal: Uploading main Playbook file... | |
2021/02/19 21:19:38 packer-provisioner-ansible-local plugin: [INFO] 111 bytes written for 'uploadData' | |
2021/02/19 21:19:38 [INFO] 111 bytes written for 'uploadData' | |
2021/02/19 21:19:38 packer-builder-lxd plugin: Executing with lxc exec in container: packer-acme-focal test -d "/tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/playbook.yml" | |
2021/02/19 21:19:38 packer-builder-lxd plugin: Executing lxc exec: /bin/sh []string{"/bin/sh", "-c", "lxc exec packer-acme-focal -- /bin/sh -c \"test -d \"/tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/playbook.yml\"\""} | |
2021/02/19 21:19:38 packer-builder-lxd plugin: lxc exec execution exited with '1': 'test -d "/tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/playbook.yml"' | |
2021/02/19 21:19:38 packer-builder-lxd plugin: Running copy command: lxc file push - packer-acme-focal/tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/playbook.yml | |
acme-focal: Uploading galaxy file... | |
2021/02/19 21:19:38 packer-provisioner-ansible-local plugin: [INFO] 66 bytes written for 'uploadData' | |
2021/02/19 21:19:38 [INFO] 66 bytes written for 'uploadData' | |
2021/02/19 21:19:38 packer-builder-lxd plugin: Executing with lxc exec in container: packer-acme-focal test -d "/tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/requirements.yml" | |
2021/02/19 21:19:38 packer-builder-lxd plugin: Executing lxc exec: /bin/sh []string{"/bin/sh", "-c", "lxc exec packer-acme-focal -- /bin/sh -c \"test -d \"/tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/requirements.yml\"\""} | |
2021/02/19 21:19:38 packer-builder-lxd plugin: lxc exec execution exited with '1': 'test -d "/tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/requirements.yml"' | |
2021/02/19 21:19:38 packer-builder-lxd plugin: Running copy command: lxc file push - packer-acme-focal/tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/requirements.yml | |
acme-focal: Uploading inventory file... | |
2021/02/19 21:19:38 packer-provisioner-ansible-local plugin: [INFO] 9 bytes written for 'uploadData' | |
2021/02/19 21:19:38 [INFO] 9 bytes written for 'uploadData' | |
2021/02/19 21:19:38 packer-builder-lxd plugin: Executing with lxc exec in container: packer-acme-focal test -d "/tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/packer-provisioner-ansible-local240743931" | |
2021/02/19 21:19:38 packer-builder-lxd plugin: Executing lxc exec: /bin/sh []string{"/bin/sh", "-c", "lxc exec packer-acme-focal -- /bin/sh -c \"test -d \"/tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/packer-provisioner-ansible-local240743931\"\""} | |
2021/02/19 21:19:38 packer-builder-lxd plugin: lxc exec execution exited with '1': 'test -d "/tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/packer-provisioner-ansible-local240743931"' | |
2021/02/19 21:19:38 packer-builder-lxd plugin: Running copy command: lxc file push - packer-acme-focal/tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/packer-provisioner-ansible-local240743931 | |
acme-focal: Executing Ansible Galaxy: cd /tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2 && ansible-galaxy install -r /tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/requirements.yml -p /tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/roles | |
2021/02/19 21:19:38 packer-builder-lxd plugin: Executing with lxc exec in container: packer-acme-focal cd /tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2 && ansible-galaxy install -r /tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/requirements.yml -p /tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/roles | |
2021/02/19 21:19:38 packer-builder-lxd plugin: Executing lxc exec: /bin/sh []string{"/bin/sh", "-c", "lxc exec packer-acme-focal -- /bin/sh -c \"cd /tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2 && ansible-galaxy install -r /tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/requirements.yml -p /tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/roles\""} | |
acme-focal: Skipping install, no requirements found | |
==> acme-focal: [WARNING]: The requirements file '/tmp/packer-provisioner-ansible- | |
==> acme-focal: local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/requirements.yml' contains | |
==> acme-focal: collections which will be ignored. To install these collections run 'ansible- | |
==> acme-focal: galaxy collection install -r' or to install both at the same time run 'ansible- | |
==> acme-focal: galaxy install -r' without a custom install path. | |
2021/02/19 21:19:39 packer-builder-lxd plugin: lxc exec execution exited with '0': 'cd /tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2 && ansible-galaxy install -r /tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/requirements.yml -p /tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/roles' | |
2021/02/19 21:19:39 packer-builder-lxd plugin: [INFO] RPC endpoint: Communicator ended with: 0 | |
2021/02/19 21:19:39 [INFO] 40 bytes written for 'stdout' | |
2021/02/19 21:19:39 [INFO] 345 bytes written for 'stderr' | |
2021/02/19 21:19:39 [INFO] RPC client: Communicator ended with: 0 | |
2021/02/19 21:19:39 [INFO] RPC endpoint: Communicator ended with: 0 | |
2021/02/19 21:19:39 packer-provisioner-ansible-local plugin: [INFO] 40 bytes written for 'stdout' | |
2021/02/19 21:19:39 packer-provisioner-ansible-local plugin: [INFO] 345 bytes written for 'stderr' | |
2021/02/19 21:19:39 packer-provisioner-ansible-local plugin: [INFO] RPC client: Communicator ended with: 0 | |
acme-focal: Executing Ansible: cd /tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2 && ANSIBLE_FORCE_COLOR=1 PYTHONUNBUFFERED=1 ansible-playbook /tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/playbook.yml --extra-vars "packer_build_name=acme-focal packer_builder_type=lxd packer_http_addr=ERR_HTTP_ADDR_NOT_IMPLEMENTED_BY_BUILDER -o IdentitiesOnly=yes" -vv ansible_python_interpreter=/usr/bin/python3.9 -c local -i /tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/packer-provisioner-ansible-local240743931 | |
2021/02/19 21:19:39 packer-builder-lxd plugin: Executing with lxc exec in container: packer-acme-focal cd /tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2 && ANSIBLE_FORCE_COLOR=1 PYTHONUNBUFFERED=1 ansible-playbook /tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/playbook.yml --extra-vars "packer_build_name=acme-focal packer_builder_type=lxd packer_http_addr=ERR_HTTP_ADDR_NOT_IMPLEMENTED_BY_BUILDER -o IdentitiesOnly=yes" -vv ansible_python_interpreter=/usr/bin/python3.9 -c local -i /tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/packer-provisioner-ansible-local240743931 | |
2021/02/19 21:19:39 packer-builder-lxd plugin: Executing lxc exec: /bin/sh []string{"/bin/sh", "-c", "lxc exec packer-acme-focal -- /bin/sh -c \"cd /tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2 && ANSIBLE_FORCE_COLOR=1 PYTHONUNBUFFERED=1 ansible-playbook /tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/playbook.yml --extra-vars \"packer_build_name=acme-focal packer_builder_type=lxd packer_http_addr=ERR_HTTP_ADDR_NOT_IMPLEMENTED_BY_BUILDER -o IdentitiesOnly=yes\" -vv ansible_python_interpreter=/usr/bin/python3.9 -c local -i /tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/packer-provisioner-ansible-local240743931\""} | |
==> acme-focal: [WARNING]: No inventory was parsed, only implicit localhost is available | |
==> acme-focal: [WARNING]: provided hosts list is empty, only localhost is available. Note that | |
==> acme-focal: the implicit localhost does not match 'all' | |
==> acme-focal: ERROR! the role 'nginx' was not found in nginxinc.nginx_core:ansible.legacy:/tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2 | |
==> acme-focal: | |
==> acme-focal: The error appears to be in '/tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/playbook.yml': line 7, column 7, but may | |
==> acme-focal: be elsewhere in the file depending on the exact syntax problem. | |
==> acme-focal: | |
==> acme-focal: The offending line appears to be: | |
==> acme-focal: | |
==> acme-focal: roles: | |
==> acme-focal: - role: nginx | |
==> acme-focal: ^ here | |
2021/02/19 21:19:39 packer-builder-lxd plugin: lxc exec execution exited with '1': 'cd /tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2 && ANSIBLE_FORCE_COLOR=1 PYTHONUNBUFFERED=1 ansible-playbook /tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/playbook.yml --extra-vars "packer_build_name=acme-focal packer_builder_type=lxd packer_http_addr=ERR_HTTP_ADDR_NOT_IMPLEMENTED_BY_BUILDER -o IdentitiesOnly=yes" -vv ansible_python_interpreter=/usr/bin/python3.9 -c local -i /tmp/packer-provisioner-ansible-local/60301cdb-5fcb-3f4b-cc3f-515856a077d2/packer-provisioner-ansible-local240743931' | |
2021/02/19 21:19:39 packer-builder-lxd plugin: [INFO] RPC endpoint: Communicator ended with: 1 | |
2021/02/19 21:19:39 [INFO] 0 bytes written for 'stdout' | |
2021/02/19 21:19:39 [INFO] 922 bytes written for 'stderr' | |
2021/02/19 21:19:39 [INFO] RPC client: Communicator ended with: 1 | |
2021/02/19 21:19:39 [INFO] RPC endpoint: Communicator ended with: 1 | |
2021/02/19 21:19:39 packer-provisioner-ansible-local plugin: [INFO] 0 bytes written for 'stdout' | |
2021/02/19 21:19:39 packer-provisioner-ansible-local plugin: [INFO] 922 bytes written for 'stderr' | |
2021/02/19 21:19:39 packer-provisioner-ansible-local plugin: [INFO] RPC client: Communicator ended with: 1 | |
2021/02/19 21:19:39 [INFO] (telemetry) ending ansible-local | |
==> acme-focal: Unregistering and deleting deleting container... | |
2021/02/19 21:19:39 packer-builder-lxd plugin: Executing lxc command: []string{"delete", "--force", "packer-acme-focal"} | |
2021/02/19 21:19:41 packer-builder-lxd plugin: stdout: | |
2021/02/19 21:19:41 packer-builder-lxd plugin: stderr: | |
2021/02/19 21:19:41 [INFO] (telemetry) ending lxd | |
==> Wait completed after 2 minutes 10 seconds | |
2021/02/19 21:19:41 machine readable: error-count []string{"1"} | |
==> Some builds didn't complete successfully and had errors: | |
2021/02/19 21:19:41 machine readable: acme-focal,error []string{"Error executing Ansible: Non-zero exit status: 1"} | |
==> Builds finished but no artifacts were created. | |
2021/02/19 21:19:41 [INFO] (telemetry) Finalizing. | |
Build 'acme-focal' errored after 2 minutes 10 seconds: Error executing Ansible: Non-zero exit status: 1 | |
==> Wait completed after 2 minutes 10 seconds | |
==> Some builds didn't complete successfully and had errors: | |
--> acme-focal: Error executing Ansible: Non-zero exit status: 1 | |
==> Builds finished but no artifacts were created. | |
2021/02/19 21:19:42 waiting for all plugin processes to complete... | |
2021/02/19 21:19:42 /usr/bin/packer: plugin process exited | |
2021/02/19 21:19:42 /usr/bin/packer: plugin process exited | |
2021/02/19 21:19:42 /usr/bin/packer: plugin process exited |
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
--- | |
- hosts: 127.0.0.1 | |
connection: local | |
collections: | |
- nginxinc.nginx_core | |
roles: | |
- role: nginx |
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
--- | |
collections: | |
- name: nginxinc.nginx_core | |
version: 0.3.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment