Commit de3f3d19 authored by efikalti's avatar efikalti

create separate user for every application

parent 1517c353
......@@ -10,4 +10,3 @@
when: "'slaves' in group_names"
tags:
- slaves
......@@ -8,6 +8,8 @@
- name: Set up ssh config.
template: src=ssh-config.j2 dest=/root/.ssh/config owner=root group=root mode=664
- name: Create users for each application.
include: users.yml
- name: Include more common tasks.
include: common-2.yml
......@@ -2,6 +2,8 @@
- name: Include common tasks.
include: common-1.yml
- name: Create users for each application.
include: users.yml
- name: Include more common tasks.
include: common-2.yml
---
# Example group command from Ansible Playbooks
- name: Create lambda group
group: name=lambda state=present
tags:
- users
- name: Create hduser user
user: name=hduser uid=2010 groups="lambda" shell=/bin/bash generate_ssh_key=yes
tags:
- users
- name: Create flink user
user: name=flink uid=2011 groups="lambda" shell=/bin/bash generate_ssh_key=yes
tags:
- users
- name: Create kafka user
user: name=kafka uid=2012 groups="lambda" shell=/bin/bash generate_ssh_key=yes
tags:
- users
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment