Skip to content

Commit

Permalink
Merge pull request #73 from wazuh/Java-Repository-3.7-PR
Browse files Browse the repository at this point in the history
Improve of the Java repository
  • Loading branch information
AlfonsoRBJ authored Nov 2, 2018
2 parents 1bd21e3 + 9f4781c commit c9251be
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
13 changes: 6 additions & 7 deletions roles/elastic-stack/ansible-elasticsearch/tasks/Debian.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

---
- name: Debian/Ubuntu | Install apt-transport-https and ca-certificates
apt:
Expand All @@ -9,14 +8,14 @@
- apt-transport-https
- ca-certificates

- name: Debian/Ubuntu | Setting webupd8 repository
apt_repository:
repo: 'ppa:webupd8team/java'
codename: 'xenial'
update_cache: yes

- when: elasticsearch_install_java
block:
- name: Debian/Ubuntu | Setting webupd8 repository
apt_repository:
repo: 'ppa:webupd8team/java'
codename: 'xenial'
update_cache: yes

- name: Debian/Ubuntu | Accept Oracle Java 8 license
debconf:
name: oracle-java8-installer
Expand Down
10 changes: 5 additions & 5 deletions roles/elastic-stack/ansible-logstash/tasks/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
- apt-transport-https
- ca-certificates

- name: Debian/Ubuntu | Setting webupd8 repository
apt_repository:
repo: 'ppa:webupd8team/java'
codename: 'xenial'

- when: logstash_install_java
block:
- name: Debian/Ubuntu | Setting webupd8 repository
apt_repository:
repo: 'ppa:webupd8team/java'
codename: 'xenial'

- name: Debian/Ubuntu | Accept Oracle Java 8 license
debconf:
name: oracle-java8-installer
Expand Down

0 comments on commit c9251be

Please sign in to comment.