... to the same as the teuthology user
Signed-off-by: Zack Cerza <zack@redhat.com>
+import json
import logging
import requests
import os
Assemble the list of args to be executed
"""
fqdns = [r.hostname for r in self.cluster.remotes.keys()]
+ # Assume all remotes use the same username
+ user = self.cluster.remotes.keys()[0].user
+ extra_vars = dict(ansible_ssh_user=user)
args = [
'ansible-playbook', '-v',
+ "--extra-vars='%s'" % json.dumps(extra_vars),
'-i', self.inventory,
'--limit', ','.join(fqdns),
self.playbook_file.name,