upt playbook

This commit is contained in:
jaydee
2023-10-23 10:52:53 +02:00
parent 6a8b0336f4
commit 17de42280c
6 changed files with 35 additions and 30 deletions

View File

@ -1,4 +1,4 @@
- hosts: raspberry
- hosts: odroid_cluster
name: Install omv
become: true
tasks:
@ -65,7 +65,7 @@
ansible.builtin.lineinfile:
path: /etc/nslcd.conf
regexp: "^uri ldap.*"
line: "uri ldaps://ldap-server.loc/"
line: "uri ldap://192.168.77.106:389/"
- name: Reconfigure ldap base
@ -84,7 +84,7 @@
ansible.builtin.lineinfile:
path: /etc/nslcd.conf
regexp: "^#bindpw"
line: "bindpw l4c1j4yd33Du5lo"
line: "bindpw {{ ldap_admin_password }}"
# - name: Reconfigure ldap base
# ansible.builtin.lineinfile:
# path: /etc/nslcd.conf
@ -118,7 +118,11 @@
path: /etc/ssh/sshd_config
regexp: "^#AuthorizedKeysCommandUser *"
line: "AuthorizedKeysCommandUser root"
- name: Create a directory LDAP if it does not exist
ansible.builtin.file:
path: /etc/ldap/
state: directory
mode: '0755'
- name: Creating a file with content
copy:
dest: "/etc/ldap/ldap.conf"