Skip to content

Commit

Permalink
Added flag to give choice of using PPA repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Itzstein committed Sep 4, 2015
1 parent 318b812 commit efe3d1b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -15,6 +15,6 @@ Java Playbook for Ansible

This playbook will install Java OpenJDK.

It uses the [ppa:openjdk-r/ppa](https://launchpad.net/~openjdk-r/+archive/ubuntu/ppa) repository for Ubuntu, to add backports of Java OpenJDK 8.
It optionally uses the [ppa:openjdk-r/ppa](https://launchpad.net/~openjdk-r/+archive/ubuntu/ppa) repository for Ubuntu, to add backports of Java, for example OpenJDK 8 on Ubuntu 14.04. Set `use_openjdk_ppa: true` to use the repo.

Support open source!
1 change: 1 addition & 0 deletions defaults/main.yml
Expand Up @@ -2,3 +2,4 @@
java_version: "7"
java_register_alternative: false
java_register_env: false
use_openjdk_ppa: false
2 changes: 1 addition & 1 deletion tasks/Debian.yml
@@ -1,6 +1,6 @@
- name: Add Ubuntu OpenJDK repo (for additional Java versions)
apt_repository: repo='ppa:openjdk-r/ppa' state=present
when: ansible_lsb.id == 'Ubuntu'
when: ansible_lsb.id == 'Ubuntu' and use_openjdk_ppa

- name: Install os packages
apt:
Expand Down

0 comments on commit efe3d1b

Please sign in to comment.