Fixed remaining syntax errors and added example var files
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
@@ -2,4 +2,5 @@
|
||||
sshport: 22
|
||||
openports_list:
|
||||
- 22
|
||||
admin_mail: admin@example.com
|
||||
#blacklist_ip_list:
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
---
|
||||
- name: ensure apticron packages are installed
|
||||
apt:
|
||||
pkg: "{{ packages }}"
|
||||
name: apticron
|
||||
state: latest
|
||||
update_cache: yes
|
||||
cache_valid_time: 600
|
||||
vars:
|
||||
packages:
|
||||
- apticron
|
||||
|
||||
- name: configure apticron
|
||||
template:
|
||||
@@ -16,8 +13,3 @@
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
vars_prompt:
|
||||
- name: admin_mail
|
||||
prompt: "Mail of server admin"
|
||||
private: no
|
||||
|
||||
|
||||
@@ -1,17 +1,7 @@
|
||||
---
|
||||
- include: apt.yml
|
||||
tags:
|
||||
- apt
|
||||
- include: apticron.yml
|
||||
tags:
|
||||
- apticron
|
||||
- include: disk-check.yml
|
||||
tags:
|
||||
- disk
|
||||
- include: ufw.yml
|
||||
tags:
|
||||
- firewall
|
||||
- include: fail2ban.yml
|
||||
tags:
|
||||
- firewall
|
||||
- include: tools.yml
|
||||
|
||||
Reference in New Issue
Block a user