-
Notifications
You must be signed in to change notification settings - Fork 96
/
incoming.yml
72 lines (71 loc) · 2.14 KB
/
incoming.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
- name: Incoming
hosts: incoming
become: true
vars:
hostname: incoming.galaxyproject.eu
proftpd_modules_config_file: /etc/proftpd/modules.conf
vars_files:
- secret_group_vars/all.yml
- mounts/mountpoints.yml
- mounts/dest/all.yml
collections:
- devsec.hardening
pre_tasks:
- name: Set timezone to Europe/Berlin
community.general.timezone:
name: Europe/Berlin
- name: Install Dependencies
package:
name: ['postgresql', 'proftpd-utils']
- name: Configure SELinux
ansible.posix.seboolean:
name: "{{ item }}"
state: true
persistent: true
loop:
- ftpd_full_access
- ftpd_connect_db
- ftpd_use_passive_mode
- name: Disable firewalld service
ansible.builtin.service:
name: firewalld
enabled: false
state: stopped
post_tasks:
- name: Replace sql
ansible.builtin.replace:
path: /etc/proftpd.conf.d/10_galaxy_auth.conf
regexp: 'galaxy_user'
replace: "galaxy.galaxy_user"
notify:
- reload proftpd
- name: Enable Dynamic ban lists
ansible.builtin.lineinfile:
path: /etc/sysconfig/proftpd
regexp: '^PROFTPD_OPTIONS='
line: PROFTPD_OPTIONS="-DDYNAMIC_BAN_LISTS"
notify:
- reload proftpd
roles:
## Starting configuration of the operating system
- role: usegalaxy_eu.handy.os_setup
vars:
enable_hostname: true
enable_powertools: true # geerlingguy.repo-epel role doesn't enable PowerTools repository
enable_remap_user: true
enable_install_software: true # Some extra admin tools (*top, vim, etc)
- geerlingguy.repo-epel # Install EPEL repository
- usegalaxy-eu.autoupdates # keep all of our packages up to date
- influxdata.chrony # Keep our time in sync.
- usegalaxy-eu.dynmotd
## Filesystems
- usegalaxy-eu.autofs # Setup the mount points which will be needed later
# User
- usegalaxy-eu.create-user
# Services
- galaxyproject.nginx
- galaxyproject.proftpd
- dj-wasabi.telegraf
- os_hardening
- ssh_hardening