Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
baffa8df
Commit
baffa8df
authored
Aug 10, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
These fields are booleans.
parent
633abca9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
lib/ansible/callbacks.py
+2
-4
lib/ansible/color.py
+1
-1
lib/ansible/constants.py
+4
-2
No files found.
lib/ansible/callbacks.py
View file @
baffa8df
...
...
@@ -48,12 +48,10 @@ def load_callback_plugins():
callback_plugins
=
[
x
for
x
in
utils
.
plugins
.
callback_loader
.
all
()]
def
get_cowsay_info
():
if
constants
.
ANSIBLE_NOCOWS
is
not
None
:
if
constants
.
ANSIBLE_NOCOWS
:
return
(
None
,
None
)
cowsay
=
None
if
os
.
getenv
(
"ANSIBLE_NOCOWS"
)
is
not
None
:
cowsay
=
None
elif
os
.
path
.
exists
(
"/usr/bin/cowsay"
):
if
os
.
path
.
exists
(
"/usr/bin/cowsay"
):
cowsay
=
"/usr/bin/cowsay"
elif
os
.
path
.
exists
(
"/usr/games/cowsay"
):
cowsay
=
"/usr/games/cowsay"
...
...
lib/ansible/color.py
View file @
baffa8df
...
...
@@ -20,7 +20,7 @@ import sys
import
constants
ANSIBLE_COLOR
=
True
if
constants
.
ANSIBLE_NOCOLOR
is
not
None
:
if
constants
.
ANSIBLE_NOCOLOR
:
ANSIBLE_COLOR
=
False
elif
not
hasattr
(
sys
.
stdout
,
'isatty'
)
or
not
sys
.
stdout
.
isatty
():
ANSIBLE_COLOR
=
False
...
...
lib/ansible/constants.py
View file @
baffa8df
...
...
@@ -22,6 +22,8 @@ import ConfigParser
# copied from utils, avoid circular reference fun :)
def
mk_boolean
(
value
):
if
value
is
None
:
return
False
val
=
str
(
value
)
if
val
.
lower
()
in
[
"true"
,
"t"
,
"y"
,
"1"
,
"yes"
]:
return
True
...
...
@@ -125,8 +127,8 @@ DEFAULT_VARS_PLUGIN_PATH = get_config(p, DEFAULTS, 'vars_plugins', '
DEFAULT_FILTER_PLUGIN_PATH
=
get_config
(
p
,
DEFAULTS
,
'filter_plugins'
,
'ANSIBLE_FILTER_PLUGINS'
,
'/usr/share/ansible_plugins/filter_plugins'
)
DEFAULT_LOG_PATH
=
shell_expand_path
(
get_config
(
p
,
DEFAULTS
,
'log_path'
,
'ANSIBLE_LOG_PATH'
,
''
))
ANSIBLE_NOCOLOR
=
get_config
(
p
,
DEFAULTS
,
'nocolor'
,
'ANSIBLE_NOCOLOR'
,
None
)
ANSIBLE_NOCOWS
=
get_config
(
p
,
DEFAULTS
,
'nocows'
,
'ANSIBLE_NOCOWS'
,
None
)
ANSIBLE_NOCOLOR
=
get_config
(
p
,
DEFAULTS
,
'nocolor'
,
'ANSIBLE_NOCOLOR'
,
None
,
boolean
=
True
)
ANSIBLE_NOCOWS
=
get_config
(
p
,
DEFAULTS
,
'nocows'
,
'ANSIBLE_NOCOWS'
,
None
,
boolean
=
True
)
ANSIBLE_SSH_ARGS
=
get_config
(
p
,
'ssh_connection'
,
'ssh_args'
,
'ANSIBLE_SSH_ARGS'
,
None
)
PARAMIKO_RECORD_HOST_KEYS
=
get_config
(
p
,
'paramiko_connection'
,
'record_host_keys'
,
'ANSIBLE_PARAMIKO_RECORD_HOST_KEYS'
,
True
,
boolean
=
True
)
ZEROMQ_PORT
=
int
(
get_config
(
p
,
'fireball_connection'
,
'zeromq_port'
,
'ANSIBLE_ZEROMQ_PORT'
,
5099
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment