mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-03 20:54:24 -07:00
Merge pull request #1058 from jkleint/devel
Support iteration over command output in with_items.
This commit is contained in:
commit
b25b9fd840
3 changed files with 38 additions and 0 deletions
|
@ -258,6 +258,8 @@ class PlayBook(object):
|
|||
facts = result.get('ansible_facts', {})
|
||||
self.SETUP_CACHE[host].update(facts)
|
||||
if task.register:
|
||||
if 'stdout' in result:
|
||||
result['stdout_lines'] = result['stdout'].splitlines()
|
||||
self.SETUP_CACHE[host][task.register] = result
|
||||
|
||||
# flag which notify handlers need to be run
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue