kitchen-ansible 0.46.5 → 0.46.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f31ad1c2c287ac79ee8c665709e8a215305a515
4
- data.tar.gz: 5b37bebbc704bbca3e9b8ff5aef1b2f6ed329052
3
+ metadata.gz: 2a7fcd96426d283605167691a5415456a5b457ba
4
+ data.tar.gz: 0bffecdbcbcd84f91728db125f9ec9c262b2d9fd
5
5
  SHA512:
6
- metadata.gz: 6559353a0c52ca4bdb9d6bacaf7277903d938e9005450ccf42835307f426f622cded781d4b03de8c356e334708c048d196470b32fbc25eba30a0f0a9c568222b
7
- data.tar.gz: a6f5a0cbe68c557c950841d34ff26415aab65389178113c2d8b96975deb6075a6932ea9fabef1051e57037362b8def7d14b7d6bfa9af23e3eda1d378ffcbb584
6
+ metadata.gz: 5f0ce123e2e1bf2a96e8cadb517ae7d5703497db477064e9c8d857fef13509138144cf828f218e5e0bf86dfc019fe7bde936c75873818a0331641ca95e6e9603
7
+ data.tar.gz: f54ff1cdce42952a088f4ba34f20f98c1bd0427abff6a52a9460cba232c62f57af38ca9ccb88208d40acfbaaf30f90bc61a326651e9335fa2c269da6b1830bcc
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  module Kitchen
3
3
  module Ansible
4
- VERSION = '0.46.5'.freeze
4
+ VERSION = '0.46.6'.freeze
5
5
  end
6
6
  end
@@ -493,11 +493,14 @@ module Kitchen
493
493
  end
494
494
 
495
495
  def install_ansible_from_pip_command
496
- ansible_version = ''
497
- ansible_version = "==#{config[:ansible_version]}" unless config[:ansible_version] == 'latest'
496
+ if config[:ansible_version]=='latest' or config[:ansible_version].nil?
497
+ ansible_version = ''
498
+ else
499
+ ansible_version = "==#{config[:ansible_version]}"
500
+ end
498
501
 
499
502
  <<-INSTALL
500
- if [ ! -d #{config[:root_path]}/ansible ]; then
503
+ if [ ! $(which ansible) ]; then
501
504
  if [ -f /etc/centos-release ] || [ -f /etc/redhat-release ]; then
502
505
  #{Kitchen::Provisioner::Ansible::Os::Redhat.new('redhat', config).install_epel_repo}
503
506
  #{update_packages_redhat_cmd}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-ansible
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.46.5
4
+ version: 0.46.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neill Turner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-04 00:00:00.000000000 Z
11
+ date: 2017-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen