
This role adds required IPA services given the server metadata and registers the base host as an ipa client. To be used when novajoin is not available, that is: * in the standalone node (to be used in TLS Everywhere CI), * when using pre-provisioned nodes. This commit also ensure we don't attempt to register a server/host that's already enrolled. This code requires the ansible-freeipa package to be installed. Co-Authored-By: Grzegorz Grasza <xek@redhat.com> Change-Id: Ie7fa5e1e83a3b015fd1e86c4666ace575e99833e
35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
---
|
|
# Copyright 2020 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: TripleO IPA Post
|
|
hosts: all
|
|
tasks:
|
|
|
|
- name: Make ipaserver-install log readable
|
|
file:
|
|
path: "/tmp/ipa-data/var/log/ipaserver-install.log"
|
|
mode: 0644
|
|
become: true
|
|
failed_when: false
|
|
|
|
- name: Collect ipaserver-install logs
|
|
synchronize:
|
|
dest: "{{ zuul.executor.log_root }}"
|
|
mode: pull
|
|
src: "/tmp/ipa-data/var/log/ipaserver-install.log"
|
|
verify_host: true
|
|
failed_when: false
|