forked from usegalaxy-no/infrastructure-playbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsystem.yml
59 lines (58 loc) · 1.45 KB
/
system.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
# first time: -e "ansible_user=centos"
- hosts: all #slurm galaxyserver, database, slurm, cvmfs proxy
become: true
vars_files:
- secret_group_vars/global.vault
- group_vars/global.yml
- group_vars/env.yml
- group_vars/telegraf.yml
pre_tasks:
- name: SELinux
selinux:
policy: targeted
state: permissive
tags:
- selinux
- name: Disable ipv6
sysctl:
name: net.ipv6.conf.eth0.disable_ipv6
value: '1'
state: present
- name: Install Dependencies
package:
name:
- 'mailx'
- 'vim'
- 'mlocate'
- name: set hostname
hostname:
name: "{{inventory_hostname}}"
tasks:
- name: Set timezone to Europe/Oslo
timezone:
name: Europe/Oslo
- name: Create users and groups
include: tasks/users_groups.yml
tags: 'users'
- name: Misc system tasks
include: tasks/system.yml
roles:
- role: geerlingguy.repo-epel
- role: reallyenglish.dhclient
when: "env != 'production'"
- role: nbigot.ansible-fail2ban
tags: fail2ban
- role: weareinteractive.sudo
tags: ['sudo']
- role: dj-wasabi.telegraf
tags: ['telegraf']
- role: idiv-biodiversity.postfix
#- hosts: localhost
# vars_files:
# - secret_group_vars/global.vault
# - group_vars/global.yml
# tasks:
# - name: Set up DNS entries
# include: tasks/domain.yml
# tags:
# - domain