diff --git a/playbooks/tox/pre.yaml b/playbooks/tox/pre.yaml index 2223d7dd6..69e7def02 100644 --- a/playbooks/tox/pre.yaml +++ b/playbooks/tox/pre.yaml @@ -1,4 +1,3 @@ - hosts: all - tasks: - - name: Ensure tox is installed - shell: type tox || pip install --user tox + roles: + - ensure-tox diff --git a/roles/ensure-tox/tasks/main.yaml b/roles/ensure-tox/tasks/main.yaml new file mode 100644 index 000000000..b2b7487eb --- /dev/null +++ b/roles/ensure-tox/tasks/main.yaml @@ -0,0 +1,2 @@ +- name: Ensure tox is installed + shell: type tox || pip install --user tox