This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py | |
index f0de427..4d2bd66 100644 | |
--- a/lib/ansible/runner/__init__.py | |
+++ b/lib/ansible/runner/__init__.py | |
@@ -1196,8 +1196,16 @@ class Runner(object): | |
''' takes a remote path and performs tilde expansion on the remote host ''' | |
if not path.startswith('~'): | |
return path | |
+ | |
split_path = path.split(os.path.sep, 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git cherry -v release1.8.1 devel | |
+ 7f9305b24e63b411a00a2e036c2f8a694d7a327b files.stat: Expose path in returned result | |
+ e26cbb6acec888601bd3446fe4db03f376d904b1 Added support of returning owner's group name in stat module | |
+ 29d211e7ab74300e9f96bced8e14fcb038eb7b43 service cleanup | |
- 4a3d7473fdc8d7c090c93d04c7bc3defc83147d3 Fix syntax error | |
- c77ab67274600aff72b0d10eebcd5b7b8c32b0c5 Fix user_add in postgresql_user | |
- 06f1c1a97ec40aa78b0d413819ec6514f5c3ff88 Fix user_alter in postgresql_user | |
- 41559311d8e330d369c764f42c0e0396f626f177 Fix cornercase tracebaxk when detecting whether submodules changed | |
- 7dd2859f9b13e9df3baa9f2ef947e3630a6e7dbc Add a bare grant to the list of allowed privileges | |
- 2a794fa77693a58ed0c2585d3f70f686c38dbe93 Fix for single role_attr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py | |
index 4d2bd66..76ce641 100644 | |
--- a/lib/ansible/runner/__init__.py | |
+++ b/lib/ansible/runner/__init__.py | |
@@ -1223,7 +1223,11 @@ class Runner(object): | |
def _remote_checksum(self, conn, tmp, path, inject): | |
''' takes a remote checksum and returns 1 if no file ''' | |
- python_interp = inject['hostvars'][inject['inventory_hostname']].get('ansible_python_interpreter', 'python') | |
+ import q ; q.q(repr(inject)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: rhel7 | |
tasks: | |
- name: unarchive as a local_action | |
localaction: unarchive dest=/var/tmp/mine src=/var/tmp/file.tar.gz | |
register: results | |
- debug: var=results |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== normal user === | |
TASK: [test_conditionals | debug var=cond_bad_attribute] ********************** | |
ok: [testhost] => { | |
"cond_bad_attribute": { | |
"bar": "a" | |
} | |
} | |
TASK: [test_conditionals | debug var=cond_bad_attribute.results] ************** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: assert the task was skipped | |
assert: | |
that: | |
- "result.results|length == 1" | |
- "'skipped' in result.results[0]" | |
- "result.results[0].skipped == True" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -up q-2.5/q.py.bak q-2.5/q.py | |
--- q-2.5/q.py.bak 2014-12-01 19:37:24.000000000 -0800 | |
+++ q-2.5/q.py 2014-12-05 10:23:52.556544396 -0800 | |
@@ -66,7 +66,7 @@ else: | |
class Q(object): | |
__doc__ = __doc__ # from the module's __doc__ above | |
- import ast, code, inspect, os, pydoc, sys, random, re, time | |
+ import ast, code, inspect, os, pydoc, sys, random, re, time, pprint | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: q-2.5/q.py | |
=================================================================== | |
--- q-2.5.orig/q.py | |
+++ q-2.5/q.py | |
@@ -66,7 +66,7 @@ else: | |
class Q(object): | |
__doc__ = __doc__ # from the module's __doc__ above | |
- import ast, code, inspect, os, pydoc, sys, random, re, time, pprint | |
+ import ast, code, inspect, functools, os, pydoc, sys, random, re, time, pprint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ python worker.py *[v2_executor_and_inventory] (14:45:12) | |
25577 1418942712.62246: starting | |
25577 1418942712.62325: loading inventory | |
there are 2794 hosts to loop over | |
25577 1418942713.19419: done loading inventory | |
25577 1418942713.19424: queuing 127.0.0.1 0 | |
Traceback (most recent call last): | |
File "worker.py", line 164, in <module> | |
t = Task().load(dict(name="task %d" % (i,), ping="")) | |
File "/srv/ansible/jimi-ansible/v2/ansible/playbook/task.py", line 136, in load |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lib/ansible/module_utils/facts.py:get_distribution_facts() | |
elif name == 'Solaris': | |
data = get_file_content(path).split('\n')[0] | |
if 'Solaris' in data: | |
ora_prefix = '' | |
if 'Oracle Solaris' in data: | |
data = data.replace('Oracle ','') | |
ora_prefix = 'Oracle ' | |
self.facts['distribution'] = data.split()[0] |