hammadrauf.apache2

Ansible ロール: Apache2

このロールは、Debian ベースの OS に Apache2 または HTTPD をインストールします。RHEL ベースの OS もサポートしています。また、バーチャルホストの作成、自己署名 SSL、CertBot による SSL など、一般的な Apache2 の設定も行うことができます。

要件

Ansible ユーザーが SUDO 権限を持ち、python3 がインストールされた任意の Debian または RHEL ベースの仮想マシンまたは物理サーバー。

ロール変数

完全なリストについては defaults/main.yml を参照してください。

次のファイルは、デフォルトのホームページ用のオプションファイルまたはテンプレートです。

ap2_template_index: ./some/path/index.html.j2
ap2_file_css: ./some/path/site_style.css
ap2_file_ico: ./some/path/favicon.ico

次のデータ構造は作業中です。実装予定 ...

ap2_virtualhosts:
  - directory: "/var/www/html"
    contextroot: "/"
    domainname: "www.abc.net"
    port80: true
    port443: true
    port80redirect: true
    ssl_enabled: true
    ssl_self_signed: false
    ssl_certbot: true

依存関係

なし

例 Playbook

    - hosts: servers
      roles:
         - role: hammadrauf.apache2

Molecule を使用したテスト

次のコマンドを使用して、Molecule/Ansible の外部で Podman インスタンスを起動します:

podman run -d --name debian12 --hostname debian12 -it docker.io/hammadrauf/dockerdeb12:latest sleep infinity & wait
podman run -d --name fedora40 --hostname fedora40 -it docker.io/hammadrauf/fedora40:latest
podman run -d --name ubuntu --hostname ubuntu -it docker.io/hammadrauf/ubuntunoble:latest sleep infinity & wait

ライセンス

MIT

著者情報

このロールは 2024 年 5 月 9 日に Hammad Rauf によって作成されました。

プロジェクトについて

Debian/RHEL installation of Apache2/Httpd and some basic configuration of Websites.

インストール
ansible-galaxy install hammadrauf.apache2
ライセンス
Unknown
ダウンロード
83
所有者