File: ara_env.py

package info (click to toggle)
python-mitogen 0.3.26-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,456 kB
  • sloc: python: 22,134; sh: 183; makefile: 74; perl: 19; ansic: 18
file content (28 lines) | stat: -rwxr-xr-x 593 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env python

"""
Print shell environment exports adding ARA plugins to the list of plugins
from ansible.cfg in the CWD.
"""

import os

import ara.setup
import ansible.constants as C

os.chdir(os.path.dirname(__file__))

print('export ANSIBLE_ACTION_PLUGINS=%s:%s' % (
    ':'.join(C.DEFAULT_ACTION_PLUGIN_PATH),
    ara.setup.action_plugins,
))

print('export ANSIBLE_CALLBACK_PLUGINS=%s:%s' % (
    ':'.join(C.DEFAULT_CALLBACK_PLUGIN_PATH),
    ara.setup.callback_plugins,
))

print('export ANSIBLE_LIBRARY=%s:%s' % (
    ':'.join(C.DEFAULT_MODULE_PATH),
    ara.setup.library,
))