'Writes a YAML-formatted file to the role\'s meta/ directory
(named .galaxy_install_info) which contains some information
we can use later for commands like \'list\' and \'info\'.'

def _write_galaxy_install_info(self):

    info = dict(version=self.version, install_date=datetime.datetime.utcnow().strftime('%c'))
    if (not os.path.exists(os.path.join(self.path, 'meta'))):
        os.makedirs(os.path.join(self.path, 'meta'))
    info_path = os.path.join(self.path, self.META_INSTALL)
    with open(info_path, 'w+') as f:
        try:
            self._install_info = yaml.safe_dump(info, f)
        except:
            return False
    return True
