If all of these files are in the same directory, you can run the following steps to deploy
Download the roles
ansible-galaxy install -r requirements.yml
Run the deploy playbook
ansible-playbook deploy.yml
If all of these files are in the same directory, you can run the following steps to deploy
Download the roles
ansible-galaxy install -r requirements.yml
Run the deploy playbook
ansible-playbook deploy.yml
[defaults] | |
# Tell ansible to store and look for roles in the current directory | |
roles_path = roles |
- hosts: localhost | |
become: true | |
roles: | |
- some-role | |
- some-other-role |
# Download a role from GitHub | |
- src: https://github.com/bndabbs/some-role.git | |
scm: git | |
# Download another role from GitHub | |
- src: https://github.com/bndabbs/some-other-role.git | |
scm: git |