From 76078f2b18dd02b084055aa9746a8fdde55553a2 Mon Sep 17 00:00:00 2001 From: Brandon McNama Date: Thu, 5 Nov 2020 15:33:34 -0500 Subject: [PATCH 1/2] Make command compatible with ZSH This change makes the commands run by the provisioner compatible with ZSH. This change fixes compatibility with targets where ZSH is the default shell. Fixes neillturner/kitchen-ansible#308 --- lib/kitchen/provisioner/ansible_playbook.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kitchen/provisioner/ansible_playbook.rb b/lib/kitchen/provisioner/ansible_playbook.rb index d3e185e..393bd7a 100644 --- a/lib/kitchen/provisioner/ansible_playbook.rb +++ b/lib/kitchen/provisioner/ansible_playbook.rb @@ -311,7 +311,7 @@ def prepare_command commands = [] commands << [ - "if [ $(uname -s) == 'FreeBSD' ]; then ETC_ANSIBLE='/usr/local/etc/ansible'; else ETC_ANSIBLE='/etc/ansible'; fi" + "if [ $(uname -s) = 'FreeBSD' ]; then ETC_ANSIBLE='/usr/local/etc/ansible'; else ETC_ANSIBLE='/etc/ansible'; fi" ] # Prevent failure when ansible package installation doesn't contain /etc/ansible commands << [ From aa9d00be7f25490cb5a3d24c0431c972c7dfa26c Mon Sep 17 00:00:00 2001 From: Brandon McNama Date: Mon, 23 Nov 2020 17:58:46 +0000 Subject: [PATCH 2/2] Bump version --- lib/kitchen-ansible/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kitchen-ansible/version.rb b/lib/kitchen-ansible/version.rb index 9d31516..877e1f9 100644 --- a/lib/kitchen-ansible/version.rb +++ b/lib/kitchen-ansible/version.rb @@ -1,6 +1,6 @@ # -*- encoding: utf-8 -*- module Kitchen module Ansible - VERSION = '0.52.0'.freeze + VERSION = '0.53.0'.freeze end end