Split ensuring tox is installed into a role

We do this in a few places, make it reusable.

Change-Id: Ied118508dc4b8e4cbfca88b5636730664dbe10b4
This commit is contained in:
Monty Taylor 2017-08-22 15:19:05 -04:00
parent 0f7b75094a
commit dafe1bfcb4
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,3 @@
- hosts: all
tasks:
- name: Ensure tox is installed
shell: type tox || pip install --user tox
roles:
- ensure-tox

View File

@ -0,0 +1,2 @@
- name: Ensure tox is installed
shell: type tox || pip install --user tox