diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2014-08-23 17:45:51 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2014-08-23 17:45:51 +0200 |
commit | 25616f8f88ed356c03075eb2f85e1803589b519d (patch) | |
tree | c64390dedee0405c1245a10ba4e86d55d6a1fbaa | |
parent | 5b1cc7e49adeb7c6060f04fda0a667e3e17809ab (diff) | |
download | fiken-ansible-25616f8f88ed356c03075eb2f85e1803589b519d.tar.gz fiken-ansible-25616f8f88ed356c03075eb2f85e1803589b519d.tar.bz2 fiken-ansible-25616f8f88ed356c03075eb2f85e1803589b519d.tar.xz fiken-ansible-25616f8f88ed356c03075eb2f85e1803589b519d.zip |
-rw-r--r-- | README.md | 7 | ||||
-rw-r--r-- | playbook.yml | 9 |
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 |