aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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