-r 指定此檔案進行安裝。
$ ansible-galaxy role install -r requirements.yml
# from galaxy - src: yatesr.timezone # from GitHub - src: https://github.com/bennojoy/mysql # from GitHub, overriding the name and specifying a specific tag - src: https://github.com/bennojoy/mysql version: master name: mysql_role # from a webserver, where the role is packaged in a tar.bz2 - src: http://dy.csie.cyut.edu.tw/materials/haproxy.tar.bz2 name: haproxy-role # from Bitbucket - src: git+http://bitbucket.org/willthames/git-ansible-galaxy version: v1.4 # from Bitbucket, alternative syntax and caveats - src: http://bitbucket.org/willthames/hg-ansible-galaxy scm: hg # from GitLab or other git-based scm - src: git@gitlab.company.com:mygroup/ansible-base.git scm: git version: "0.1" #quoted, so YAML doesn't parse this as a floating-point value