noticket Changes from redeploy to new server

This commit is contained in:
Bastian de Byl
2020-10-07 22:46:13 -04:00
parent f2269a6671
commit 17dd1fc372
8 changed files with 44 additions and 17 deletions

View File

@@ -1,12 +1,21 @@
---
deps: [
cronie,
docker,
git,
fail2ban,
python-docker
git,
python-docker,
tmux,
weechat
]
fail2ban_jails: [
sshd.local,
nginx.local
]
services:
- docker
- fail2ban
- iptables
- nginx

View File

@@ -1,3 +1,4 @@
---
- import_tasks: deps.yml
- import_tasks: security.yml
- import_tasks: service.yml

View File

@@ -0,0 +1,9 @@
---
- name: ensure desired services are started and enabled
become: true
service:
name: "{{ item }}"
state: started
enabled: true
loop: "{{ services }}"
tags: security, service