Browse Source

Add website as208585

master
Nemo 2 years ago
parent
commit
3c526c3fa8
  1. 3
      inventory_template/inventory.yml
  2. 9
      playbook_web_deploy.yml
  3. 39
      roles/web_as208585.net/README.md
  4. 9
      roles/web_as208585.net/defaults/main.yml
  5. 21
      roles/web_as208585.net/files/as208585.net_index.html
  6. 8
      roles/web_as208585.net/handlers/main.yml
  7. 28
      roles/web_as208585.net/meta/main.yml
  8. 8
      roles/web_as208585.net/tasks/files.yml
  9. 8
      roles/web_as208585.net/tasks/location.yml
  10. 5
      roles/web_as208585.net/tasks/main.yml

3
inventory_template/inventory.yml

@ -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

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

39
roles/web_as208585.net/README.md

@ -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.

9
roles/web_as208585.net/defaults/main.yml

@ -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"

21
roles/web_as208585.net/files/as208585.net_index.html

@ -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>

8
roles/web_as208585.net/handlers/main.yml

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

28
roles/web_as208585.net/meta/main.yml

@ -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: []

8
roles/web_as208585.net/tasks/files.yml

@ -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'

8
roles/web_as208585.net/tasks/location.yml

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

5
roles/web_as208585.net/tasks/main.yml

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