initial commit for site setup
All checks were successful
dreamfall/mcmillian.us/pipeline/head This commit looks good
All checks were successful
dreamfall/mcmillian.us/pipeline/head This commit looks good
This commit is contained in:
commit
a982e2c5f2
5 changed files with 133 additions and 0 deletions
14
Jenkinsfile
vendored
Normal file
14
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
pipeline {
|
||||
agent { label "ansible" }
|
||||
stages {
|
||||
stage('Execute playbook') {
|
||||
steps {
|
||||
ansiblePlaybook(
|
||||
playbook: 'main.yaml',
|
||||
inventory: 'inventory.yaml',
|
||||
credentialsId: 'onedrop-vetinari'
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
13
html/index.html
Normal file
13
html/index.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
<title>mcmillian.us</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><a href="https://morgan.mcmillian.dev">morgan.mcmillian.dev</a></p>
|
||||
</body>
|
||||
</html>
|
82
html/style.css
Normal file
82
html/style.css
Normal file
|
@ -0,0 +1,82 @@
|
|||
:root {
|
||||
--bg: #ffffff;
|
||||
--fg: #171a1f;
|
||||
--link: #004cb8;
|
||||
--active: #006aff;
|
||||
--pre: #e9ecef;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
background-color: var(--bg);
|
||||
color: var(--fg);
|
||||
padding: 2rem 1.25rem;
|
||||
line-height: 1.5;
|
||||
max-width: 600px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
header {
|
||||
margin-bottom: 1rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
font-size: 1.2rem;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
margin-right: 1rem;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--link);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: var(--active);
|
||||
}
|
||||
|
||||
main h1 {
|
||||
font-size: 1.6rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.35rem;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
ul {
|
||||
padding: 0;
|
||||
list-style: None;
|
||||
}
|
||||
|
||||
pre {
|
||||
display: block;
|
||||
padding: .25rem;
|
||||
margin: .25rem 0;
|
||||
overflow-x: auto;
|
||||
font-size: 1.2em;
|
||||
background-color: var(--pre);
|
||||
}
|
||||
|
||||
footer {
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--bg: #222222;
|
||||
--fg: #efefef;
|
||||
--link: #aaaaaa;
|
||||
--active: #dddddd;
|
||||
--pre: #555555;
|
||||
}
|
||||
}
|
5
inventory.yaml
Normal file
5
inventory.yaml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
nodes:
|
||||
hosts:
|
||||
vetinari:
|
||||
ansible_host: vetinari.dreamfall.space
|
19
main.yaml
Normal file
19
main.yaml
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
- name: deploy mcmillian.dev static site
|
||||
hosts: vetinari
|
||||
vars:
|
||||
html_location: /var/www/html/mcmillian.us
|
||||
|
||||
tasks:
|
||||
- name: ping host
|
||||
ansible.builtin.ping:
|
||||
|
||||
- name: setup location
|
||||
ansible.builtin.file:
|
||||
path: "{{ html_location }}"
|
||||
state: directory
|
||||
|
||||
- name: sync html directory
|
||||
ansible.posix.synchronize:
|
||||
src: html/
|
||||
dest: "{{ html_location }}/"
|
Loading…
Reference in a new issue