Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

Commit

Permalink
Restart kafka service configured
Browse files Browse the repository at this point in the history
  • Loading branch information
Sascha4MSX committed Jan 8, 2017
1 parent 857924e commit d2928d1
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions provision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
apt_repository: repo='ppa:webupd8team/java' state=present

- name: Java | Set licence selected
become_user: root
shell: /bin/echo debconf shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
sudo: yes

- name: Java | Set licence seen
become_user: root
shell: /bin/echo debconf shared/accepted-oracle-license-v1-1 seen true | /usr/bin/debconf-set-selections
sudo: yes

- name: Java | Install
become_user: root
apt: name=oracle-java8-installer state=latest update-cache=yes force=yes
sudo: yes

# Kafka
- name: Kafka | Set internal variable kafka_name
Expand Down Expand Up @@ -65,5 +65,11 @@
- name: Kafka | Configure autostart
file:
src: /etc/init.d/kafka
dest: /etc/rc3.d/S99kafka
dest: /etc/rc2.d/S99kafka
state: link

- name: Kafka | Service
service:
name: kafka
enabled: yes
state: reloaded

0 comments on commit d2928d1

Please sign in to comment.