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

View File

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