-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmisc.yml
47 lines (38 loc) · 1.12 KB
/
misc.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
---
- hosts: [ server ]
remote_user: "{{ remote_user }}"
become: yes
tasks:
- yum: pkg={{item}} state=present
with_items:
- net-tools
- fail2ban-systemd
- yum-cron
- scponly
- nfs-utils
- copy: src=fail2ban-jail.local dest=/etc/fail2ban/jail.local
notify:
- restart fail2ban
- service: name={{item}} state=started enabled=yes
with_items:
- fail2ban
- yum-cron
- file: path={{data_mount}}/{{remote_user}} state=directory owner={{remote_user}}
- name: Android backup android-sync user
user:
name: android-sync
shell: /bin/bash
password: "!"
createhome: yes
- name: Android backup directory
file: path={{data_mount}}/oandbackups state=directory owner=android-sync
- file: path=/srv/nfs/Lataukset state=directory
- name: Mount home server
mount:
path: /srv/nfs/Lataukset
fstype: nfs
state: present # or mounted
src: "{{nfs_host}}:/export/Lataukset"
handlers:
- name: restart fail2ban
service: name=fail2ban state=restarted