moved ddns, partkeepr, hass to podman, selinux

This commit is contained in:
Bastian de Byl
2022-04-30 03:44:55 -04:00
parent b228012d5a
commit cb2001357f
61 changed files with 481 additions and 307 deletions

View File

@@ -1,12 +1,21 @@
---
deps: [cronie, docker, fail2ban, git, logrotate, python-docker, tmux, weechat]
deps:
[
cockpit-podman,
cronie,
docker,
fail2ban,
fail2ban-selinux,
git,
logrotate,
podman,
python-docker,
]
fail2ban_jails: [sshd.local, nginx.local]
services:
- cronie
- crond
- docker
- fail2ban
- iptables
- nginx
- systemd-timesyncd

View File

@@ -7,13 +7,13 @@ bantime = 1w
maxretry = 8
ignoreip = 127.0.0.1/32 192.168.1.0/24
[nginx-http-auth]
enabled = true
port = http,https
logpath = %(nginx_error_log)s
bantime = 2w
maxretry = 5
ignoreip = 127.0.0.1/32 192.168.1.0/24
#[nginx-http-auth]
#enabled = true
#port = http,https
#logpath = %(nginx_error_log)s
#bantime = 2w
#maxretry = 5
#ignoreip = 127.0.0.1/32 192.168.1.0/24
[nginx-botsearch]
enabled = true

View File

@@ -1,7 +1,7 @@
---
- name: install common dependencies
become: true
community.general.pacman:
ansible.builtin.package:
name: "{{ deps }}"
state: present
tags: deps

View File

@@ -2,3 +2,18 @@
- import_tasks: deps.yml
- import_tasks: security.yml
- import_tasks: service.yml
- name: create the docker group
become: true
ansible.builtin.group:
name: docker
state: present
tags: common
- name: add default user to docker group
become: true
ansible.builtin.user:
name: "{{ ansible_user }}"
groups: docker
append: true
tags: common