Skip to content

Commit 156867c

Browse files
committed
allow skipping package installation for smoker/pytest
this allows to run the smoker role without passing the sudo password
1 parent ba86a3f commit 156867c

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

roles/pytest_project/tasks/install.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
package:
55
name: "{{ pytest_project_packages }}"
66
state: present
7+
when:
8+
- pytest_project_packages | length > 0
79

810
- name: Clone project
911
git:

roles/smoker/tasks/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
become: true
44
package:
55
name: '{{ smoker_browser_packages }}'
6+
when:
7+
- smoker_browser_packages | length > 0
68

79
- name: 'Install Smoker via pytest_project'
810
include_role:

0 commit comments

Comments
 (0)