Add website as208585

This commit is contained in:
Nemo 2020-09-19 19:41:17 +02:00
parent bfbd5d469d
commit 3c526c3fa8
10 changed files with 138 additions and 0 deletions

View file

@ -15,6 +15,9 @@ all:
resolver_dns_server:
hosts:
myFirstCentOSHost.example.org:
web_server:
hosts:
myFirstGentooHost.wirebrass.fr:
munin_server:
hosts:
myFirstGentooHost.example.org:

9
playbook_web_deploy.yml Normal file
View file

@ -0,0 +1,9 @@
---
- hosts: web_server
roles:
- geerlingguy.nginx
- geerlingguy.certbot
- hosts: web01.wirebrass.fr
roles:
- web_as208585.net

View file

@ -0,0 +1,39 @@
Ansible Role: web_as208585.net
=========
This role deploys as208585 webfiles on a GNU/Linux server.
Requirements
------------
None.
Role Variables
--------------
All variables and default values are defined in `defaults/main.yml` :
# Files location for as208585.net website
website_location: "/var/www/html/as208585.net"
Dependencies
------------
None.
Example Playbook
----------------
- hosts: web_server
roles:
- web_as208585.net
License
-------
BSD
Author Information
------------------
This role was created in 2020 by Nemo.

View file

@ -0,0 +1,9 @@
---
# defaults file for web_as208585.net
# Files location for as208585.net website
website_location: "/var/www/html/as208585.net"
# Web user
website_user: "www-data"
website_group: "www-data"

View file

@ -0,0 +1,21 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="icon" href="data:,">
<title>AS208585</title>
<meta name="description" content="The default page of AS208585 website">
<meta name="author" content="Nemo">
</head>
<body>
<h1 style="text-align: center;">AS208585</h1>
<h2>Links</h2>
<p>
<a href="https://www.peeringdb.com/net/20339">PeeringDB</a><br>
<a href="https://bgp.he.net/AS208585">BGP HE</a><br>
<a href="https://atlas.ripe.net/probes/6848/">RIPE Anchor</a><br>
</p>
</body>
</html>

View file

@ -0,0 +1,8 @@
---
# handlers file for web_as208585.net
- name: "reload nginx"
service:
name: "nginx"
enabled: yes
state: reloaded

View file

@ -0,0 +1,28 @@
galaxy_info:
author: nemo
description: as208585 webfiles for GNU/Linux.
company: Wirebrass
license: license (BSD)
min_ansible_version: 2.4
platforms:
- name: Debian
versions:
- stretch
- buster
- name: Gentoo
versions:
- all
- name: EL
versions:
- 7
galaxy_tags:
- server
- as
- web
- nginx
dependencies: []

View file

@ -0,0 +1,8 @@
---
- name: Website index.html page created
copy:
src: "as208585.net_index.html"
dest: "{{ website_location }}/index.html"
owner: "{{ website_user }}"
group: "{{ website_group }}"
mode: '0644'

View file

@ -0,0 +1,8 @@
---
- name: Website location created
file:
path: "{{ website_location }}"
state: directory
owner: "{{ website_user }}"
group: "{{ website_group }}"
mode: '0755'

View file

@ -0,0 +1,5 @@
---
# Main tasks file for web_as208585.net
- import_tasks: location.yml
- import_tasks: files.yml