ansible-role-nodepool/tasks/config.yaml
Paul Belanger d9a53413cf Clean up punctuation
Change-Id: Id8cb719c8b0117724c6829fab7ed17e839adc4be
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-01-20 16:53:13 -05:00

69 lines
2.5 KiB
YAML

# Copyright 2015 Red Hat, Inc.
#
# 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 required directories
become: true
file:
group: "{{ nodepool_user_group }}"
owner: "{{ nodepool_user_name }}"
path: "{{ item }}"
state: directory
with_items:
- /etc/nodepool
- /opt/nodepool/images
- /opt/nodepool/tmp
- /var/log/nodepool
- name: Install nodepool configuration
become: true
template:
dest: "{{ nodepool_file_nodepool_yaml_dest }}"
group: "{{ nodepool_file_nodepool_yaml_group }}"
mode: "{{ nodepool_file_nodepool_yaml_mode }}"
owner: "{{nodepool_file_nodepool_yaml_owner }}"
src: "{{ nodepool_file_nodepool_yaml_src }}"
register: nodepool_file_nodepool_yaml
- name: Install nodepool secure configuration
become: true
template:
dest: "{{ nodepool_file_secure_conf_dest }}"
group: "{{ nodepool_file_secure_conf_group }}"
mode: "{{ nodepool_file_secure_conf_mode }}"
owner: "{{nodepool_file_secure_conf_owner }}"
src: "{{ nodepool_file_secure_conf_src }}"
register: nodepool_file_secure_conf
- name: Install builder logging configuration file
become: true
template:
dest: "{{ nodepool_file_builder_logging_conf_dest }}"
group: "{{ nodepool_file_builder_logging_conf_group }}"
mode: "{{ nodepool_file_builder_logging_conf_mode }}"
owner: "{{nodepool_file_builder_logging_conf_owner }}"
src: "{{ nodepool_file_builder_logging_conf_src }}"
register: nodepool_file_builder_logging_conf
when: nodepool_file_builder_logging_conf_manage
- name: Install launcher logging configuration file
become: true
template:
dest: "{{ nodepool_file_launcher_logging_conf_dest }}"
group: "{{ nodepool_file_launcher_logging_conf_group }}"
mode: "{{ nodepool_file_launcher_logging_conf_mode }}"
owner: "{{nodepool_file_launcher_logging_conf_owner }}"
src: "{{ nodepool_file_launcher_logging_conf_src }}"
register: nodepool_file_launcher_logging_conf
when: nodepool_file_launcher_logging_conf_manage