]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
task/ansible: disable color output 864/head
authorJohn Spray <john.spray@redhat.com>
Mon, 23 May 2016 11:13:47 +0000 (12:13 +0100)
committerJohn Spray <john.spray@redhat.com>
Mon, 23 May 2016 11:13:47 +0000 (12:13 +0100)
This was messing up all logs with ANSI
codes.

Signed-off-by: John Spray <john.spray@redhat.com>
teuthology/task/ansible.py

index b6cb9fbd841a82292cf45f69d6173735bb64ea00..d873a39590d1902356cbb56e903617a485455747 100644 (file)
@@ -246,6 +246,7 @@ class Ansible(Task):
         environ['ANSIBLE_SSH_PIPELINING'] = '1'
         environ['ANSIBLE_FAILURE_LOG'] = self.failure_log.name
         environ['ANSIBLE_ROLES_PATH'] = "%s/roles" % self.repo_path
+        environ['ANSIBLE_NOCOLOR'] = "1"
         args = self._build_args()
         command = ' '.join(args)
         log.debug("Running %s", command)