48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
---
|
|
# Copyright 2016, Comcast Corporation
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
- name: Create the Rally system group
|
|
group:
|
|
name: "{{ rally_system_group_name }}"
|
|
state: "present"
|
|
system: "yes"
|
|
tags:
|
|
- rally-group
|
|
|
|
- name: Create the Rally system user
|
|
user:
|
|
name: "{{ rally_system_user_name }}"
|
|
group: "{{ rally_system_group_name }}"
|
|
comment: "{{ rally_system_user_comment }}"
|
|
shell: "{{ rally_system_user_shell }}"
|
|
system: "yes"
|
|
createhome: "yes"
|
|
home: "{{ rally_system_user_home }}"
|
|
tags:
|
|
- rally-user
|
|
|
|
- name: Create Rally directories
|
|
file:
|
|
path: "{{ item.path }}"
|
|
state: "directory"
|
|
owner: "{{ rally_system_user_name }}"
|
|
group: "{{ rally_system_group_name }}"
|
|
mode: "0750"
|
|
with_items:
|
|
- path: "{{ rally_etc_directory }}"
|
|
- path: "{{ rally_system_user_home }}"
|
|
tags:
|
|
- rally-directories
|