Add website as208585
This commit is contained in:
parent
bfbd5d469d
commit
3c526c3fa8
|
@ -15,6 +15,9 @@ all:
|
||||||
resolver_dns_server:
|
resolver_dns_server:
|
||||||
hosts:
|
hosts:
|
||||||
myFirstCentOSHost.example.org:
|
myFirstCentOSHost.example.org:
|
||||||
|
web_server:
|
||||||
|
hosts:
|
||||||
|
myFirstGentooHost.wirebrass.fr:
|
||||||
munin_server:
|
munin_server:
|
||||||
hosts:
|
hosts:
|
||||||
myFirstGentooHost.example.org:
|
myFirstGentooHost.example.org:
|
||||||
|
|
9
playbook_web_deploy.yml
Normal file
9
playbook_web_deploy.yml
Normal file
|
@ -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
Normal file
39
roles/web_as208585.net/README.md
Normal 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.
|
9
roles/web_as208585.net/defaults/main.yml
Normal file
9
roles/web_as208585.net/defaults/main.yml
Normal 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"
|
21
roles/web_as208585.net/files/as208585.net_index.html
Normal file
21
roles/web_as208585.net/files/as208585.net_index.html
Normal 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>
|
8
roles/web_as208585.net/handlers/main.yml
Normal file
8
roles/web_as208585.net/handlers/main.yml
Normal file
|
@ -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
Normal file
28
roles/web_as208585.net/meta/main.yml
Normal 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: []
|
8
roles/web_as208585.net/tasks/files.yml
Normal file
8
roles/web_as208585.net/tasks/files.yml
Normal 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'
|
8
roles/web_as208585.net/tasks/location.yml
Normal file
8
roles/web_as208585.net/tasks/location.yml
Normal file
|
@ -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
Normal file
5
roles/web_as208585.net/tasks/main.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
# Main tasks file for web_as208585.net
|
||||||
|
|
||||||
|
- import_tasks: location.yml
|
||||||
|
- import_tasks: files.yml
|
Loading…
Reference in a new issue