Clean up site.yml and move some other roles into their own yml files

This commit is contained in:
staticsafe 2020-08-22 16:21:24 -04:00
parent b2bd30101b
commit 9aa40b3967
6 changed files with 35 additions and 72 deletions

7
ubuntu/firewall.yml Normal file
View File

@ -0,0 +1,7 @@
---
- name: Deploy firewall rules
hosts: firewalled
user: root
roles:
- firewall-ruleset-deploy

View File

@ -0,0 +1,7 @@
---
- name: install Icinga 2 for client usage
hosts: icinga-clients
user: root
roles:
- icinga-client

7
ubuntu/ipset.yml Normal file
View File

@ -0,0 +1,7 @@
---
- name: Deploy ipset rulesets
hosts: ipset
user: root
roles:
- ipset-deploy

View File

@ -0,0 +1,7 @@
---
- name: Install pgbackrest
hosts: pgbackrest
user: root
roles:
- pgbackrest-install

View File

@ -9,75 +9,3 @@
- turn-off-motd-news
- apt-maintenance
- ssh-enforcement
- name: install PHP-FPM to required nodes
hosts: php
user: root
roles:
- php
- name: install MySQL server to required nodes
hosts: mysql-servers
user: root
roles:
- mysql
- name: install Icinga 2 for client usage
hosts: icinga-clients
user: root
roles:
- icinga-client
- name: install LEMP stack to required nodes
hosts: lemp-servers
user: root
roles:
- jdauphant.nginx
- php
- mysql
- name: Turn off MOTD news on Ubuntu 18.04 hosts
hosts: myubuntunodes
user: root
roles:
- turn-off-motd-news
- name: Set up unattended-upgrades for Ubuntu nodes
hosts: myubuntunodes
user: root
roles:
- apt-maintenance
- name: Deploy firewall rules
hosts: firewalled
user: root
roles:
- firewall-ruleset-deploy
- name: Install pgbackrest
hosts: pgbackrest
user: root
roles:
- pgbackrest-install
- name: Deploy ipset rulesets
hosts: ipset
user: root
roles:
- ipset-deploy
- name: SSH Enforcement
hosts: cloud
user: root
roles:
- ssh-enforcement

View File

@ -0,0 +1,7 @@
---
- name: SSH Enforcement
hosts: cloud
user: root
roles:
- ssh-enforcement