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
a4ffa094
Commit
a4ffa094
authored
Aug 23, 2015
by
Brian Coca
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11880 from bcoca/configurable_squash
made squashable with_ plugin list configurable
parents
e11d56c0
50efeb13
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
lib/ansible/constants.py
+5
-2
lib/ansible/executor/task_executor.py
+1
-1
No files found.
lib/ansible/constants.py
View file @
a4ffa094
...
...
@@ -177,7 +177,9 @@ DEFAULT_BECOME_FLAGS = get_config(p, 'privilege_escalation', 'become_flags'
DEFAULT_BECOME_ASK_PASS
=
get_config
(
p
,
'privilege_escalation'
,
'become_ask_pass'
,
'ANSIBLE_BECOME_ASK_PASS'
,
False
,
boolean
=
True
)
# Plugin paths
# PLUGINS
DEFAULT_SQUASH_ACTIONS
=
get_config
(
p
,
DEFAULTS
,
'squash_actions'
,
'ANSIBLE_SQUASH_ACTIONS'
,
"apt, yum, pkgng, zypper, dnf"
,
islist
=
True
)
# paths
DEFAULT_ACTION_PLUGIN_PATH
=
get_config
(
p
,
DEFAULTS
,
'action_plugins'
,
'ANSIBLE_ACTION_PLUGINS'
,
'~/.ansible/plugins/action_plugins:/usr/share/ansible_plugins/action_plugins'
)
DEFAULT_CACHE_PLUGIN_PATH
=
get_config
(
p
,
DEFAULTS
,
'cache_plugins'
,
'ANSIBLE_CACHE_PLUGINS'
,
'~/.ansible/plugins/cache_plugins:/usr/share/ansible_plugins/cache_plugins'
)
DEFAULT_CALLBACK_PLUGIN_PATH
=
get_config
(
p
,
DEFAULTS
,
'callback_plugins'
,
'ANSIBLE_CALLBACK_PLUGINS'
,
'~/.ansible/plugins/callback_plugins:/usr/share/ansible_plugins/callback_plugins'
)
...
...
@@ -187,7 +189,7 @@ DEFAULT_VARS_PLUGIN_PATH = get_config(p, DEFAULTS, 'vars_plugins', '
DEFAULT_FILTER_PLUGIN_PATH
=
get_config
(
p
,
DEFAULTS
,
'filter_plugins'
,
'ANSIBLE_FILTER_PLUGINS'
,
'~/.ansible/plugins/filter_plugins:/usr/share/ansible_plugins/filter_plugins'
)
DEFAULT_TEST_PLUGIN_PATH
=
get_config
(
p
,
DEFAULTS
,
'test_plugins'
,
'ANSIBLE_TEST_PLUGINS'
,
'~/.ansible/plugins/test_plugins:/usr/share/ansible_plugins/test_plugins'
)
DEFAULT_STDOUT_CALLBACK
=
get_config
(
p
,
DEFAULTS
,
'stdout_callback'
,
'ANSIBLE_STDOUT_CALLBACK'
,
'default'
)
# cache
CACHE_PLUGIN
=
get_config
(
p
,
DEFAULTS
,
'fact_caching'
,
'ANSIBLE_CACHE_PLUGIN'
,
'memory'
)
CACHE_PLUGIN_CONNECTION
=
get_config
(
p
,
DEFAULTS
,
'fact_caching_connection'
,
'ANSIBLE_CACHE_PLUGIN_CONNECTION'
,
None
)
CACHE_PLUGIN_PREFIX
=
get_config
(
p
,
DEFAULTS
,
'fact_caching_prefix'
,
'ANSIBLE_CACHE_PLUGIN_PREFIX'
,
'ansible_facts'
)
...
...
@@ -217,6 +219,7 @@ ANSIBLE_SSH_PIPELINING = get_config(p, 'ssh_connection', 'pipelining', '
ANSIBLE_SSH_RETRIES
=
get_config
(
p
,
'ssh_connection'
,
'retries'
,
'ANSIBLE_SSH_RETRIES'
,
0
,
integer
=
True
)
PARAMIKO_RECORD_HOST_KEYS
=
get_config
(
p
,
'paramiko_connection'
,
'record_host_keys'
,
'ANSIBLE_PARAMIKO_RECORD_HOST_KEYS'
,
True
,
boolean
=
True
)
# obsolete -- will be formally removed
ZEROMQ_PORT
=
get_config
(
p
,
'fireball_connection'
,
'zeromq_port'
,
'ANSIBLE_ZEROMQ_PORT'
,
5099
,
integer
=
True
)
ACCELERATE_PORT
=
get_config
(
p
,
'accelerate'
,
'accelerate_port'
,
'ACCELERATE_PORT'
,
5099
,
integer
=
True
)
...
...
lib/ansible/executor/task_executor.py
View file @
a4ffa094
...
...
@@ -49,7 +49,7 @@ class TaskExecutor:
# Modules that we optimize by squashing loop items into a single call to
# the module
SQUASH_ACTIONS
=
frozenset
(
(
'apt'
,
'yum'
,
'pkgng'
,
'zypper'
,
'dnf'
)
)
SQUASH_ACTIONS
=
frozenset
(
C
.
DEFAULT_SQUASH_ACTIONS
)
def
__init__
(
self
,
host
,
task
,
job_vars
,
play_context
,
new_stdin
,
loader
,
shared_loader_obj
):
self
.
_host
=
host
...
...
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