aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2014-08-23 17:45:51 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2014-08-23 17:45:51 +0200
commit25616f8f88ed356c03075eb2f85e1803589b519d (patch)
treec64390dedee0405c1245a10ba4e86d55d6a1fbaa
parent5b1cc7e49adeb7c6060f04fda0a667e3e17809ab (diff)
downloadfiken-ansible-master.tar.gz
fiken-ansible-master.tar.bz2
fiken-ansible-master.tar.xz
fiken-ansible-master.zip
o Adding Java and Newrelic repositories.HEADmaster
-rw-r--r--README.md7
-rw-r--r--playbook.yml9
2 files changed, 16 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..066f839
--- /dev/null
+++ b/README.md
@@ -0,0 +1,7 @@
+Kjør playbook på alle maskiner:
+
+ ./ansible-playbook playbook.yml
+
+Kjør playbook på alle arbeidsmaskiner:
+
+ ./ansible-playbook --limit arb playbook.yml
diff --git a/playbook.yml b/playbook.yml
index 2db2c68..17e50da 100644
--- a/playbook.yml
+++ b/playbook.yml
@@ -14,3 +14,12 @@
dest=/opt/fiken/opt/appmgr
accept_hostkey=true
- copy: src=files/bin/ dest=/opt/fiken/bin force=yes
+
+- hosts: arb
+ gather_facts: false
+ sudo: yes
+
+ tasks:
+ - apt_repository: repo="deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" state=present
+ - apt_repository: repo="deb http://apt.newrelic.com/debian/ newrelic non-free" state=present
+ - apt: name=oracle-java8-installer