upt playbook

This commit is contained in:
jaydee 2023-08-22 16:16:00 +02:00
parent 5334267773
commit f4114f3ea5
2 changed files with 28 additions and 2 deletions

View File

@ -99,7 +99,7 @@
ansible.builtin.service:
name: nslcd.service
state: restarted
- name: Creating a file with content
copy:
dest: "/usr/local/bin/fetchSSHKeysFromLDAP"
@ -118,4 +118,29 @@
path: /etc/ssh/sshd_config
regexp: "^#AuthorizedKeysCommandUser *"
line: "AuthorizedKeysCommandUser root"
- name: Creating a file with content
copy:
dest: "/etc/ldap/ldap.conf"
content: |
#
# LDAP Defaults
#
# See ldap.conf(5) for details
# This file should be world readable but not world writable.
BASE dc=sectorq,dc=eu
URI ldap://192.168.77.106:389
#SIZELIMIT 12
#TIMELIMIT 15
#DEREF never
# TLS certificates (needed for GnuTLS)
TLS_CACERT /etc/ssl/certs/ca-certificates.crt
- name: Restart sshd service
ansible.builtin.service:
name: sshd.service
state: restarted

View File

@ -21,6 +21,7 @@
- autofs
- ethtool
- python3-pip
- telegram-desktop
- name: Download gpg key for code
get_url:
url: https://packages.microsoft.com/keys/microsoft.asc