Cleanup files, add comments

This commit is contained in:
2020-06-12 00:35:55 -04:00
parent 1076427f84
commit a64ff73f1f
18 changed files with 35 additions and 170 deletions

View File

@@ -11,9 +11,11 @@ Playbooks
- nginx.yml - Playbook example for using nginx role
- fail2ban.yml - Playbook example for using fail2ban role
- postifx.yml - Playbook example for using postfix role
- bookstack-backup.yml - Playbook example for taking a backup of BookStack
- hexo-backup.yml - Playbook example for taking a backup of Hexo
- hexo-install.yml - Playbook example to install and deploy the Hexo site generator
Roles
- Basic ansible role created with ansible-galaxy command
- core - Role to configure a new host with basic authentication / package settings
- docker - Role to install docker, docker-compose, configure docker user group (Debian / Ubuntu)
- nginx - Role to install and configure a new nginx webserver on a host

View File

@@ -1,5 +1,5 @@
---
- hosts: plumbi
- hosts: nginx-server
become: yes
roles:
- fail2ban

View File

@@ -1,5 +1,5 @@
---
- hosts: hexo
- hosts: dev
become: yes
tasks:
- name: Backup Hexo files

View File

@@ -1,6 +1,6 @@
---
- name: Install Hexo static site generator
hosts: hexo
hosts: dev
become: yes
tasks:
- name: Update apt sources and install npm

View File

@@ -1,5 +1,5 @@
---
- hosts: plumbi
- hosts: nginx-server
become: yes
roles:
- nginx

View File

@@ -1,5 +1,5 @@
---
- hosts: core
- hosts: nginx-server
become: yes
tasks:
- name: Ensure package lists are up-to-date

View File

@@ -1,5 +1,5 @@
---
- hosts: bookstack
- hosts: docker-host
become: yes
tasks:
- name: Create backup directory if it doesn't exist

View File

@@ -1,5 +1,5 @@
---
- hosts: hexo
- hosts: dev
become: yes
tasks:
- name: Backup Hexo files

View File

@@ -1,6 +1,6 @@
---
- name: Install Hexo static site generator
hosts: hexo
hosts: dev
become: yes
tasks:
- name: Update apt sources and install npm

View File

@@ -1,5 +1,5 @@
---
- hosts: plumbi
- hosts: othergroup
become: yes
roles:
- postfix

View File

@@ -41,3 +41,16 @@ nginx
A simple role for installing and configuring nginx on a new Ubuntu host using Ansible. Supports templates for index.html and custom nginx.conf
postfix
------------
A simple role for installing and configuring the postfix MTA on a new Ubuntu host using Ansible. Supports templates for main.cf and custom sasl_passwd
fail2ban
------------
A simple role for installing and configuring fail2ban on a new Ubuntu host using Ansible. Supports templates for jail.local settings and provides a custom filter.d directory copy custom filters to the remote host.

View File

@@ -1,5 +1,5 @@
---
- hosts: core
- hosts: dev
become: yes
roles:
- core