master.yml 1.39 KB
Newer Older
1
---
2 3 4
  - name: Create users for each application.
    include: users.yml

5 6 7
  - name: Include common tasks.
    include: common-1.yml

Ioannis Tsafaras's avatar
Ioannis Tsafaras committed
8 9 10 11
#  - name: Generate ssh key for root.
#    shell: cat /dev/zero | ssh-keygen -q -N ""
#    args:
#      creates: /root/.ssh/id_rsa.pub
12

Ioannis Tsafaras's avatar
Ioannis Tsafaras committed
13 14
#  - name: Fetch id_rsa.pub file from root.
#    fetch: src=/root/.ssh/id_rsa.pub dest=/tmp/fetched/root_id_rsa.pub flat=yes
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32

  - name: Generate ssh key for hduser.
    shell: cat /dev/zero | ssh-keygen -q -N ""
    args:
      creates: /home/hduser/.ssh/id_rsa.pub

  - name: Fetch id_rsa.pub file from hduser user.
    fetch: src=/home/hduser/.ssh/id_rsa.pub dest=/tmp/fetched/hduser_id_rsa.pub flat=yes

  - name: Generate ssh key for flink user.
    shell: cat /dev/zero | ssh-keygen -q -N ""
    args:
      creates: /home/flink/.ssh/id_rsa.pub

  - name: Fetch id_rsa.pub file from hduser.
    fetch: src=/home/flink/.ssh/id_rsa.pub dest=/tmp/fetched/flink_id_rsa.pub flat=yes

  - name: Set up ssh config for root user.
33
    template: src=ssh-config.j2 dest=/root/.ssh/config owner=root group=root mode=664
34

35 36 37 38 39 40
  - name: Set up ssh config for hduser user.
    template: src=ssh-config.j2 dest=/home/hduser/.ssh/config owner=hduser group=lambda mode=600

  - name: Set up ssh config for flink user.
    template: src=ssh-config.j2 dest=/home/flink/.ssh/config owner=flink group=lambda mode=600

41 42
  - name: Include more common tasks.
    include: common-2.yml