mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-05-14 21:42:01 +00:00
Compare commits
6 Commits
f48d2aec9c
...
8669afb72d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8669afb72d | ||
|
|
0ed72d0004 | ||
|
|
4efdb43ccd | ||
|
|
e0076ebc37 | ||
|
|
3abd029b9f | ||
|
|
3d2681aea6 |
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- synchronize - maintain proper formatting of the remote paths (https://github.com/ansible-collections/ansible.posix/pull/361).
|
||||||
@@ -77,7 +77,14 @@ class ActionModule(ActionBase):
|
|||||||
|
|
||||||
if self._host_is_ipv6_address(host):
|
if self._host_is_ipv6_address(host):
|
||||||
return '[%s%s]:%s' % (user_prefix, host, path)
|
return '[%s%s]:%s' % (user_prefix, host, path)
|
||||||
|
|
||||||
|
# preserve formatting of remote paths if host or user@host is explicitly defined in the path
|
||||||
|
if ':' not in path:
|
||||||
return '%s%s:%s' % (user_prefix, host, path)
|
return '%s%s:%s' % (user_prefix, host, path)
|
||||||
|
elif '@' not in path:
|
||||||
|
return '%s%s' % (user_prefix, path)
|
||||||
|
else:
|
||||||
|
return path
|
||||||
|
|
||||||
def _process_origin(self, host, path, user):
|
def _process_origin(self, host, path, user):
|
||||||
|
|
||||||
|
|||||||
@@ -128,8 +128,8 @@ class CallbackModule(CallbackBase):
|
|||||||
self._display_tasktime()
|
self._display_tasktime()
|
||||||
|
|
||||||
def playbook_on_stats(self, stats):
|
def playbook_on_stats(self, stats):
|
||||||
self._display_tasktime()
|
# Align summary report header with other callback plugin summary
|
||||||
self._display.display(filled("", fchar="="))
|
self._display.banner("ROLE RECAP")
|
||||||
|
|
||||||
timestamp(self)
|
timestamp(self)
|
||||||
total_time = sum(self.totals.values())
|
total_time = sum(self.totals.values())
|
||||||
|
|||||||
@@ -193,8 +193,8 @@ class CallbackModule(CallbackBase):
|
|||||||
self._display_tasktime()
|
self._display_tasktime()
|
||||||
|
|
||||||
def playbook_on_stats(self, stats):
|
def playbook_on_stats(self, stats):
|
||||||
self._display_tasktime()
|
# Align summary report header with other callback plugin summary
|
||||||
self._display.display(filled("", fchar="="))
|
self._display.banner("TASKS RECAP")
|
||||||
|
|
||||||
timestamp(self)
|
timestamp(self)
|
||||||
self.current = None
|
self.current = None
|
||||||
|
|||||||
@@ -46,4 +46,6 @@ class CallbackModule(CallbackBase):
|
|||||||
def v2_playbook_on_stats(self, stats):
|
def v2_playbook_on_stats(self, stats):
|
||||||
end_time = datetime.utcnow()
|
end_time = datetime.utcnow()
|
||||||
runtime = end_time - self.start_time
|
runtime = end_time - self.start_time
|
||||||
self._display.display("Playbook run took %s days, %s hours, %s minutes, %s seconds" % (self.days_hours_minutes_seconds(runtime)))
|
# Align summary report header with other callback plugin summary
|
||||||
|
self._display.banner("PLAYBOOK RECAP")
|
||||||
|
self._display.display("Playbook run took %s days, %s hours, %s minutes, %s seconds\n\r" % (self.days_hours_minutes_seconds(runtime)))
|
||||||
|
|||||||
Reference in New Issue
Block a user