0
0

More than 1 year has passed since last update.

【ルール説明・shared】galaxy

Last updated at Posted at 2022-12-30

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

今回はルール galaxy について説明します。

galaxy

galaxygalaxy.ymlのバージョン情報が正しく記載されているか検証します。

  • galaxy[version-missing] バージョン情報が記載されているか検証します。
  • galaxy[version-incorrect] バージョンが1.0.0よりも大きいか検証します。

問題のあるコードその1

galaxy.yml
---
name: foo
namespace: bar
version: 0.2.3 # <-- バージョンが 1.0.0 以下
authors:
  - John
readme: ../README.md
description: "..."

修正されたコードその1

galaxy.yml
---
name: foo
namespace: bar
version: 1.0.0 # <-- バージョンを 1.0.0 以上にする
authors:
  - John
readme: ../README.md
description: "..."

問題のあるコードその2

galaxy.yml
---
name: foo
namespace: bar
version: # <-- バージョンが記載されていない
authors:
  - John
readme: ../README.md
description: "..."

修正されたコードその2

galaxy.yml
---
name: foo
namespace: bar
version: 1.0.0 # <-- バージョン情報を記載する
authors:
  - John
readme: ../README.md
description: "..."

参考サイト

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