replace unbound w/ kresd, add user (needs ansible users bugfix for pw)

This commit is contained in:
2024-11-22 18:43:35 +01:00
parent cfe6edae85
commit cd11f997b8
13 changed files with 89 additions and 20 deletions

View File

@@ -1,3 +1,4 @@
# pubnix sshd config
LogLevel INFO
LoginGraceTime 1m
PermitRootLogin no

View File

@@ -41,3 +41,11 @@
# FIXME: fails, /etc/resolv.conf in jail is wrong, no working nameserver in there or outgoing dns forbidden
- name: template jail
shell: "bastille template {{ role_name }} services/{{ role_name }}"
- name: Create users
loop: "{{ users }}"
ansible.builtin.user:
name: "{{ item.name }}"
shell: "{{ item.shell }}"
groups: "{{ item.groups }}"
rootdir: "{{ item.rootdir }}"

View File

@@ -6,9 +6,11 @@ SYSRC tmpsize=500m
SYSRC tmpmfs=AUTO
SYSRC clear_tmp_enable=YES
CMD rm /home
CMD if test -l /home; then rm /home; fi
CMD mkdir -p /home
FSTAB /home home nullfs rw 0 0
CP etc /
SERVICE sshd start