common-1.yml 738 Bytes
Newer Older
1
---
2 3

  - name: Copy hosts file.
Ioannis Tsafaras's avatar
Ioannis Tsafaras committed
4
    template: src=hosts.j2 dest=/etc/hosts backup=no owner=root group=lambda mode=0750
5

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

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

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

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

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

22 23
  - name: Add flink user to sudo group.
    user: name=flink group=sudo
24

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