From 15aba27a45f98edb33890daa3712c6a4371b2947 Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Thu, 13 Oct 2022 12:05:51 +1000 Subject: [PATCH] Fix: Skip ansible provisioners version check 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 Change-Id: I661984bfc34857ff5ec42c63a695074f27e1492b --- .../notes/skip-ansible-version-check-8f37ba1af0da47c2.yaml | 9 +++++++++ templates/builder-aws.json | 1 + templates/builder.json | 1 + templates/docker-aws.json | 1 + templates/docker.json | 1 + 5 files changed, 13 insertions(+) create mode 100644 releasenotes/notes/skip-ansible-version-check-8f37ba1af0da47c2.yaml diff --git a/releasenotes/notes/skip-ansible-version-check-8f37ba1af0da47c2.yaml b/releasenotes/notes/skip-ansible-version-check-8f37ba1af0da47c2.yaml new file mode 100644 index 0000000..7fdfb72 --- /dev/null +++ b/releasenotes/notes/skip-ansible-version-check-8f37ba1af0da47c2.yaml @@ -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. diff --git a/templates/builder-aws.json b/templates/builder-aws.json index b7d7c60..9add5db 100644 --- a/templates/builder-aws.json +++ b/templates/builder-aws.json @@ -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", diff --git a/templates/builder.json b/templates/builder.json index 1bc82f5..4e516ec 100644 --- a/templates/builder.json +++ b/templates/builder.json @@ -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", diff --git a/templates/docker-aws.json b/templates/docker-aws.json index 26673ac..17642ec 100644 --- a/templates/docker-aws.json +++ b/templates/docker-aws.json @@ -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", diff --git a/templates/docker.json b/templates/docker.json index 1b57d57..6e28785 100644 --- a/templates/docker.json +++ b/templates/docker.json @@ -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", -- 2.16.6