mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-22 21:23:23 +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
|
# Version to deploy
|
||||||
n8n_version: 0.197.1
|
n8n_version: 0.200.0
|
||||||
# Root directory where n8n will be installed
|
# Root directory where n8n will be installed
|
||||||
n8n_root_dir: /opt/n8n
|
n8n_root_dir: /opt/n8n
|
||||||
# User account under which n8n will run
|
# User account under which n8n will run
|
||||||
|
@ -5,3 +5,7 @@
|
|||||||
name: "{{ (samba_role == 'dc' or samba_role == 'rodc') | ternary('samba','smb') }}"
|
name: "{{ (samba_role == 'dc' or samba_role == 'rodc') | ternary('samba','smb') }}"
|
||||||
state: reloaded
|
state: reloaded
|
||||||
|
|
||||||
|
- name: reload winbind
|
||||||
|
service: name=winbind state=reloaded
|
||||||
|
when: samba_role == 'member'
|
||||||
|
|
||||||
|
@ -85,7 +85,9 @@
|
|||||||
dest: /etc/samba/smb.conf
|
dest: /etc/samba/smb.conf
|
||||||
- src: sysconfig.j2
|
- src: sysconfig.j2
|
||||||
dest: /etc/sysconfig/samba
|
dest: /etc/sysconfig/samba
|
||||||
notify: reload samba
|
notify:
|
||||||
|
- reload samba
|
||||||
|
- reload winbind
|
||||||
tags: samba
|
tags: samba
|
||||||
|
|
||||||
- name: Check if there's a shares.conf snippet
|
- name: Check if there's a shares.conf snippet
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -eo pipefail
|
||||||
|
|
||||||
|
{% if samba_role in ['dc', 'rodc'] %}
|
||||||
rm -rf /home/lbkp/samba
|
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
|
set -eo pipefail
|
||||||
|
|
||||||
|
{% if samba_role in ['dc', 'rodc'] %}
|
||||||
LDB_MODULES_PATH=/usr/lib64/samba/ldb
|
LDB_MODULES_PATH=/usr/lib64/samba/ldb
|
||||||
export LDB_MODULES_PATH
|
export LDB_MODULES_PATH
|
||||||
|
|
||||||
@ -20,3 +21,6 @@ for LDIF in $(find /var/lib/samba/private/ -type f -name \*.ldb); do
|
|||||||
done
|
done
|
||||||
# Also take a more standard offline backup
|
# Also take a more standard offline backup
|
||||||
samba-tool domain backup offline --targetdir=/home/lbkp/samba/offline/
|
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