0
0

More than 1 year has passed since last update.

【ルール説明・shared】meta-no-info

Posted at

こちらの記事はAnsible lint Advent Calendar 2022 カレンダー2 16日目の記事になります。

今回はルール meta-no-info について説明します。

meta-no-info

meta-no-info は galaxy role のメタデータmeta/main.ymlで次の項目が設定されているか検証します。

  • author
  • description
  • license
  • min_ansible_version
  • platforms

問題のあるコード

メタデータに何も記述されていない

meta/main.yml
---

修正されたコード

必要な項目を記述する

meta/main.yml
---
dependencies: []
galaxy_info:
  author: mamono210
  description: Cowsay installation for Linux.
  license: "license (BSD, MIT)"
  min_ansible_version: 6.0.0
  role_name: cowsay
  platforms:
    - name: EL
      release:
        - 7
        - 8

参考サイト

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0