This commit is contained in:
Christer Warén
2024-05-05 18:44:06 +03:00
parent f226606aa5
commit b26fb7d6ab
10 changed files with 94 additions and 71 deletions

View File

@ -2,4 +2,4 @@
echo -n "$CERTBOT_VALIDATION" > /root/nginx/html/.well-known/acme-challenge/$CERTBOT_TOKEN
mkdir -p /root/nginx/html/.well-known/acme-challenge
/opt/ansible/bin/ansible-pull -U ssh://git@github.com/MatteZ02/mpp-ansible --private-key ~/.ssh/id_rsa tasks.yml -t nginx &> /dev/null
/opt/ansible/bin/ansible-pull -U ssh://git@github.com/MatteZ02/mpp-infra --accept-host-key --private-key ~/.ssh/id_rsa --vault-password-file ~/.ansible/vault.yml tasks.yml -t nginx &> /dev/null

View File

@ -1,59 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ ansible_facts.fqdn }}</title>
<meta charset="UTF-8">
<meta name="robots" content="noindex">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
background-color: #333333;
width: 100vw;
height: 100vh;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
*, *:active, *:focus, *:hover, *:visited, *:link {
color: #ffffff;
font-family: sans-serif;
}
p {
margin-bottom: 0px;
margin-top: 0px;
}
.org {
font-size: xx-large;
}
.link {
margin-top: 10px;
}
.server {
margin-top: 50px;
}
.server * {
color: #555555;
}
</style>
</head>
<body>
<div>
<p class="org">Musix Org</p>
<p class="link"><a href="https://musix-org.com">Visit website</a></p>
<div class="server">
<p class="name">{{ ansible_facts.fqdn }}</p>
</div>
</div>
</body>
</html>