Dmitriy Rabotyagov 7573636fb8 Initial commit to the role
This implements bare minimal functionality for the HTTPD role. It needs
to be extended according to specific use-cases with follow-up patches

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/938571
Change-Id: I7c0dd550c82cc11d2edba724b3f3030a41c0d354
2025-01-10 17:01:14 +00:00

1.2 KiB

OpenStack-Ansible HTTPD role

This role installs a PKI infrastructure for maintaining a Root CA and creating server certificates as required to enable secure communication between components in a deployment.

To clone or view the source code for this repository, visit the role repository for pki.

Sample configuration

httpd_extra_modules:
    - name: proxy
      state: present

httpd_vhosts:
    - name: test_http
      address: "127.0.1.1"
      document_root: /var/www/test
      directories:
        - path: "/var/www/cgi-bin"
          params:
            - Options Indexes FollowSymLinks MultiViews
      headers:
        - Header set X-Content-Type-Options "nosniff"
      params:
        - Options +FollowSymLinks
      port: 80
      server_name: test_http.test_server

Default variables

../../defaults/main.yml

Example playbook

../../examples/playbook.yml