Assure pyyaml is installed before running sova test
Avoids failure when ansible was running inside a virtualenv due to unavailability of --user mode. In the future sova test should be switched to a container instead of delegated as delegated is testing compatibility build build node used by tox (bionic), under a tox virtualenv, something that diverge considerably from production use. Change-Id: Idd79b493fe9f6d37005484239e532793a06ea356
This commit is contained in:
1
bindep.txt
Normal file
1
bindep.txt
Normal file
@@ -0,0 +1 @@
|
||||
python3-yaml [platform:ubuntu]
|
||||
@@ -15,6 +15,7 @@ provisioner:
|
||||
name: ansible
|
||||
config_options:
|
||||
defaults:
|
||||
interpreter_python: auto
|
||||
timeout: 30
|
||||
forks: 500
|
||||
inventory:
|
||||
|
||||
@@ -3,11 +3,6 @@
|
||||
hosts: all
|
||||
tasks:
|
||||
|
||||
- name: Install python YAML module
|
||||
pip:
|
||||
name: pyyaml
|
||||
extra_args: --user
|
||||
|
||||
- name: Prepare the console file directory
|
||||
file:
|
||||
path: '{{ ansible_user_dir }}/workspace/logs/'
|
||||
|
||||
Reference in New Issue
Block a user