kitchen-ansible 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
@@ -284,6 +284,11 @@ module Kitchen
|
|
284
284
|
def prepare_command
|
285
285
|
commands = []
|
286
286
|
|
287
|
+
# Prevent failure when ansible package installation doesn't contain /etc/ansible
|
288
|
+
commands << [
|
289
|
+
sudo("bash -c '[ -d /etc/ansible ] || mkdir /etc/ansible'")
|
290
|
+
]
|
291
|
+
|
287
292
|
commands << [
|
288
293
|
sudo('cp'),File.join(config[:root_path], 'ansible.cfg'),'/etc/ansible',
|
289
294
|
].join(' ')
|