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 +4 -4
- data/lib/kitchen-ansible/version.rb +1 -1
- data/lib/kitchen/provisioner/ansible_playbook.rb +4 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dad0c5408b74ee63fe4f3d76afb69c7f8414c81b
|
4
|
+
data.tar.gz: bdfed4e6a33261f5c4853b2a4e60a701a4a053ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2575f39bf8ff7ebb5e222228f77fbc8c600a0d9ff72fed5e404dff36c0f700a8f411140be44a9e22fcc1398c5da6fe0458617936d3734dd2f2007a83465311b1
|
7
|
+
data.tar.gz: cf6e02fe5d6aa5da76c7f4e6453542393187d27bf44b8ceaa21c733a8f8493c22520068996bdccc7dfe81b446b3d40eca2b51ae72f5cb8c212a3552d48da67c2
|
@@ -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.
|
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
|
+
date: 2017-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-kitchen
|