83ba5e32fd
This patch migrates the new role addition playbook into a proper Ansible role with proper molecule tests. This new role will be responsible for creating a new validation. It is good to mention that the process won't change and it will be fully transparent for the user. To create a new role in tripleo-validations: $ cd tripleo-validations/ $ export ANSIBLE_ROLES_PATH="${PWD}/roles" $ ansible-playbook -i localhost, role-addition.yml -e validation_init_role_name=${NEWROLENAME} Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com> Change-Id: I219f4054e6b854306719b9c91a0738c526f07666
23 lines
747 B
YAML
23 lines
747 B
YAML
---
|
|
# Copyright 2021 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: Create a new role for TripleO-Validations
|
|
hosts: localhost
|
|
connection: local
|
|
gather_facts: false
|
|
roles:
|
|
- validation_init
|