ansible-role-nodepool/tasks/config.yaml
Paul Belanger e905a23676
Remove /var/log/nodepool/images folder
This is no longer used, as nodepool manually creates
/var/log/nodepool/builds.

Change-Id: Ib27b55cc6dfed7bc9dee702ab66abb3199a27830
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-06 10:14:59 -04:00

67 lines
2.4 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: yes
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: yes
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: yes
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: yes
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
- name: Install launcher logging configuration file.
become: yes
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