Update to 2023-10-13 15:00

This commit is contained in:
Daniel Berteaud
2023-10-13 15:00:23 +02:00
parent 5956dad4fd
commit e823a08de2
32 changed files with 163 additions and 142 deletions

View File

@@ -121,4 +121,9 @@ system_ansible_ssh_keys_options:
# If set, will restrict the ansible ssh keys to the configured IP.
# An empty list means no restriction
system_ansible_src_ip: []
# List of global env variable
# system_env:
# DOCKER_SCRIPTS_DIR: /data/docker/environments/qa/scripts
system_env: {}
...

View File

@@ -160,4 +160,8 @@
- name: Enable rc-local-shutdown service
service: name=rc-local-shutdown enabled=True
- name: Deploy system env profile script
template: src=system_env.sh.j2 dest=/etc/profile.d/system_env.sh mode=755
tags: system,env
...

View File

@@ -0,0 +1,5 @@
#!/bin/sh
{% for env in system_env.keys() | list %}
export {{ env }}={{ system_env[env] }}
{% endfor %}