tripleo-ansible/tripleo_ansible/roles/tripleo_httpd_config/tasks/install.yml
Cédric Jeanneret 1cf5222756 New roles for apache/httpd management
Those roles will help removing puppetlabs-apache
module.

Change-Id: I6f5c5efc9861952a072f1234a00bc2dae49a9d31
2022-09-14 08:22:13 +02:00

41 lines
1.2 KiB
YAML

---
# Copyright 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.
# Note: it does NOT install any package. They are already in the containers.
# Here we mostly create the needed directory tree.
- name: Create directory tree
ansible.builtin.file:
path: "{{ item }}"
state: directory
owner: root
group: root
mode: 0755
setype: container_file_t
loop:
- "{{ tripleo_httpd_config_directory }}/conf"
- "{{ tripleo_httpd_config_directory }}/conf.d"
- name: Create empty mandatory files
ansible.builtin.file:
path: "{{ tripleo_httpd_config_directory }}/conf/{{ item }}.conf"
state: touch
owner: root
group: root
mode: 0644
loop:
- modules
- ports