add task_userid to any task not just ansible_cmd
This commit is contained in:
parent
8dc05c6294
commit
97a906435a
1 changed files with 0 additions and 2 deletions
|
@ -119,8 +119,6 @@ class LogMech(object):
|
|||
data['task_start'] = self._last_task_start
|
||||
data['task_end'] = time.time()
|
||||
data.update(self.task_to_json(task))
|
||||
|
||||
if self.playbook_id == 'ansible-cmd':
|
||||
data['task_userid'] = os.getlogin()
|
||||
|
||||
if category == 'OK' and data.get('changed', False):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue