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

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

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

  - 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.
30
    template: src=ssh-config.j2 dest=/root/.ssh/config owner=root group=root mode=664
31

32 33 34 35 36
  - 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