38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
---
|
|
# Copyright 2019 Red Hat, Inc.
|
|
# All Rights Reserved.
|
|
#
|
|
# 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: 'Install tripleo-validations package'
|
|
package:
|
|
name: 'openstack-tripleo-validations'
|
|
state: installed
|
|
|
|
- name: Set group name fact
|
|
set_fact:
|
|
validations_group_name: "{{ lookup('env', 'SUDO_USER') | default(ansible_user_id, true) }}"
|
|
|
|
- name: Ensure 'validations_group_name' exists
|
|
group:
|
|
name: "{{ validations_group_name }}"
|
|
state: present
|
|
|
|
- name: 'Create validations logging directory'
|
|
file:
|
|
path: '/var/log/validations'
|
|
state: directory
|
|
owner: 'root'
|
|
group: "{{ validations_group_name }}"
|
|
mode: '2770'
|