summaryrefslogtreecommitdiffstats
path: root/examples/roles/dependency_in_meta/meta/main.yml
blob: ce20d01bc69741f9cc8cc8bfb7fabaa6b44c6a72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
# meta file, determined by ending in meta/main.yml
# https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_reuse_roles.html#role-dependencies
allow_duplicates: true
dependencies:
  # 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 galaxy
  - src: yatesr.timezone

  # from GitHub
  - src: https://github.com/bennojoy/nginx

  # from GitHub, overriding the name and specifying a specific tag
  - src: https://github.com/bennojoy/nginx
    version: master
    name: nginx_role

  # from GitLab or other git-based scm
  - src: git@gitlab.company.com:my-group/my-repo.git
    scm: git
    version: "0.1" # quoted, so YAML doesn't parse this as a floating-point value

  # from a webserver, where the role is packaged in a tar.gz
  - src: https://some.webserver.example.com/files/master.tar.gz
    name: http-role

galaxy_info:
  standalone: true
  author: foo
  description: Testing meta
  company: Not applicable
  license: MIT
  min_ansible_version: "2.5"
  platforms:
    - name: Fedora