kitchen-ansible 0.57.0 → 0.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a8dd6b2d531e23dfc6c50c161be2ba3b94a1d2a9b5f4cad55c3febb7d57301a
4
- data.tar.gz: b987177ab9bed7bc399e56150cc0c34df023b525aaa354857e2ad957d178f315
3
+ metadata.gz: 9f07044f590a634ea00c49ab8d4b8ae9119a75092f64fd0c2b4057c66a854df6
4
+ data.tar.gz: 4c1b6bd5047fa3cbf442ed94f30d9eef99a83c6f01ecfc40d52b065328f1111c
5
5
  SHA512:
6
- metadata.gz: cd93caf0fe0fde4a9cb8b5bc1a61d22af0a1155b61253cdc9745dea4ff5678499c06b330de09192ba410500f7c4476d0d472d2da0c097e53ed2093c9f31457f0
7
- data.tar.gz: 9e7b3ca6a11f397760a80351a8607e5d2de14af98cae400b18925d76ae14a2f7364dda87a06a38df6bdb3eb3d07f04a2ea9fe6b043363e9d84564b6a7cefab39
6
+ metadata.gz: d398e0181ee4468fd7804399b1575c3dd6f3a6c51c9e1cd125d0e27360272f85f805e574a597904c7c22ec80767c0da6f1bf05a30cf15ecbb3a700a2a7921ecb
7
+ data.tar.gz: 1e2df54600778d404c4a6efacbf4751fc017805bed67443dbf8590f06357cbae1d3e5b5a264854ffe52b810702be50a8f3218b54adccf1748740c41a060cff68
@@ -322,13 +322,17 @@ module Kitchen
322
322
  sudo_env('cp'), File.join(config[:root_path], 'ansible.cfg'), '$ETC_ANSIBLE/.'
323
323
  ].join(' ')
324
324
 
325
- commands << [
326
- sudo_env('cp -r'), File.join(config[:root_path], 'group_vars'), '$ETC_ANSIBLE/.'
327
- ].join(' ')
325
+ if File.directory?(File.join(config[:root_path], 'group_vars'))
326
+ commands << [
327
+ sudo_env('cp -r'), File.join(config[:root_path], 'group_vars'), '$ETC_ANSIBLE/.'
328
+ ].join(' ')
329
+ end
328
330
 
329
- commands << [
330
- sudo_env('cp -r'), File.join(config[:root_path], 'host_vars'), '$ETC_ANSIBLE/.'
331
- ].join(' ')
331
+ if File.directory?(File.join(config[:root_path], 'host_vars'))
332
+ commands << [
333
+ sudo_env('cp -r'), File.join(config[:root_path], 'host_vars'), '$ETC_ANSIBLE/.'
334
+ ].join(' ')
335
+ end
332
336
 
333
337
  if config[:ssh_known_hosts]
334
338
  config[:ssh_known_hosts].each do |host|
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  module Kitchen
3
3
  module Ansible
4
- VERSION = '0.57.0'.freeze
4
+ VERSION = '0.58.0'.freeze
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-ansible
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.57.0
4
+ version: 0.58.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neill Turner
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  - !ruby/object:Gem::Version
130
130
  version: '0'
131
131
  requirements: []
132
- rubygems_version: 4.0.3
132
+ rubygems_version: 3.6.9
133
133
  specification_version: 4
134
134
  summary: ansible provisioner for test-kitchen
135
135
  test_files: []