跳到内容

meta-incorrect

此规则检查角色元数据中是否存在未定义或默认值的字段。请始终在 meta/main.yml 文件中为以下元数据字段设置适当的值

  • author
  • description
  • company
  • license

有问题的代码

---
# Metadata fields for the role contain default values.
galaxy_info:
  author: your name
  description: your role description
  company: your company (optional)
  license: license (GPL-2.0-or-later, MIT, etc)

正确的代码

---
galaxy_info:
  author: Leroy Jenkins
  description: This role will set you free.
  company: Red Hat
  license: Apache