first
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{{ app_name }}</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{ app_name }}</h1>
|
||||
<p>Betriebssystem: {{ ansible_distribution }} {{ ansible_distribution_version }}</p>
|
||||
|
||||
<p>Installierte Pakete:</p>
|
||||
<ul>
|
||||
{% for pkg in packages %}
|
||||
<li>{{ pkg | upper }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<p>Port: {{ nginx_port }}</p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,21 @@
|
||||
# {{ ansible_managed }} <- von Ansible erzeugt, nicht manuell ändern!
|
||||
|
||||
user {{ nginx_user }};
|
||||
worker_processes auto;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
server {
|
||||
listen {{ nginx_port }};
|
||||
server_name {{ domain }};
|
||||
|
||||
root {{ web_root }};
|
||||
index index.html;
|
||||
|
||||
# Fact des Zielsystems wird hier aufgelöst:
|
||||
access_log /var/log/nginx/{{ ansible_hostname }}.access.log;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user