Browse Source

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

nextgen
staticsafe 2 years ago
parent
commit
9aa40b3967
  1. 7
      ubuntu/firewall.yml
  2. 7
      ubuntu/icinga-client-install.yml
  3. 7
      ubuntu/ipset.yml
  4. 7
      ubuntu/pgbackrest-install.yml
  5. 72
      ubuntu/site.yml
  6. 7
      ubuntu/ssh-enforcement.yml

7
ubuntu/firewall.yml

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

7
ubuntu/icinga-client-install.yml

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

7
ubuntu/ipset.yml

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

7
ubuntu/pgbackrest-install.yml

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

72
ubuntu/site.yml

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

7
ubuntu/ssh-enforcement.yml

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