Add filter plugins
This commit is contained in:
parent
da2b565cf3
commit
10d300628d
@ -1,6 +1,7 @@
|
|||||||
[defaults]
|
[defaults]
|
||||||
retry_files_enabled = false
|
filter_plugins = /var/lib/dokku/plugins/available/ansible-deploy/plays/filter_plugins
|
||||||
interpreter_python = /usr/bin/python3
|
interpreter_python = /usr/bin/python3
|
||||||
|
retry_files_enabled = false
|
||||||
|
|
||||||
[ssh_connection]
|
[ssh_connection]
|
||||||
pipelining = true
|
pipelining = true
|
||||||
|
12
plays/filter_plugins/update_env.py
Normal file
12
plays/filter_plugins/update_env.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
"""Update config.env filter."""
|
||||||
|
|
||||||
|
|
||||||
|
def filter_update_env(config, env):
|
||||||
|
for key, val in env:
|
||||||
|
config["env"][key] = val
|
||||||
|
return config
|
||||||
|
|
||||||
|
|
||||||
|
class FilterModule(object):
|
||||||
|
def filters(self):
|
||||||
|
return {"update_env": filter_update_env}
|
Reference in New Issue
Block a user