mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-23 20:39:26 +00:00
upt playbook
This commit is contained in:
parent
5334267773
commit
f4114f3ea5
@ -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
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user