Fix: Skip ansible provisioners version check 54/70854/1 v0.12.1
authorAnil Belur <abelur@linuxfoundation.org>
Thu, 13 Oct 2022 02:05:51 +0000 (12:05 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Thu, 13 Oct 2022 02:11:11 +0000 (12:11 +1000)
Packer provisioners invokes ansible version check which can be
skipped since the provisioner is invoking a custom script.

Issue-ID: RELENG-4473
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: I661984bfc34857ff5ec42c63a695074f27e1492b

releasenotes/notes/skip-ansible-version-check-8f37ba1af0da47c2.yaml [new file with mode: 0644]
templates/builder-aws.json
templates/builder.json
templates/docker-aws.json
templates/docker.json

diff --git a/releasenotes/notes/skip-ansible-version-check-8f37ba1af0da47c2.yaml b/releasenotes/notes/skip-ansible-version-check-8f37ba1af0da47c2.yaml
new file mode 100644 (file)
index 0000000..7fdfb72
--- /dev/null
@@ -0,0 +1,9 @@
+---
+issues:
+  - |
+    Error running "./common-packer/ansible-playbook.sh --version": exit status 1
+fixes:
+  - |
+    Skip ansible provisioners version check. Packer provisioners invokes
+    the ansible version check, which can be skipped since the provisioner
+    is invoking a custom script.
index b7d7c60..9add5db 100644 (file)
@@ -59,6 +59,7 @@
       "type": "ansible",
       "user": "{{user `ssh_user`}}",
       "command": "./common-packer/ansible-playbook.sh",
+      "skip_version_check": true,
       "playbook_file": "provision/local-builder.yaml",
       "ansible_env_vars": [
         "ANSIBLE_NOCOWS=1",
index 1bc82f5..4e516ec 100644 (file)
@@ -56,6 +56,7 @@
     {
       "type": "ansible",
       "command": "./common-packer/ansible-playbook.sh",
+      "skip_version_check": true,
       "playbook_file": "provision/local-builder.yaml",
       "ansible_env_vars": [
         "ANSIBLE_NOCOWS=1",
index 26673ac..17642ec 100644 (file)
@@ -59,6 +59,7 @@
       "type": "ansible",
       "user": "{{user `ssh_user`}}",
       "command": "./common-packer/ansible-playbook.sh",
+      "skip_version_check": true,
       "playbook_file": "provision/local-docker.yaml",
       "ansible_env_vars": [
         "ANSIBLE_NOCOWS=1",
index 1b57d57..6e28785 100644 (file)
@@ -56,6 +56,7 @@
     {
       "type": "ansible",
       "command": "./common-packer/ansible-playbook.sh",
+      "skip_version_check": true,
       "playbook_file": "provision/local-docker.yaml",
       "ansible_env_vars": [
         "ANSIBLE_NOCOWS=1",