feat: add initial setup for pearl server
This commit is contained in:
parent
2ae759025c
commit
824d7b8a12
14 changed files with 329 additions and 34 deletions
60
roles/any.tools.default/tasks/main.yml
Normal file
60
roles/any.tools.default/tasks/main.yml
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
---
|
||||
- name: Ensure common packages are installed
|
||||
apt:
|
||||
name:
|
||||
# Needed for handling GPG keys for repositories
|
||||
- debian-keyring
|
||||
- debian-archive-keyring
|
||||
- apt-transport-https
|
||||
- ca-certificates
|
||||
- lsb-release
|
||||
- gnupg
|
||||
|
||||
# Easy to edit files
|
||||
- vim
|
||||
- tmux
|
||||
- htop
|
||||
|
||||
# Spam prevention
|
||||
- fail2ban
|
||||
|
||||
# Disk monitoring
|
||||
- smartmontools
|
||||
|
||||
# Periodic tasks
|
||||
- cron
|
||||
|
||||
# General compression tools
|
||||
- bzip2
|
||||
- zip
|
||||
|
||||
# Working with BTRFS file systems
|
||||
- btrfs-progs
|
||||
|
||||
- curl
|
||||
state: present
|
||||
|
||||
- name: Ensure cron service is enabled
|
||||
service:
|
||||
name: cron
|
||||
state: started
|
||||
enabled: true
|
||||
|
||||
- name: Ensure fail2ban service is enabled
|
||||
service:
|
||||
name: fail2ban
|
||||
state: started
|
||||
enabled: true
|
||||
|
||||
- name: Ensure Vim config is present
|
||||
get_url:
|
||||
url: 'https://r8r.be/vim'
|
||||
dest: '{{ item.dest }}'
|
||||
owner: "{{ item.user }}"
|
||||
group: "{{ item.user }}"
|
||||
mode: '644'
|
||||
with_items:
|
||||
- user: debian
|
||||
dest: "/home/debian/.vimrc"
|
||||
- user: root
|
||||
dest: "/root/.vimrc"
|
||||
Loading…
Add table
Add a link
Reference in a new issue