mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 00:05:44 +02:00
Update to 2023-10-13 15:00
This commit is contained in:
3
roles/ldap2pg/templates/ldap2pg.env.j2
Normal file
3
roles/ldap2pg/templates/ldap2pg.env.j2
Normal file
@@ -0,0 +1,3 @@
|
||||
{% for env in ldap2pg_env.keys() | list %}
|
||||
{{ env }}={{ ldap2pg_env[env] }}
|
||||
{% endfor %}
|
@@ -4,7 +4,8 @@ Description=Sync postgres role from LDAP
|
||||
[Service]
|
||||
Type=oneshot
|
||||
PrivateTmp=yes
|
||||
EnvironmentFile=/etc/sysconfig/ldap2pg
|
||||
User={{ ldap2pg_user }}
|
||||
Group={{ ldap2pg_user }}
|
||||
ExecStart=/bin/ldap2pg -c /etc/ldap2pg.yml --{{ ldap2pg_dry_mode | ternary('dry', 'real') }}
|
||||
ExecStart=/usr/local/bin/ldap2pg -c /etc/ldap2pg.yml {{ ldap2pg_dry_mode | ternary('', '--real') }}
|
||||
TimeoutSec=30m
|
||||
|
Reference in New Issue
Block a user