ansible.galaxy package¶
This manages remote shared Ansible objects, mainly roles
-
class
ansible.galaxy.Galaxy(options)[source]¶ Bases:
objectKeeps global galaxy info
-
default_readme¶
-
default_meta¶
-
default_test¶
-
default_travis¶
-
Submodules¶
ansible.galaxy.api module¶
-
ansible.galaxy.api.g_connect(method)[source]¶ wrapper to lazily initialize connection info to galaxy
ansible.galaxy.login module¶
-
class
ansible.galaxy.login.GalaxyLogin(galaxy, github_token=None)[source]¶ Bases:
objectClass to handle authenticating user with Galaxy API prior to performing CUD operations
-
GITHUB_AUTH= 'https://api.github.com/authorizations'¶
-
ansible.galaxy.role module¶
-
class
ansible.galaxy.role.GalaxyRole(galaxy, name, src=None, version=None, scm=None, path=None)[source]¶ Bases:
object-
SUPPORTED_SCMS= set(['git', 'hg'])¶
-
META_MAIN= 'meta/main.yml'¶
-
META_INSTALL= 'meta/.galaxy_install_info'¶
-
ROLE_DIRS= ('defaults', 'files', 'handlers', 'meta', 'tasks', 'templates', 'vars', 'tests')¶
-
metadata¶ Returns role metadata
-
install_info¶ Returns role install info
-
remove()[source]¶ Removes the specified role from the roles path. There is a sanity check to make sure there’s a meta/main.yml file at this path so the user doesn’t blow away random directories.
-
spec¶ Returns role spec info.
In the format:
{ 'scm': 'git', 'src': 'http://git.example.com/repos/repo.git', 'version': 'v1.0', 'name': 'repo' }
-