kitchen-ansible 0.46.1 → 0.46.2

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: b32daee00e5d86149852730c2886d4e57b5324d4
4
- data.tar.gz: 60b860dff81e09a2e571903bcf659b6b0bf3b141
3
+ metadata.gz: dad0c5408b74ee63fe4f3d76afb69c7f8414c81b
4
+ data.tar.gz: bdfed4e6a33261f5c4853b2a4e60a701a4a053ad
5
5
  SHA512:
6
- metadata.gz: 58da2f4aad784bed8f6a88ee035bcbfb25ce1305b0e8bca7e68eee0b6eb3d8514924f151043a4105ecca164051e0350980a73e942984f693a85e312cd3b436e5
7
- data.tar.gz: 31a20f6821e86b2d69acb4185947e48b162e1bdfd6d1351b1c60789dac6b9c0b2ee8edcdf1534c273b4559f380c7c27626da7a61c6e118d1ee3d4e6e684dd1a3
6
+ metadata.gz: 2575f39bf8ff7ebb5e222228f77fbc8c600a0d9ff72fed5e404dff36c0f700a8f411140be44a9e22fcc1398c5da6fe0458617936d3734dd2f2007a83465311b1
7
+ data.tar.gz: cf6e02fe5d6aa5da76c7f4e6453542393187d27bf44b8ceaa21c733a8f8493c22520068996bdccc7dfe81b446b3d40eca2b51ae72f5cb8c212a3552d48da67c2
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  module Kitchen
3
3
  module Ansible
4
- VERSION = '0.46.1'
4
+ VERSION = '0.46.2'
5
5
  end
6
6
  end
@@ -397,6 +397,9 @@ module Kitchen
397
397
  ansible_extra_flags,
398
398
  "#{File.join(config[:root_path], File.basename(config[:playbook]))}"
399
399
  ].join(' ')
400
+ if config[:idempotency_test]
401
+ result = "#{result} && (echo 'Going to invoke ansible-playbook second time:'; #{result} | tee /tmp/idempotency_test.txt; grep -q 'changed=0.*failed=0' /tmp/idempotency_test.txt && (echo 'Idempotence test: PASS' && exit 0) || (echo 'Idempotence test: FAIL' && exit 1))"
402
+ end
400
403
  if config[:custom_post_play_command]
401
404
  custom_post_play_trap = <<-TRAP
402
405
  function custom_post_play_command {
@@ -410,12 +413,8 @@ module Kitchen
410
413
  #{custom_post_play_trap}
411
414
  #{result}
412
415
  RUN
413
- debug("Going to invoke ansible-playbook with: #{result}")
414
- if config[:idempotency_test]
415
- result = "#{result} && (echo 'Going to invoke ansible-playbook second time:'; #{result} | tee /tmp/idempotency_test.txt; grep -q 'changed=0.*failed=0' /tmp/idempotency_test.txt && (echo 'Idempotence test: PASS' && exit 0) || (echo 'Idempotence test: FAIL' && exit 1))"
416
- debug("Full cmd with idempotency test: #{result}")
417
- end
418
416
 
417
+ debug("Going to invoke ansible-playbook with: #{result}")
419
418
  result
420
419
 
421
420
  end
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.1
4
+ version: 0.46.2
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-03-11 00:00:00.000000000 Z
11
+ date: 2017-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen