mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-12 00:03:17 +02:00
Update to 2022-11-03 11:00
This commit is contained in:
parent
adcb5de4f1
commit
724cb5641c
@ -1,7 +1,7 @@
|
||||
---
|
||||
|
||||
# Version to deploy
|
||||
n8n_version: 0.197.1
|
||||
n8n_version: 0.200.0
|
||||
# Root directory where n8n will be installed
|
||||
n8n_root_dir: /opt/n8n
|
||||
# User account under which n8n will run
|
||||
|
@ -5,3 +5,7 @@
|
||||
name: "{{ (samba_role == 'dc' or samba_role == 'rodc') | ternary('samba','smb') }}"
|
||||
state: reloaded
|
||||
|
||||
- name: reload winbind
|
||||
service: name=winbind state=reloaded
|
||||
when: samba_role == 'member'
|
||||
|
||||
|
@ -85,7 +85,9 @@
|
||||
dest: /etc/samba/smb.conf
|
||||
- src: sysconfig.j2
|
||||
dest: /etc/sysconfig/samba
|
||||
notify: reload samba
|
||||
notify:
|
||||
- reload samba
|
||||
- reload winbind
|
||||
tags: samba
|
||||
|
||||
- name: Check if there's a shares.conf snippet
|
||||
|
@ -1,3 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
{% if samba_role in ['dc', 'rodc'] %}
|
||||
rm -rf /home/lbkp/samba
|
||||
{% else %}
|
||||
echo "Samba not running as a domain controller, no dump to remove"
|
||||
{% endif %}
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
{% if samba_role in ['dc', 'rodc'] %}
|
||||
LDB_MODULES_PATH=/usr/lib64/samba/ldb
|
||||
export LDB_MODULES_PATH
|
||||
|
||||
@ -20,3 +21,6 @@ for LDIF in $(find /var/lib/samba/private/ -type f -name \*.ldb); do
|
||||
done
|
||||
# Also take a more standard offline backup
|
||||
samba-tool domain backup offline --targetdir=/home/lbkp/samba/offline/
|
||||
{% else %}
|
||||
echo "Samba isn't running as a domain controller, nothing to backup"
|
||||
{% endif %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user