aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/common
diff options
context:
space:
mode:
authorsveneh <sven@ethdev.com>2015-01-26 05:52:38 +0800
committersveneh <sven@ethdev.com>2015-01-26 05:52:38 +0800
commit58ec49a34da85b71fe5f82b263986faa2b570eaa (patch)
tree6f1b72b2968a4f53795be2d095c1c68be894ae54 /ansible/roles/common
parent52e174b1f7fcd5bcc7fa1f134b9cd085a24ff642 (diff)
downloaddexon-tests-58ec49a34da85b71fe5f82b263986faa2b570eaa.tar
dexon-tests-58ec49a34da85b71fe5f82b263986faa2b570eaa.tar.gz
dexon-tests-58ec49a34da85b71fe5f82b263986faa2b570eaa.tar.bz2
dexon-tests-58ec49a34da85b71fe5f82b263986faa2b570eaa.tar.lz
dexon-tests-58ec49a34da85b71fe5f82b263986faa2b570eaa.tar.xz
dexon-tests-58ec49a34da85b71fe5f82b263986faa2b570eaa.tar.zst
dexon-tests-58ec49a34da85b71fe5f82b263986faa2b570eaa.zip
added EC2 provisioning, optimised docker for EC2, added python and
cppjit client (python not yet working)
Diffstat (limited to 'ansible/roles/common')
-rw-r--r--ansible/roles/common/handlers/main.yml4
-rw-r--r--ansible/roles/common/tasks/main.yml25
2 files changed, 9 insertions, 20 deletions
diff --git a/ansible/roles/common/handlers/main.yml b/ansible/roles/common/handlers/main.yml
new file mode 100644
index 000000000..767fc7ba6
--- /dev/null
+++ b/ansible/roles/common/handlers/main.yml
@@ -0,0 +1,4 @@
+---
+- name: restart sshd
+ sudo: true
+ service: name=ssh state=restarted
diff --git a/ansible/roles/common/tasks/main.yml b/ansible/roles/common/tasks/main.yml
index 3c483ce13..6c0c7a119 100644
--- a/ansible/roles/common/tasks/main.yml
+++ b/ansible/roles/common/tasks/main.yml
@@ -1,28 +1,13 @@
---
-- 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
- - htop
-
-- 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
+ - parallel
+ - htop
- name: checkout test repo
git:
- repo: https://github.com/sveneh/tests.git
- version: develop
- dest: git
+ repo: https://github.com/ethereum/tests.git
+ version: develop
+ dest: git