8000 Multiple ansible roles from a single Git repo with ansible-galaxy (doc update) · Issue #16804 · ansible/ansible · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Multiple ansible roles from a single Git repo with ansible-galaxy (doc update) #16804
Closed
@aneesh-joseph

Description

@aneesh-joseph
ISSUE TYPE

Documentation Report

COMPONENT NAME

ansible-galaxy documentation

ANSIBLE VERSION
2.2.0
CONFIGURATION

N/A

OS / ENVIRONMENT
SUMMARY

Documentation update for ansible-galaxy

STEPS TO REPRODUCE

The ansible-galaxy documentation doesn't suggest that galaxy can pull down multiple roles from a single repo - http://docs.ansible.com/ansible/galaxy.html, but it seems to be possible. For example if I have a git repo with the below structure

  meta/main.yml
  role1/tasks/main.yml
  role2/tasks/main.yml
  role3/tasks/main.yml

I can pull it down using galaxy using the below requirements.yml file

---
# pull down common roles
- src: https://github.com/aneesh/common-roles
  name: common-roles
  version: master
  scm: git
ansible-galaxy install -r requirements.yml --force -p roles

and then I can use the common roles like

---
- name: Install common utils from role1
  hosts: ambari-cluster   
  roles:
  - common-roles/role1
- name: some other common tasks
  hosts: ambari-cluster   
  roles:
  - common-roles/role2

Can the documentation be updated to reflect this? 😄

EXPECTED RESULTS
ACTUAL RESULTS

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects_2.2This issue/PR affects Ansible v2.2c:galaxy/docsThis issue/PR relates to or includes documentation.featureThis issue/PR relates to a feature request.has_prThis issue has an associated PR.needs_infoThis issue requires further information. Please answer any outstanding questions.support:coreThis issue/PR relates to code supported by the Ansible Engineering Team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0