common-1.yml 711 Bytes
Newer Older
1
---
Ioannis Tsafaras's avatar
Ioannis Tsafaras committed
2 3 4 5

  - name: Copy hosts file.
    template: src=hosts.j2 dest=/etc/hosts backup=no owner=root group=lambda mode=0750

6 7 8 9 10 11 12
  - name: Upgrade packages.
    apt: upgrade=dist update_cache=yes

  - name: Install the latest Java 7.
    apt: name=openjdk-7-jdk state=latest install_recommends=no update_cache=yes

  - name: Copy environment file.
13
    template: src=environment.j2 dest=/etc/environment backup=no owner=root group=lambda mode=0750
14 15 16 17 18 19 20 21 22 23 24 25

  - name: Install sudo.
    apt: name=sudo state=latest

  - name: Add hduser to sudo group.
    user: name=hduser group=sudo

  - name: Add flink user to sudo group.
    user: name=flink group=sudo

  - name: Add kafka user to sudo group.
    user: name=kafka group=sudo