mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-30 11:15:42 +02:00
Update to 2023-10-13 15:00
This commit is contained in:
@@ -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: {}
|
||||
...
|
||||
|
@@ -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
|
||||
|
||||
...
|
||||
|
5
roles/common/templates/system_env.sh.j2
Normal file
5
roles/common/templates/system_env.sh.j2
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
{% for env in system_env.keys() | list %}
|
||||
export {{ env }}={{ system_env[env] }}
|
||||
{% endfor %}
|
Reference in New Issue
Block a user