Skip to content

Commit

Permalink
amazon linux
Browse files Browse the repository at this point in the history
  • Loading branch information
neillturner committed Nov 30, 2016
1 parent 158ddb7 commit 74ffa57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/kitchen-ansible/version.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- encoding: utf-8 -*-
module Kitchen
module Ansible
VERSION = '0.45.5'
VERSION = '0.45.6'
end
end
6 changes: 2 additions & 4 deletions lib/kitchen/provisioner/ansible_playbook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,10 @@ def install_command
if [ ! $(which ansible) ]; then
if [ -f /etc/fedora-release ]; then
#{Kitchen::Provisioner::Ansible::Os::Fedora.new('fedora', config).install_command}
elif [ `grep -q 'Amazon Linux' /etc/system-release` ]; then
#{Kitchen::Provisioner::Ansible::Os::Amazon.new('amazon', config).install_command}
elif [ -f /etc/centos-release ] || [ -f /etc/redhat-release ]; then
if [ -z `grep -q 'Amazon Linux' /etc/system-release` ]; then
#{Kitchen::Provisioner::Ansible::Os::Redhat.new('redhat', config).install_command}
else
#{Kitchen::Provisioner::Ansible::Os::Amazon.new('amazon', config).install_command}
fi
elif [ -f /etc/SuSE-release ] || [ -f /etc/SUSE-brand ]; then
#{Kitchen::Provisioner::Ansible::Os::Suse.new('suse', config).install_command}
elif [[ "$OSTYPE" == "darwin"* ]]; then
Expand Down

0 comments on commit 74ffa57

Please sign in to comment.