This commit is contained in:
jaydee 2023-12-06 08:28:01 +01:00
parent 45734ddab0
commit e3496763a3
2 changed files with 3 additions and 1 deletions

View File

@ -81,6 +81,7 @@
path: /etc/nslcd.conf
regexp: "^#binddn"
line: "binddn cn=admin,dc=sectorq,dc=eu"
- name: Reconfigure nslcd bindpw
ansible.builtin.lineinfile:
path: /etc/nslcd.conf
@ -107,7 +108,7 @@
content: |
#!/usr/bin/bash
ldapsearch -x '(&(objectClass=ldapPublicKey)(cn='"$1"'))' 'sshPublicKey' | sed -n '/^ /{H;d};/sshPublicKey:/x;$g;s/\n *//g;s/sshPublicKey: //gp'
mode: '0755'
- name: Reconfigure sshd
ansible.builtin.lineinfile:
path: /etc/ssh/sshd_config

View File

@ -21,6 +21,7 @@
- mailu2-webmail-1
- HomeAssistant
- mosquitto-mosquitto-1
- gitlab
tasks:
# - name: Start mailu rasp
# uri: