':type args: EnvironmentConfig'

def __init__(self, args):

    tmp = os.path.expanduser('~/.ansible/test/')
    self.key = os.path.join(tmp, 'id_rsa')
    self.pub = os.path.join(tmp, 'id_rsa.pub')
    if (not os.path.isfile(self.pub)):
        if (not args.explain):
            make_dirs(tmp)
        run_command(args, ['ssh-keygen', '-q', '-t', 'rsa', '-N', '', '-f', self.key])
    if args.explain:
        self.pub_contents = None
    else:
        with open(self.pub, 'r') as pub_fd:
            self.pub_contents = pub_fd.read().strip()
