1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Update doc for the ansible-galaxy include directive

This commit is contained in:
THEBAULT Julien 2015-10-23 20:31:00 +02:00 committed by THEBAULT Julien
parent 7c2ff0e66b
commit fd67d911c3

View file

@ -68,6 +68,28 @@ To request specific versions (tags) of a role, use this syntax in the roles file
Available versions will be listed on the Ansible Galaxy webpage for that role.
Installing Multiple Roles From Multiple Files
=============================================
At a basic level, including requirements files allows you to break up bits of configuration policy into smaller files. Role includes pull in roles from other files.
ansible-galaxy install -r requirements.yml
# from galaxy
- src: yatesr.timezone
- include: webserver.yml
Content of the webserver.yml file.
# from github
- src: https://github.com/bennojoy/nginx
# from github installing to a relative path
- src: https://github.com/bennojoy/nginx
path: vagrant/roles/
Advanced Control over Role Requirements Files
=============================================
@ -385,19 +407,3 @@ Use the --remove option to disable and remove a Travis integration:
Provide the ID of the integration you want disabled. Use the --list option to get the ID.