forked from thunix/ansible
configure bzflag
This commit is contained in:
parent
10688092f0
commit
90346e6453
|
@ -0,0 +1,18 @@
|
|||
# Configure bzflag
|
||||
---
|
||||
- name: Create home dirs for bzflag
|
||||
file:
|
||||
path: /var/lib/bzflag
|
||||
state: directory
|
||||
owner: bzflag
|
||||
group: root
|
||||
mode: 0770
|
||||
recurse: yes
|
||||
|
||||
#- name: Install znc user script
|
||||
# copy:
|
||||
# src: ../files/var/lib/znc/create-znc_account.sh
|
||||
## dest: /var/lib/znc/create-znc_account.sh
|
||||
# owner: znc
|
||||
## group: root
|
||||
# mode: 0770
|
|
@ -12,6 +12,7 @@
|
|||
- 25
|
||||
- 79
|
||||
- 1326
|
||||
- 5154
|
||||
|
||||
- name: Create UFW udp rules
|
||||
ufw:
|
||||
|
@ -21,6 +22,7 @@
|
|||
with_items:
|
||||
- "60000:61000"
|
||||
- 1326
|
||||
- 5154
|
||||
|
||||
- name: Create limits
|
||||
ufw:
|
||||
|
|
|
@ -54,3 +54,4 @@
|
|||
- include: users/bercik.yml
|
||||
- include: users/khuxkm.yml
|
||||
- include: users/z00t.yml
|
||||
- include: users/bzflag.yml
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
- name: add group bzflag
|
||||
group:
|
||||
name: bzflag
|
||||
system: yes
|
||||
state: present
|
||||
|
||||
- name: Add the user bzflag
|
||||
user:
|
||||
name: bzflag
|
||||
system: yes
|
||||
shell: /bin/false
|
||||
groups: bzflag
|
||||
create_home: yes
|
||||
home: /var/lib/bzflag
|
||||
state: present
|
Loading…
Reference in New Issue