Use Ansible collection for some roles, config updates

This commit is contained in:
Alexander Dietrich 2022-05-21 14:47:31 +02:00
commit c6802f992e
14 changed files with 21 additions and 70 deletions

View file

@ -1,5 +1,5 @@
error_page 502 /_error-pages/502.html;
error_page 502 /error-pages/502.html;
location ^~ /_error-pages {
location ^~ /error-pages {
root /var/www;
}

View file

@ -3,8 +3,8 @@
<head>
<meta charset="utf-8">
<title>Bad Gateway</title>
<link rel="stylesheet" href="/_error-pages/style.css">
<link rel="stylesheet" href="/error-pages/style.css">
</head>
<body>
<img src="/_error-pages/bad_gateway.png" alt="Bad Gateway Traffic Sign">
<img src="/error-pages/bad_gateway.png" alt="Bad Gateway Traffic Sign">
</body>

View file

@ -1,13 +1,13 @@
---
- name: create directory
file:
path: /var/www/_error-pages
path: /var/www/error-pages
state: directory
- name: copy error-pages
copy:
src: error-pages/
dest: /var/www/_error-pages/
dest: /var/www/error-pages/
- name: copy error-pages.conf
copy: