diff options
author | sveneh <sven@ethdev.com> | 2015-01-14 23:10:33 +0800 |
---|---|---|
committer | sveneh <sven@ethdev.com> | 2015-01-14 23:10:33 +0800 |
commit | 74faa30af6349a7f87959dcf907092b98af735ec (patch) | |
tree | b6732f74791b40e269cf1c8eb68046b5295c8d35 /ansible/roles | |
parent | 762a93fec8d0782e1a36d6be1760b8ee3174b0f5 (diff) | |
download | dexon-74faa30af6349a7f87959dcf907092b98af735ec.tar dexon-74faa30af6349a7f87959dcf907092b98af735ec.tar.gz dexon-74faa30af6349a7f87959dcf907092b98af735ec.tar.bz2 dexon-74faa30af6349a7f87959dcf907092b98af735ec.tar.lz dexon-74faa30af6349a7f87959dcf907092b98af735ec.tar.xz dexon-74faa30af6349a7f87959dcf907092b98af735ec.tar.zst dexon-74faa30af6349a7f87959dcf907092b98af735ec.zip |
first version of automatic testrunner deployment. Uses ansible, vagrant
and virtualbox
Diffstat (limited to 'ansible/roles')
-rw-r--r-- | ansible/roles/common/tasks/main.yml | 27 | ||||
-rw-r--r-- | ansible/roles/testrunner/tasks/main.yml | 6 |
2 files changed, 33 insertions, 0 deletions
diff --git a/ansible/roles/common/tasks/main.yml b/ansible/roles/common/tasks/main.yml new file mode 100644 index 000000000..dcffc7b8b --- /dev/null +++ b/ansible/roles/common/tasks/main.yml @@ -0,0 +1,27 @@ +--- +- name: install docker + sudo: true + # install script from https://docs.docker.com/installation/ubuntulinux/ + shell: curl -sSL https://get.docker.com/ubuntu/ | sudo sh + +- name: install package dependencies + sudo: true + apt: name={{ item }} + with_items: + - python-pip + +- name: install python dependencies + sudo: true + pip: name=docker-py + + +- name: enable docker for standard user + sudo: true + # todo: how to logout after this command, otherwise won't be effective in this play + user: name=vagrant groups=docker append=yes + +- name: checkout test repo + git: + repo: https://github.com/sveneh/tests.git + version: develop + dest: git diff --git a/ansible/roles/testrunner/tasks/main.yml b/ansible/roles/testrunner/tasks/main.yml new file mode 100644 index 000000000..54f7fc5fb --- /dev/null +++ b/ansible/roles/testrunner/tasks/main.yml @@ -0,0 +1,6 @@ +--- +- name: update Go client + docker_image: + path: git/ansible/test-files/docker-go + name: go + state: build |